Commit Graph

3 Commits

Author SHA1 Message Date
Florens Verschelde
831501ad92
config(build): remove sourcemaps for esm/cjs builds (#320)
* config: disable sourcemaps for esm & cjs builds

* config: keep jsdoc comments when not generating sourcemaps

* config: tweak browser build minification for readability

* config(terser): use ecma:2020 option, since tsconfig target is es2020
2024-07-30 00:04:11 +09:00
Florens Verschelde
6e3fff0ae3
build: move browser build from umd dir to dist (#314) 2024-07-25 10:05:14 +09:00
Florens Verschelde
7b2aa1adfc
chore: use rollup instead of tsup for a cleaner dist (#255)
* update tsup to 8.2.0 (no change to dist)

* add rollup config to generate dist

* fix browser build config

* browser umd bundle sourcemap should be published

* browser bundle is iife, not umd, despite folder name

* rollup: don't use manualChunks to keep the config a tad simpler

* prepack: use rollup instead of tsup

* remove browser entrypoint from dist

* remove comments in .js and .mjs outputs

* remove src/browser.ts, use equivalent Rollup config

* Restore original .npmignore

* rollup config: rename umdBuildConfig to browserBuildConfig

* rollup: use package.json#exports for esm entrypoints

* chore: package.json

* rollup config

* sort

* lint

* prettier

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-25 00:37:53 +09:00