761 Commits

Author SHA1 Message Date
Ryan Christian
d774612b24 chore: Adding flag & docs for jsxFragment (#930)
https://github.com/developit/microbundle/issues/809#issuecomment-1025937798

I removed the `options.jsx === 'React.createElement'` thing as it's no longer relevant with `jsxFragmentFactory` (see https://github.com/developit/microbundle/pull/623#issuecomment-632442811) and we set default values in the CLI for both `jsx` and `jsxFragment`, so we don't really need extra fallback values.
2022-03-03 17:05:35 +00: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
Jason Miller
4f7fbc4a0b
Create red-pigs-provide.md 2021-05-05 11:16:24 -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
Ludovico Fischer
2c9eaa1796
docs: use "exports" key in all examples (#794)
* docs: use "exports" key in all examples

Replace a leftover 'esmodule' key with the current recommendation.

* docs: add CommonJS bundle to exports

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

* docs: consolidate `package.json` samples

Merge the two microbundle build examples and refer
to Node.js docs for more information on the different fields.

Co-authored-by: Jason Miller <developit@users.noreply.github.com>
2021-05-05 11:07:37 -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
Ryan Christian
edcd777cfa
Fix/css module types (#823)
* fix: Ensures ambient types are included in publish

* docs: Adds note on TS + CSS Module usage

* docs: Adding changeset
2021-03-28 14:51:39 -04:00
David Wells
fa3eac6f49
Add missing ./ (#803)
Without this package imports fail on linux debian for some reason. ¯\_(ツ)_/¯

"SyntaxError: Cannot use import statement outside a module"
2021-02-08 19:11:12 -05:00
Jason Miller
d87a5dc286
changeset for #799
(oops!)
2021-02-02 14:57:47 -05:00
Guido D'Orsi
bb5789a522
fix(cli): corrects the --sourcemap=false option parsing (#799) 2021-02-02 14:54:17 -05:00
Preact Bot
eb5cfd91ce
Version Packages (#735)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
v0.13.0
2020-12-21 11:13:32 -05: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
52a177190e
Add ambient typescript declaration for CSS Modules (#768)
* Add ambient typescript declaration for CSS Modules

* Create two-bikes-brush.md

* ...
2020-12-18 17:32:43 -05:00
Jason Miller
94bd8ed904
Add link to inlining guide 2020-12-18 16:18:38 -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
Jason Miller
25b2b62d24
Add --generate-types option (#589) 2020-12-18 20:17:23 +01: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