34 Commits

Author SHA1 Message Date
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
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
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
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
Jason Miller
a8a36acc81
--no-compress should preserve comments (#648)
This fixes #647.
2020-06-03 07:07:58 +02:00
Kristoffer K
58288ec989
fix: add missing dependencies and use require.resolve (#634) 2020-05-27 22:11:43 +02:00
Jason Miller
0c68bb62eb Allow import.meta usage 2020-05-22 14:31:34 +00: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
1d1387326c
Update babel-custom.js 2020-04-30 13:19:54 -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
2dd4afec70
Fix babel cache bleed (#570)
* Instantiate babel.custom() separately for each output

* Update index.js

* prettier

* prettier

* lint fixes

* revert unrelated terser change

* add test for modern + generators

Co-authored-by: Leah <me@hrmny.sh>
2020-03-12 16:36:04 -03:00
Jovi De Croock
56ab91357e correct regexp 2020-02-02 21:35:12 +01:00
Jovi De Croock
20d165cd14 add the preset conversion 2020-02-02 19:11:08 +01:00
Jovi De Croock
fc4568d9f4 update snapshots and implement custom babelrc 2020-02-02 19:04:16 +01:00
Jovi De Croock
24c3c56638 implement preset-modules for modern 2020-02-02 18:46:46 +01:00
realdennis
c18b7c4d44 Defensive check, preset.options would be undefined sometime 2019-12-08 01:18:29 +08:00
Federico Zivolo
1feb58b9b2 fix: properly forward jsx and jsxPragma to customBabel 2019-08-20 17:05:10 +02:00
Federico Zivolo
bb8c59bac9 fix: add Flow support back (#444) 2019-07-10 00:19:27 +02:00
Leah
ad65aafa35 fix: custom-babelrc 2019-07-09 22:43:48 +02:00
Leah
a55fd5e073 fix: don't polyfill, that should be done at the app level, not libs
also updates
2019-06-17 19:46:40 +02:00
Jason Miller
8142733c75 Modern JS (#413) 2019-06-15 01:20:10 +02:00
Leah
89d44cd051 fix: babel-custom was slightly to very broken 2019-06-12 00:54:15 +02:00
Federico Zivolo
2a92191698 feat: add support for Babel macros 2019-06-12 00:25:07 +02:00
Leah
f0e56e2cba fix typescript async 2019-06-07 19:23:05 +02:00
Ward Peeters
0eadcd9bce feat(babel): merges babelrc with microbunde babel config (#396)
* feat(babel): merges babelrc with microbunde babel config

* update tests

* Fix README.md

Fix examples description

* remove unused rollup-plugin-flow dependency (#379)
2019-05-29 00:46:59 +02:00
Ward Peeters
34717de4d7 fix jsx pragmaFrag 2019-05-25 10:55:06 +02:00
Mateusz Burzyński
a753766676 Format all files with prettier 2018-05-21 10:21:54 +02:00
Tom Vincent
f9b6e023bb
Guard against flow transform response
Closes #64.
2018-01-25 10:05:58 +00:00
Jason Miller
b55ae94bf7 Fix sourcemaps! 2018-01-24 08:58:43 -05:00
Jason Miller
8960114faf If defaults + named exports are detected, only export default and prune named. Enable pure properties for tree-shaking (since they're already enabled for uglify) 2018-01-14 13:37:15 -05:00