As a followup to #140 I've opened this MR. It fixes the rollup config so that tree shaking works.
The main change is enabling preserveModules. This requires outputting to a directory instead of a file, so I have set the output to dist/cjs and dist/esm.
I have also taken the liberty of removing the createRollupConfig.js script as I think it's a level of indirection that's not needed at this scale.
As a followup to #140 I've opened this MR. It fixes the rollup config so that tree shaking works.
The main change is enabling
preserveModules
. This requires outputting to a directory instead of a file, so I have set the output todist/cjs
anddist/esm
.I have also taken the liberty of removing the
createRollupConfig.js
script as I think it's a level of indirection that's not needed at this scale.I have tested locally with
pnpm link