Nicolò Ribaudo
8c7d4b55c9
Add plugins name ( #8769 )
...
* Add plugins name
* Add missing names found by the plugin
* Add eslint plugin
2018-11-18 23:02:58 +01:00
Logan Smyth
13798feefb
Fix prerelease checks in .availableHelper and transform-runtime definitions. ( #8659 )
2018-09-10 18:25:21 -07:00
Logan Smyth
f6643d1804
Merge pull request #8624 from loganfsmyth/misc-fixes
...
Verify 'sourceMap' option with hasOwnProperty, and verify string-typed 'version'
2018-09-04 09:27:10 -07:00
Siddharth Parmar
262787bd92
Add static Math methods to plugin-transform-runtime ( #8616 )
...
* Add static Math methods to plugin-transform-runtime
* Remove methods which are not part of TC39 standard
* Use semver to conditionally include Math module
2018-09-03 20:49:51 -07:00
Logan Smyth
9232e8b405
Validate the type of the 'version' option for transform-runtime.
2018-09-03 18:44:10 -07:00
Ryunosuke Sato
15f456651a
Fix grammar in error message at @babel/plugin-transform-runtime ( #8581 )
2018-08-29 11:57:36 -07:00
Logan Smyth
50d3c09883
Add support for asyncIterator.
2018-08-26 13:59:33 -07:00
Logan Smyth
508bfad55a
Remove non-standard and prototype methods from constructor property use.
2018-08-26 13:59:33 -07:00
Logan Smyth
130814342a
Enable a few disabled core-js utils now that we're reading for them in 7.x.
2018-08-26 13:52:19 -07:00
Logan Smyth
39fa102ee8
Use supportsStaticESM to toggle runtime module usage. ( #8520 )
2018-08-24 10:48:47 -07:00
Logan Smyth
023044c1d4
Reference the CommonJS helpers when a file is not explicitly a module. ( #8518 )
2018-08-23 15:09:14 -07:00
Logan Smyth
1e0b649485
Allow transform-runtime to insert runtime references with absolute paths. ( #8435 )
2018-08-14 16:11:19 -07:00
Logan Smyth
a8224d40e2
Split @babel/runtime into two separate runtime modules.
2018-08-02 19:25:07 -07:00
Logan Smyth
3210a7a873
Default to non-corejs helpers.
2018-08-02 19:24:41 -07:00
Logan Smyth
a149466001
Move build-dist script to the runtime transform.
2018-08-02 19:23:47 -07:00
Logan Smyth
363c5923f0
Remove unused options.json file.
2018-08-02 19:21:40 -07:00
Logan Smyth
e2d64f146c
Only reference helpers from external helpers or runtime helpers if they are known to be available.
2018-08-02 18:44:56 -07:00
Logan Smyth
a4795408b4
Allow plugins to assert that a specific babel version has loaded the plugin. ( #7450 )
2018-03-04 14:36:54 -08:00
Nicolò Ribaudo
63ae923987
Add t.cloneNode and deprecate t.clone and t.cloneDeep ( #7149 )
2018-01-29 22:59:06 +01:00
Diogo Franco
a66845169f
Rename misleading identifier
...
notRegenerator actually _enabled_ transforming regeneratorRuntime references.
2017-12-15 11:20:15 +09:00
Logan Smyth
b19b66d94b
Use peerDep rather than plugin param for common APIs.
2017-11-06 11:32:47 -08:00
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