* fix: Incorrect transform with async/await (#565)
* Update babel-plugin-transform-async-to-promises to v0.8.18
* Add changeset
* Update jest test snapshots
Co-authored-by: Björn Saja <bjoern@codeatelier.com>
* fix: css compilation problems when multiple entries
* change minor to patch
* refactor: options.output change to absMain
* Apply suggestions from code review
Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
* deps: upgrade rpt2 to latest v0.32.0 to fix monorepos
- rpt2 v0.30.0 supports compiling files outside of the project directory
with no additional configuration (e.g. of `rootDir`) as it upgraded
its dep of `@rollup/pluginutils` to v4, which has a breaking change
affecting `createFilter`
- essentially, the change to `@rollup/pluginutils` allows transforming
files outside of the project dir
- rpt2 v0.32.0 supports symlinks, such as with monorepos built w/ pnpm
- previously, microbundle was using rpt2 v0.29.0, which is about ~1.5
years out-of-date
* add changeset
* Remove mention of UMD support for web workers
OMT only supports amd or esm as output, so the readme should not
mention umd as supported.
When executing microbundle with umd format and `--workers`, the web
worker will fail to be detected or bundled.
* Update README.md
Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
* fix: Output ESM w/ .mjs ext when pkg type is cjs
* docs: Adding changeset
* Update README.md
* Update README.md
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
* chore: Add warning for new ESM output extension behavior
* Update src/index.js
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
* Resolve using "node" export condition for --target node
When bundling for a Node.js target, Microbundle should follow the "node" conditional package export key to match Node's own resolution. Fixes#886.
* lint
* Create fuzzy-trains-switch.md
* Update index.js
* feat: Expands generateTypes flag to support TS entries
* fix: Returning previous .d.ts generation
* test: Modifying `--generateTypes false` test for use on TS projects
* docs: Adding changeset
* Add worker-loader
Targets enhancement: https://github.com/developit/microbundle/issues/170
Enable usage of `microbundle --worker-loader` to apply rollup-plugin-web-worker-loader.
Allow bundling web workers automatically
- Add flag `--worker-loader`
- For format `es` and `modern`, a Worker `type: module` is automatically
bundled
* Update README.md
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
* Update src/index.js
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
* Update src/prog.js
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
* Update test/__snapshots__/index.test.js.snap
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
* Update test/fixtures/worker-loader/package.json
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
* Update README.md
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
* Remove node_modules from snapshot
* Upgrade rollup-plugin-off-main-thread
* Add changeset
Co-authored-by: Tim Daubenschütz <tim@daubenschuetz.de>
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
* Bugfix: preserve Terser annotations during Babel pass
We were stripping out everything except `__PURE__`, but Terser has a number of annotations using that format - these were previously being ignored.
* Create late-bags-argue.md
* Add test for Terser annotations
* feat: Support customizing the modern output via "exports"
* docs: Adding changeset
* refactor: Further support "modern" output name with exports object
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
* fix: Correcting odd typo
Co-authored-by: Jason Miller <developit@users.noreply.github.com>