778 Commits

Author SHA1 Message Date
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
Anton Gilgur
4ad4b768f0
deps: upgrade rpt2 to latest v0.32.0 to fix monorepos (#967)
* 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
2022-06-02 16:09:18 -05:00
Nick Babcock
555088d17c
Remove mention of UMD support for web workers (#962)
* 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>
2022-05-18 19:22:34 -05:00
Ryan Christian
9a4e2b2096
chore: Bump Node target version to v12 (#954)
* chore: Bumps Node target to v12

* docs: Adding changeset
2022-05-04 19:41:08 -04:00
Ryan Christian
6018e586b9
chore: Silence warnings when using 'node:' protocol (#956)
* chore: Silence warnings when using builtins w/ 'node:' protocol

* docs: Adding changeset
2022-05-04 19:40:41 -04:00
DaviDevMod
d16a322db7
Fix typo in readme (#957) 2022-05-04 19:40:15 -04:00
Mohammed Anas
6c59174aad
Remove git.io usages (#952)
See https://github.blog/changelog/2022-04-25-git-io-deprecation/.
2022-04-28 13:48:21 -04:00
Preact Bot
84c0a89dd5
Version Packages (#927)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
v0.15.0
2022-04-26 15:24:41 -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
ecb0b02291
fix: babel exclude for hoisted modules (#947)
* fix: Ensures hoisted node_modules are excluded by babel

* docs: Adding changeset
2022-04-21 09:47:34 -04:00
Ryan Christian
8223ebaee8
fix: build message formatting (#948)
* fix: Build output message formatting w/ dynamic import module

* docs: Adding changeset
2022-04-21 09:46:29 -04:00
Ryan Christian
1d0e305d89
fix: tsconfig cwd differing from microbundle's cwd (#941)
* fix: 'tsconfig.json' search should start in the set cwd

* docs: Adding changeset
2022-04-20 15:15:11 -05:00
Ryan Christian
c4532cc9cc
docs: compress flag (#940)
* docs: Add info on --compress default value

* docs: Update CLI help menu --compress info

* docs: Adding changeset
2022-04-20 15:14:58 -05:00
MYCOIN
b51b855794
feat: [auto-commit] fix: _sizeInfo npe (#935)
* feat: [auto-commit] fix: _sizeInfo npe

* docs: Adding changeset

Co-authored-by: Ryan Christian <ryanchristian4427@gmail.com>
2022-04-07 17:52:26 -05:00
Ryan Christian
fb0a43780a
chore: Adding flag & docs for jsxFragment (#930) 2022-03-03 18:09:14 +01:00
Ryan Christian
392d63ef43
fix: Corrects CSS output being overwritten when .cjs ext used (#919) 2022-03-03 18:04:30 +01:00
Jason Miller
f04c85a188
Fix mangle.json being overwritten with [object Object] (#926)
* Fix mangle.json being overwritten with [object Object]

Regression from #882.

* Create gorgeous-singers-invite.md
2022-01-20 15:59:17 -05:00
Preact Bot
778ca3ce3e
Version Packages (#911)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
v0.14.2
2021-11-18 01:20:28 +01:00
Aral Roca Gomez
75525a31dd
Add Teaful as "Built with Microbundle" in README (#910) 2021-11-17 18:39:55 +01:00
Ryan Christian
dd0bdde9c6
fix: Ensuring CLI & docs match up with each other (#904) 2021-11-17 18:38:19 +01:00
Jason Miller
afa74ca46b
[docs] Fix incorrect package exports recommendation (#903)
Fixes #902.
2021-10-21 11:06:48 -05:00
Preact Bot
c04bd48cd2
Version Packages (#900)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
v0.14.1
2021-10-14 17:52:07 +02:00
Mihir Kumar
2a0ca8843f
feat: Closes #497: preserve trailing newline in mangle.json (#882)
Co-authored-by: Leah <github.leah@hrmny.sh>
2021-10-14 17:27:44 +02: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
Preact Bot
d94bd975f4
Version Packages (#859)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
v0.14.0
2021-10-06 10:19:18 -04:00
Jason Miller
96b85da1e3
Resolve using "node" export condition for --target node (#887)
* 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
2021-10-06 10:11:06 -04: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
Ryan Christian
76272fdf03
docs: Adding comment about file inclusion in TS section (#888) 2021-10-06 10:05:51 -04:00
Jason Miller
5e93a0e4cc
Fix exports walk (#852) (#853)
* Fix exports walk (#852)

Fixes #852

* Create eight-toes-pump.md

* traverse default exports in type:module packages
2021-10-06 09:59:44 -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
Abdussamet Koçak
81088002d3
Fix typo (#856) 2021-06-16 16:34:24 +02:00
Preact Bot
3760f4edc9
Version Packages (#851)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
v0.13.3
2021-06-11 15:38:30 -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
Preact Bot
a5a222ea08
Version Packages (#846)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
v0.13.2
2021-06-07 16:13:42 -04:00
Jason Miller
e3f1933773
Update to Terser 5.7 (#847)
* Update to Terser 5.7

* Create heavy-sheep-own.md

* Use npm@latest
2021-06-07 06:04:34 +02:00
G3root
680c25c505
Fix: throw a warning when no entrypoint is found (#843)
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
Co-authored-by: nafees nazik <nafeesnazik10@gmail.com>
2021-06-05 13:04:03 +02:00
Ryan Christian
86371f0db6
feat: Support customizing the modern output via "exports" (#784)
* 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>
2021-06-03 11:30:43 -04:00
Preact Bot
2b37c12ed4
Version Packages (#800)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
v0.13.1
2021-05-26 21:02:08 -04:00
Ryan Christian
6f1a20fa17
fix: Extra CSS files generated (#777)
* fix: Ensuring duplicate CSS files aren't generated

* docs: Adding changeset

* Update index.js

Co-authored-by: Jason Miller <developit@users.noreply.github.com>
2021-05-26 20:58:42 -04:00
Leah
0a4cddf98a
create changeset for 802 (#842)
Co-authored-by: Andreas Heissenberger <andreas@heissenberger.at>
2021-05-26 20:51:18 -04:00
Ryan Christian
89ab03da09
docs: Swapping out references of ES format to ESM (#778) 2021-05-26 04:13:55 +02:00
Simon Legner
a415645ef4
README: syntax highlighting (#839) 2021-05-26 03:58:03 +02:00
Ryan Christian
0c91795957
Fix/css filename output (#841) 2021-05-26 03:57:48 +02:00
Andreas Heissenberger
a7f7265727
wenn package.json "type":"module" switch default type to ".cjs" for CommonJS build (#802)
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
2021-05-05 15:47:31 -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