Henry Zhu
fa86b2ddf0
Remove our own use of stage presets ( #8397 )
...
- also update the stage preset error message/readme's to point to the new blog post
2018-07-28 11:24:53 -04:00
Henry Zhu
c70a32ab9d
Throw when using Stage presets ( #8293 )
...
* inline stage presets into standalone, throw error with using Stage presets
2018-07-23 22:22:52 -04:00
Henry Zhu
7446d06911
also default stage 2 to decoratorsLegacy true [skip ci]
2018-07-16 13:07:17 -04:00
Brian Ng
e45b58dcb1
Fix small typo with decorators legacy option [skip ci] ( #7762 )
2018-04-19 20:26:54 -05:00
Nicolò Ribaudo
2679d6775c
Add "decoratorsLegacy" to presets
2018-04-19 09:08:15 -05: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
Brian Ng
95fe785354
Fix stage refs to exportNamespaceFrom and exportDefaultFrom ( #6949 )
2017-12-01 12:29:51 -05:00
Henry Zhu
1196ec1e38
add loose/useBuiltIns option to stage presets, use it, opt babylon build ( #6733 )
...
* add loose, useBuiltIns options to presets + use loose class properties
* whitelist helpers for babylon
* use transform-for-of-as-array in babylon
2017-11-03 14:22:06 -04:00
Henry Zhu
c41abd79a1
Rename all proposal plugins to -proposal- from -transform- ( #6570 )
2017-10-27 15:26:38 -04:00
Henry Zhu
cde0054227
Scoped: change src imports to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Justin Ridgewell
23f98a753a
Add throw expressions ( #6325 )
...
* Add throw expressions
Stage 2 proposal: https://github.com/tc39/proposal-throw-expressions
* Update babylon
* Add to stage 2
2017-09-27 16:15:44 -04:00
Sangboak Lee
c6a094a9d2
Split export extensions into 2 different plugins, update stage presets ( #6080 )
2017-08-19 09:35:40 -04:00
Noah Lemen
4fdd75695b
Update Class Fields to Stage 3 and change default behavior ( #6076 )
...
* add transform-class-properties to stage 3, set spec mode to default
* update readme with examples; use `buildUndefinedNode()`; change behavior to always define both static and nonstatic class properties regardless of spec/loose mode; update tests
2017-08-10 11:19:49 -04:00
Rick Waldron
9c91e35ce4
Add numeric separator to stage 2 preset ( #6071 )
2017-08-10 11:05:35 -04:00
Henry Zhu
593cbc1d53
Function sent ( #6020 )
...
* change back to function-sent
* update stage 2
2017-07-26 18:01:40 -04:00
Henry Zhu
ce5d1d0f59
why
2017-07-25 17:47:59 -04:00
Nicolò Ribaudo
fb9a752262
Function sent ( #5920 )
...
* Create "babel-helper-wrap-function"
It contains the logic to wrap a function inside a call expression.
It was part of the "babel-helper-remap-async-to-generator" package, but
it is needed to transpile "function.sent"
* Create "babel-transform-function-sent"
It transforms the "function.sent" meta property by replacing it with
"yield" and making the generator ignore the first ".next()" call.
* "function.sent" is the last value passed to .next(), not the first one
* Disable exec tests on old node
* Fix flow error
* Add "transform-function-sent" to "stage-2" preset
* Do every trasformation in one traversal
* Test for "yield function.sent"
* [skip ci]
* Fix some typos [skip ci]
2017-07-25 11:07:01 -04:00
Brian Ng
e4b35f680d
Run prettier
2017-06-27 12:15:00 -05:00
Mathias Bynens
5492fe130a
Move plugin-transform-unicode-property-regex to stage 3
2017-06-21 15:55:02 +02:00
Daniel Kao
216cbf5bd6
Move syntax-dynamic-import to stage-3 ( #5610 )
2017-04-08 10:14:23 -04:00
Brian Ng
8a82cc060a
Run new lint rules ( #5413 )
2017-03-04 10:46:01 -05:00
Daniel Tschinder
87ca6150ae
[7.0] Remove bc code from preset handling and preset-es2015 ( #5128 )
...
* Remove bc code from preset handling and preset-es2015
* Add more tests
* Only allow functions for presets
* Fix lint
2017-02-22 14:58:01 +01:00
Artem Yavorsky
3f95a767f2
[7.0] Add legacy-decorators to stage-1. Fixes #5220 ( #5225 )
2017-01-27 09:02:10 -05:00
Mathias Bynens
090f7abda4
[7.0] babel-preset-stage-2: Add transform-unicode-property-regex ( #3683 )
...
This enables the use of Unicode property escapes of the form `\p{…}` and `\P{…}` in regular expressions with the `u` flag enabled.
More info: https://mathiasbynens.be/notes/es-unicode-property-escapes
Proposal: https://github.com/mathiasbynens/es-regexp-unicode-property-escapes
Plugin: https://github.com/mathiasbynens/babel-plugin-transform-unicode-property-regex
2017-01-20 08:17:25 -05:00
Jordan Gensler
391e5bd813
[import()] Initial support for dynamic-import ( #4699 )
...
* [import()] Initial support for function-like import
* [import()] Renaming import-functions to dynamic-import
* [stage-2] Fixing lint error
* add to package.json
2016-10-17 11:02:00 -04:00
Henry Zhu
6f363b60bb
Move async-generators to stage-3 ( #4617 )
2016-09-30 17:29:18 -04:00
Henry Zhu
efa0affea1
move object-rest-spread to stage-3
2016-09-29 15:26:47 -04:00
Henry Zhu
0ab904e2d9
Add transform-async-generator-functions to stage-2
2016-09-29 15:24:58 -04:00
Justin Johansson
bae59470da
Upgraded all babel-preset-xxxs but babel-preset-es2015 to export syntax
2016-09-25 12:27:32 -07:00
Justin Johansson
e16a1657ab
Align all babel-preset-xxx packages dir structures with status quo
2016-09-25 11:41:43 -07:00