84 Commits

Author SHA1 Message Date
Mateusz Burzyński
47fa189053 Scoped: update more babel- to @babel/ [skip ci] 2017-10-16 22:49:56 -04:00
Henry Zhu
cde0054227 Scoped: change src imports to @babel/ [skip ci] 2017-10-16 22:49:56 -04:00
Anton Rusinov
fcdfc61bdb Move plugin processing to top of plugins (#6381)
* centralize plugin options

* Centralize plugins options

- move more options to the top
- move validations that depend on options to the top

* use isLoose option

* Move more validations to the top

* Move ref parameter for rewriteModuleStatementsAndPrepareHeader() to the top

* fix eslint errors

* remove unused parameter

* set default systemGlobal value

* Revert "Move ref parameter for rewriteModuleStatementsAndPrepareHeader() to the top"

This reverts commit b3855302d17fa19d8acb4c8accab3680c8d2710e.

* Revert "Move more validations to the top"

This reverts commit e5861d8a034ff8f553391f55654f753bcf428a5d.

* fix allowMutablePropsOnTags option usage

* improve naming

* change Contructor definition for sake of consistency

* move allowMutablePropsOnTags validation to the top

* add missing !
2017-10-10 00:51:34 -04:00
Logan Smyth
ed6e6fd7dd Export babel-runtime helpers as standard CommonJS. 2017-09-26 11:28:57 -07:00
Logan Smyth
ed3603ef44 Use the imports helper in transform-runtime. 2017-09-26 11:28:57 -07:00
Logan Smyth
d159c468b2 Factor transform-runtime import insertion. 2017-09-26 11:02:36 -07:00
Logan Smyth
47a254025a Return a unique identifier node for each use. 2017-09-12 17:17:41 -07:00
Brian Ng
e4b35f680d
Run prettier 2017-06-27 12:15:00 -05:00
Diogo Franco (Kovensky)
cf5ab16ff9 Add useBuiltIns and useESModules options to transform-runtime
useBuiltIns uses versions of the helpers that do not import even
internal polyfills from core-js.

useESModules uses versions of the helpers that do not go through
transform-es2015-modules-commonjs. This allows for smaller builds in
module systems like webpack, as it doesn't need to preserve commonjs
semantics.

This includes changes to the babel-runtime build-dist script, which
will build the versions of the runtime helpers to be used by
combinations of useBuiltIns and useESModules.
2017-03-10 16:27:35 +09:00
Brian Ng
8a82cc060a Run new lint rules (#5413) 2017-03-04 10:46:01 -05:00
Logan Smyth
4ee385e96c Avoid usage of exports/module.exports/require(). 2017-02-21 16:52:42 -08:00
Henry Zhu
9083bd6283 Merge branch 'master' into 7.0 2017-02-09 18:36:02 -05:00
Jimmy Jia
9de923258c Don't transpile ES7 symbol properties (#5195) 2017-02-07 11:19:14 -05:00
Shubheksha Jalan
c468b15a15 [7.0] removed old code from transform-runtime (#5142) 2017-01-19 22:20:04 -05:00
Henry Zhu
672adba9a1 enable prefer const (#5113) 2017-01-14 09:48:52 -05:00
Dan Abramov
4ac0df00f1 Add an option for custom runtime (#3612) 2016-08-31 13:59:43 -04:00
Sebastian McKenzie
8d14f9f4d0 Add helpers: false option to babel-plugin-transform-runtime (#3603) 2016-07-27 10:36:58 -04:00
Denis Pushkarev
16ad574e48 Update core-js to 2.4 (#3480) 2016-05-16 16:46:22 -04:00
Denis Pushkarev
e6e0171db3 [core-js] temporary disable features, which can break "old runtime and new transform-runtime" case 2016-02-16 00:30:54 +06:00
Denis Pushkarev
79214b3b05 update core-js 2016-02-09 07:31:02 +06:00
Sebastian McKenzie
72c091b63a Ensure regenerator option for babel-plugin-transform-runtime doesn't cancel out core-js polyfill 2016-01-06 15:26:00 +00:00
guybedford
d5f71d4a32 ensure opts.polyfill = false behaves correctly for runtime-transformer 2016-01-06 00:26:45 +02:00
Sebastian McKenzie
3fa51097a6 Revert "remove array generics from runtime" 2016-01-03 03:42:10 +00:00
Sebastian McKenzie
4e20a99b89 Revert "update core-js" 2016-01-03 03:41:40 +00:00
Denis Pushkarev
15760dfed2 Merge pull request #3208 from zloirock/remove-array-generics-from-runtime
remove array generics from runtime
2015-12-25 00:20:32 +06:00
Denis Pushkarev
fd8477d881 remove array generics from runtime 2015-12-25 00:16:50 +06:00
Denis Pushkarev
49880e4e81 update core-js 2015-12-24 21:34:53 +06:00
Denis Pushkarev
4b9dc79aa4 update definition entry points for runtime 2015-11-10 15:52:37 +06:00
Sebastian McKenzie
bd39ea2611 add polyfill and regenerator options to babel-plugin-transform-runtime 2015-11-09 02:50:39 -08:00
Sebastian McKenzie
5589a583c8 don't use absolute paths when importing the runtime definitions, instead just export it - fixes #2909 2015-11-08 02:44:05 -08:00
Sebastian McKenzie
bcfe582fef remove json files in favor of just plain js files 2015-11-04 00:00:08 +00:00
Sebastian McKenzie
41ccee89c9 fix runtime plugin helper generation - fixes #2726 2015-11-02 06:56:36 +00:00
Sebastian McKenzie
ae7d5367f1 6.0.0
I'm extremely stupid and didn't commit as I go. To anyone reading this
I'm extremely sorry. A lot of these changes are very broad and I plan on
releasing Babel 6.0.0 today live on stage at Ember Camp London so I'm
afraid I couldn't wait. If you're ever in London I'll buy you a beer
(or assorted beverage!) to make up for it, also I'll kiss your feet and
give you a back massage, maybe.
2015-10-29 17:51:24 +00:00
Sebastian McKenzie
9969224a93 add more plugins, rename some 2015-09-15 06:12:46 +01:00