151 Commits

Author SHA1 Message Date
Andre Wiggins
9f56e06b0d
Format repo (#1096)
Ran `npm run format` to fix up some formatting issues in the repo
2025-10-23 18:08:29 -07:00
Ryan Christian
aae1611ef4
fix: Incorrect UMD sourcemaps (#1043) 2025-02-04 14:20:33 -06:00
Ryan Christian
e72377a001
fix: mains by format fallbacks (#964) 2022-08-11 12:34:30 -05:00
PeterBurner
88241ddf8f
fix: Incorrect transform with async/await (#565) (#968)
* 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>
2022-06-04 02:33:48 -05:00
赵一荣
cebafa1219
fix: css compilation problems when multiple entries (#961)
* 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>
2022-06-04 02:32:49 -05:00
Ryan Christian
8e2de0719f
fix: Test failures following merge (#951) 2022-04-25 14:33:25 -05:00
Ryan Christian
6f6e080f3b
refactor: Output ESM files w/ .mjs when appropriate (#950)
* 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>
2022-04-25 14:17:55 -05:00
Ryan Christian
242754f43c
feature: bundle visualizer (#949)
* feat: Add --visualizer flag to generate build output stats

Co-authored-by: Alex Hayton <alex.hayton@gmail.com>

* docs: Adding changeset

* chore: Removing & git ignoring stats.html

Co-authored-by: Alex Hayton <alex.hayton@gmail.com>
2022-04-25 14:16:17 -05:00
Ryan Christian
26f382a989
fix: Corrects completion message to show the package's name, rather than the safe name (#895) 2021-10-11 21:39:44 +02:00
Ryan Christian
29803364fe
feat: Expands generateTypes flag to support TS entries (#865)
* 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
2021-10-06 10:07:28 -04:00
Marco Solazzi
5d0465b39b
Fix: preserve terser annotations regexp (#875)
* fix: preserve terser annotations regexp

* chore: add changeset

* test: update snapshots
2021-10-06 09:14:03 -04:00
Marc Bouchenoire
1b61029664
Rebase: Add worker-loader (#867)
* 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>
2021-10-06 09:09:49 -04:00
Marc Bouchenoire
b1a6374862
Fix: Support booleans in minify options (#858)
* Add fixture

* Prevent boolean minify options from being replaced

* Update snapshots

* Add changeset
2021-06-28 12:09:57 -04:00
Jason Miller
3534815dda
Bugfix: preserve Terser annotations during Babel pass (#848)
* 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
2021-06-11 15:36:21 -04:00
Hyeseong Kim
25b73d22ca
feat: enabled config overriding by publishConfig (#834)
* feat: enabled config overriding by publishConfig

* add changesets

* update README

* Update odd-pets-type.md

Co-authored-by: Jason Miller <developit@users.noreply.github.com>
2021-05-05 11:36:39 -04:00
Guido D'Orsi
7426218d48
fix(transform-fast-rest): rest parameters references with closures (#798)
* fix(transform-fast-rest): rest parameters references with closures

* fix(transform-fast-rest): improved the arguments scope check
2021-05-05 11:13:00 -04:00
JounQin
54402ac43c
fix: add generateTypes cli option, check false value correctly (#830)
* fix: add generateTypes cli option, check false value correctly

* chore: add changeset file

* docs: cli option should be generateTypes

* chore: remove unnecessary comment
2021-05-05 10:51:54 -04:00
Cody Olsen
9ccf400421
restore CSS sourcemap support (#770)
* fix: restore CSS sourcemap support

* no CSS maps when inline

Co-authored-by: Jason Miller <developit@users.noreply.github.com>

Co-authored-by: Jason Miller <developit@users.noreply.github.com>
2020-12-18 21:29:26 -05:00
Jason Miller
967f8d5327
Add --css inline option (#769)
* Add --css inline option

Fixes #744

* Add CLI option

* Add docs for --css and update --css-modules docs

* Create rude-keys-eat.md

* update snapshot
2020-12-18 14:55:00 -05:00
Jacob Baker-Kretzmar
fdafaf7a4a
Add support for generating inline sourcemaps (#764)
* Add failing test and snapshots

* Allow 'inline' value for sourcemap option

* Use string "true" as default sourcemap option

* Update test and snapshots

* Remove default

* Add warning message

* Add changeset
2020-12-18 14:03:27 -05:00
Jason Miller
2ed56334cb
Rollup upgrade size fixes (#767)
* chore: update dev dependencies

* chore: update non rollup deps

* upgrade rollup

* update rollup-plugin dependencies

* add changeset

* Disable new external ESM interop

* Update Terser options to include __PURE__ annotations

* Remove `globalThis` injection

* bugfix

* update snapshots

* Update package.json

* Update package-lock.json

* strip globalThis from unminified UMD bundles too

* update shapshots

Co-authored-by: Ward Peeters <ward@coding-tech.com>
2020-12-18 14:02:35 -05:00
Ward Peeters
bd5d15e17c
chore: upgrade all dependencies (#738)
* chore: update dev dependencies

* chore: update non rollup deps

* upgrade rollup

* update rollup-plugin dependencies

* add changeset
2020-12-18 12:22:33 -05:00
Cody Olsen
8b60fc86cb
fix(CSS): sourcemap support for PostCSS files (#754)
* fix(CSS): sourcemap support

* Create hip-spies-happen.md
2020-12-17 11:00:53 -05:00
Jason Miller
052786223e
Support "esm" as an alias of "es" format (#722)
Co-authored-by: Leah <github.leah@hrmny.sh>
2020-09-28 03:24:45 +02:00
Tim Gates
efb7cf39ed
docs: Fix simple typo, realy -> really (#727)
There is a small typo in test/index.test.js.

Should read `really` rather than `realy`.
2020-09-14 13:51:41 +02:00
Ward Peeters
d08f977aa6
fix: use @babel/preset-env with bugfixes for modern builds (#702) 2020-08-28 17:11:28 +02:00
Ward Peeters
34884116e2
fix: disable node-builtin warnings (#700) 2020-08-17 08:52:22 +02:00
Katja Lutz
5f1a6a9e3f
fix: dont set aliases as externals (#671) 2020-06-29 22:45:30 +02:00
Katja Lutz
72619a0344
fix: add externals with dash to globals (#643) (#667) 2020-06-20 17:07:16 -04:00
Jason Miller
afafa6d213
Silence core-js warnings during tests (#661)
Co-authored-by: Ward Peeters <ward@coding-tech.com>
2020-06-16 10:05:43 +02:00
Jason Miller
95416d1ccf
Update dependencies (#660) 2020-06-16 10:05:28 +02:00
Katja Lutz
f4ab33d3c7
feat: add --pkg-main option (#658) 2020-06-14 13:26:49 +02:00
Marvin Hagemeister
c8b46cf51e
Fix TS failing if module is set to CommonJS (#638) 2020-06-01 13:10:58 +02:00
Marvin Hagemeister
ded90ace96
Fix TypeScript emit target (#629)
* Fix TypeScript including build artefacts

* Fix declaration files emitted into wrong directory
2020-05-25 06:17:57 +02:00
Marvin Hagemeister
6533e7cbb7 TS: Fix Fragments broken when jsxFactory is set 2020-05-20 20:49:10 +02:00
Jason Miller
d56e4f012d update snapshots 2020-05-08 19:51:30 +00:00
Jason Miller
b3cd06e26a
fix snapshot 2020-05-07 19:25:17 -04:00
Jason Miller
6855cbff0b Update snapshots (yay 50% size reduction!) 2020-05-07 23:21:43 +00:00
Jason Miller
e6136ebfaa
Merge branch 'master' into async-to-promises-helpers 2020-04-30 23:08:04 -04:00
Jason Miller
caf3dcad66
update snapshots 2020-04-30 23:06:33 -04:00
Jason Miller
336cbb6567 fix tests 2020-04-29 22:05:55 -04:00
Jason Miller
7005f26645 Add test for define-expressions, update snaps 2020-04-19 22:13:44 +00:00
Jason Miller
2dd4afec70
Fix babel cache bleed (#570)
* Instantiate babel.custom() separately for each output

* Update index.js

* prettier

* prettier

* lint fixes

* revert unrelated terser change

* add test for modern + generators

Co-authored-by: Leah <me@hrmny.sh>
2020-03-12 16:36:04 -03:00
Marais Rossouw
87e3dd52ce
chore: Runs prettier as a pre-commit hook 2020-02-10 07:02:20 +10:00
Marais Rossouw
5100c7bbf2 Adds a --css-modules option (#370)
* feat: adds a `--cssmodules` option

* chore: Allow scopeName to come from args

* chore: --css-modules is now tristate

* docs: Wrote docs around how to use css-modules

* chore: Fixed all tristate logic, and readable first

* test: Wrote tests for all avenues

* chore: Add's newlines to the end of files
2020-02-09 18:41:09 +01:00
Jovi De Croock
31f9de03d8 another snapshot correction (node_modules snuck in) 2020-02-02 21:53:44 +01:00
Jovi De Croock
b9a6f0c244 update snapshots 2020-02-02 21:49:33 +01:00
Jovi De Croock
fc4568d9f4 update snapshots and implement custom babelrc 2020-02-02 19:04:16 +01:00
Jason Miller
e83d0d157c fix core-js bloat by turning off core-js 3 (#550) 2020-01-25 07:37:51 +01:00
Jason Miller
6f84f95f81 merge #538 from @ForsakenHarmony and enable lockfiles 2020-01-22 15:51:21 -05:00