282 Commits

Author SHA1 Message Date
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
Jason Miller
078dbdb389
preferBuiltins: true for node, false for web
I don't know why I had this as undefined. We never want to inline built-ins.
2020-05-06 16:31:34 -04:00
Jason Miller
4cd4275209
Document iife format (#601) 2020-05-06 11:13:26 +02:00
Jason Miller
e6136ebfaa
Merge branch 'master' into async-to-promises-helpers 2020-04-30 23:08:04 -04:00
Jason Miller
1d1387326c
Update babel-custom.js 2020-04-30 13:19:54 -04:00
Jason Miller
e552ead847
Merge branch 'master' into define-expression-replacement 2020-04-30 13:18:45 -04:00
Jason Miller
67a3bcc161
Merge branch 'master' into async-to-promises-helpers 2020-04-30 13:18:26 -04:00
Jason Miller
e85667c5c4
Merge branch 'master' into strip-ts-extensions 2020-04-30 13:11:18 -04:00
Jason Miller
2635e2efac
Also minify 2020-04-28 10:29:39 -04:00
Jason Miller
3d0e555633
Don't emit code that relies on importing external helpers 2020-04-28 10:21:10 -04:00
Jason Miller
7f224edaa4
Merge branch 'master' into define-expression-replacement 2020-04-23 09:58:18 -04:00