Skip to content

Commit

Permalink
chore: fix up cborg breakage and reduced bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Mar 4, 2021
1 parent c107144 commit 49cbb9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ const esbuild = {
build.onResolve({ filter: /^stream$/ }, () => {
return { path: require.resolve('readable-stream') }
})
build.onResolve({ filter: /^cborg$/ }, () => {
// remove when https://github.com/evanw/esbuild/issues/187 is fixed
return { path: require.resolve('cborg') }
})
}
}
]
Expand All @@ -26,7 +30,7 @@ module.exports = {
}
},
build: {
bundlesizeMax: '141kB',
bundlesizeMax: '130kB',
config: esbuild
}
}

0 comments on commit 49cbb9b

Please sign in to comment.