292 Commits

Author SHA1 Message Date
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
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
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
Ryan Christian
89ab03da09
docs: Swapping out references of ES format to ESM (#778) 2021-05-26 04:13:55 +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
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
Guido D'Orsi
bb5789a522
fix(cli): corrects the --sourcemap=false option parsing (#799) 2021-02-02 14:54:17 -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
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
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
12668b9939
Friendly microbundle-specific resolve errors (#687) 2020-09-28 04:12:21 +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
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
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
Ward Peeters
34884116e2
fix: disable node-builtin warnings (#700) 2020-08-17 08:52:22 +02:00
Jason Miller
305a50fb7a
[draft] Use Babel to transpile JSX instead of TypeScript (#573)
Co-authored-by: Leah <me@hrmny.sh>
Co-authored-by: Leah <github.leah@hrmny.sh>
2020-07-20 22:05:26 -04:00
Jason Miller
037b0f26d3
refactor: split utilities in separate files (#624)
Co-authored-by: Ward Peeters <ward@coding-tech.com>
2020-07-07 23:47:45 +02:00
Katja Lutz
658d867900
refactor: use rollup dir and entryFileNames options instead of file (#674) 2020-07-04 15:33:36 +02:00
Katja Lutz
1d609126bf
Add onStart and onError callbacks, accessible rollup watchers (#668) 2020-06-29 22:48:09 +02:00
Katja Lutz
5f1a6a9e3f
fix: dont set aliases as externals (#671) 2020-06-29 22:45:30 +02:00
Jason Miller
302807d655
Strip comments from output (#548) 2020-06-29 22:37:10 +02:00
Katja Lutz
72619a0344
fix: add externals with dash to globals (#643) (#667) 2020-06-20 17:07:16 -04:00
Jason Miller
4c6a7e0110
Improve checkJs Typings (#666)
* Allow RegExp --externals only for the CLI argument

* Fix globals generation for regex externals

* Improved checkJs typings

* spelling
2020-06-19 18:38:26 -04:00
Jason Miller
4b36427439
Allow RegExp --externals only for the CLI argument (#665)
* Allow RegExp --externals only for the CLI argument

* Fix globals generation for regex externals

* Fix comment description
2020-06-19 18:36:44 -04:00
Jason Miller
5f8ea9ee7e
Use DI to prevent multiple copies of @babel/core (#664)
* Use DI to prevent multiple copies of @babel/core

Fixes #657.

* Actually fix it (haha)
2020-06-19 13:27:03 -04:00
Katja Lutz
2a667c708e
fix: escape rollup external test items (#650) 2020-06-14 13:28:22 +02:00
Katja Lutz
f4ab33d3c7
feat: add --pkg-main option (#658) 2020-06-14 13:26:49 +02:00
Jason Miller
a8a36acc81
--no-compress should preserve comments (#648)
This fixes #647.
2020-06-03 07:07:58 +02:00
Katja Lutz
65df3c164f
fix: set types declarationDir based on cwd (developit/microbundle#643) (#646) 2020-06-02 22:32:55 +02:00
Marvin Hagemeister
c8b46cf51e
Fix TS failing if module is set to CommonJS (#638) 2020-06-01 13:10:58 +02:00
Kristoffer K
58288ec989
fix: add missing dependencies and use require.resolve (#634) 2020-05-27 22:11:43 +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
Jason Miller
0c68bb62eb Allow import.meta usage 2020-05-22 14:31:34 +00:00
Marvin Hagemeister
6533e7cbb7 TS: Fix Fragments broken when jsxFactory is set 2020-05-20 20:49:10 +02:00
Teo Dragovic
de5b202dfe Update rollup babel plugin 2020-05-13 17:56:03 +02:00
Jason Miller
d0ca19157e Add fast rest parameters transform 2020-05-08 19:51:25 +00:00
Jason Miller
2bb2a18198 Use a separate Rollup cache for modern output. 2020-05-07 23:21:15 +00:00