744 Commits

Author SHA1 Message Date
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
Gregory
e2eabaef73
Document @ for the --define option (#692)
* Document @ for the --define option

I had to dig through the code in order to figure out how to replace an expression.
I was initially trying to do `microbundle --define global=window` which should actually be `microbundle --define @global=window`

* Add --define section to readme

Co-authored-by: Jason Miller <developit@users.noreply.github.com>
2020-12-17 20:22:56 -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
Gino Zhang
8142704399
Use user's typescript first, fallback to bundled (#741)
* use process.cwd()'s typescript

* use process.argv[1]'s instead of process.cwd()'s typescript

* Handle situation that argv1 is empty

* changeset

* Require "typescript" from cwd i.o. argv1
2020-12-17 10:27:18 -05:00
Jason Miller
360511bcfd
Update the readme to recommend package exports (#749)
* Update the readme to recommend package exports

* Update README.md

* Update README.md

* Update README.md
2020-12-17 10:20:29 -05:00
Cam Sloan
a6eb6e75b0
Update examples to reference preact/compat instead of preact (#750)
aliasing react=preact doesn't work because the main preact package actually doesn't contain any default exports. So the more likely example would be to reference preact/compat.
2020-11-09 15:10:42 +01:00
Jason Miller
12668b9939
Friendly microbundle-specific resolve errors (#687) 2020-09-28 04:12:21 +02:00
Preact Bot
3f12b9f55d
Version Packages (#734)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
v0.12.4
2020-09-28 03:31:47 +02: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
Ward Peeters
0fec41493c
chore: add forgotten changeset (#716) 2020-09-25 16:56:36 +02:00
Jason Miller
08990083fe
repo token for changesets (#732) 2020-09-25 00:50:03 +02:00
Colin van Eenige
d33a7ba2f5
Add jsxImportSource flag for new JSX runtime (#731)
Co-authored-by: Leah <github.leah@hrmny.sh>
2020-09-24 11:35:14 +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
7b2ff57f87
fix: bring back @babel/env preset match (#714) 2020-09-03 00:19:07 +02:00
Jason Miller
ffcc9d9b7d
Support global extend via amdName (#713)
* Support global extend via amdName

Using a prefixed name like `{ "amdName": "global.foo" }` will trigger Rollup's `output.extend` option. This addresses the use-case from #709 without adding another CLI flag.

* Create chilled-paws-confess.md

* Update chilled-paws-confess.md
2020-08-31 17:00:45 +02:00
Ward Peeters
d08f977aa6
fix: use @babel/preset-env with bugfixes for modern builds (#702) 2020-08-28 17:11:28 +02:00
Jason Miller
225e35072c
Don't transpile generators and async for Node (#707)
I think this should fix #704.
2020-08-23 06:52:10 +02:00
Ward Peeters
ba1c047512
chore: enable unpkg alias again (#701) 2020-08-17 09:07:28 +02:00