ylemkimon
7b54ab620b
preset-env: fix opera from esmodules target and Browserslist not used ( #8555 )
2018-11-08 10:29:49 -06:00
Artem Yavorsky
4249dbc8ea
Add browserslist 4 support. ( #8509 )
2018-08-23 20:09:18 -05:00
Jarda Snajdr
8874c5c481
Add missing es7.promise.finally polyfill when using useBuiltIns: usage ( #8500 )
...
Usage of a `finally` instance method should trigger import of the `es7.promise.finally` polyfill, but it doesn't. This PR adds the missing definition and a test.
2018-08-21 14:53:11 -04:00
Logan Smyth
2a4f162366
Merge pull request #8485 from loganfsmyth/caller-option
...
Allow preset-env to toggle module handling based on flags from the caller (like babel-loader)
2018-08-20 10:44:11 -07:00
Brian Ng
55295cc545
Add initial ES2019 and saf12/elec3 support in env ( #8438 )
2018-08-20 12:32:18 -05:00
Logan Smyth
d60c5e1736
Expose caller.supportsStaticESM as a flag to change preset-env behavior.
2018-08-20 10:27:55 -07:00
Brian Ng
1a0fe993f5
Ensure esmodule targets are parsed by browserslist ( #8403 )
2018-07-31 07:33:02 -05:00
Brian Ng
5fdcd29ef9
Ensure preset-env doesn't clobber browserslist defaults ( #8391 )
2018-07-26 15:22:26 -04:00
dnalborczyk
6894465df8
fix flow typeof refinement ( #8161 ) [skip ci]
2018-06-13 14:59:57 -04:00
Yuri Karadzhov
9e4c56f990
Fix Safari TP and regular versions comparison ( #8132 )
2018-06-11 14:36:45 -04:00
Serhii Nanovskyi
3de053cc6c
Validate @babel/preset-env options ( #8031 )
2018-06-09 18:38:14 -05:00
Brian Ng
f699f1bbbf
flow@0.73.0 ( #8032 )
2018-05-25 16:53:23 -05:00
Brian Ng
6dca0ff9bf
Improve useBuiltIns: usage mappins in preset-env ( #7810 )
2018-05-07 11:45:09 -05:00
Justin Ridgewell
2afe9404fe
Use Object Spread Syntax ( #7777 )
...
* Use Object Spread Syntax
* Nits
2018-04-23 21:44:27 -04:00
Michał Pierzchała
81c1b49f6a
Disable flow on transformClass, fix preset-env errors ( #7605 )
2018-03-20 18:42:11 -05:00
Daniel Tschinder
f0d681a238
Remove obsolete max-len eslint rule and reformat some stuff to fit ( #7602 )
2018-03-20 08:51:47 -05:00
Amin Marashi
8eee435cd6
Add RegExp support to include/exclude preset-env options ( #7242 )
...
* Add support for RegExp includes/excludes
* Keep the plugin order
* Detect invalid modules in regexp
* Add more tests for regexp
* Cover builtins, and unnormalized in the RegExp tests
* Remove babel-plugin- in all positions
* Change babel-plugin- prefix to string
* Add a test for the same module in include/exclude
* Handle partial matches explicitly
* Remove extra valid regexp check
* Optimise validation of plugins
* Optimise selecting the plugins
* Fix undefined include/exclude option
* Update documentation to reflect the new include matching
* Fix typo
* Apply reviews
Use regexp.test instead of string.match (slower)
Define flatten helper
Do not normalize babel-plugin anywhere in the string
2018-03-18 15:54:43 +01:00
Brian Ng
fed530f6bf
Use helper-module-import inside entry plugin too
2018-03-15 09:21:20 -05:00
Gaël Gillard
29d44193cd
Use helper-module-imports instead of custom import ( #7457 )
2018-03-15 09:21:19 -05:00
Yael Hermon
29807837bb
preset-env - add Symbol.asyncIterator to shippedProposals builtIns ( #7548 )
...
* preset-env - add Symbol.asyncIterator to shippedProposals builtins
* fix typo
2018-03-11 16:29:22 -05:00
Brian Ng
2a0071028d
Add Number.parseFloat/parseInt mappins for preset-env 'usage' ( #7421 )
2018-03-08 09:08:43 -06: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
Guy Bedford
f004972625
Ensure babel-preset-env targets input object is not mutated ( #7438 )
2018-02-27 08:46:24 -06:00
Brian Ng
182fe7b04e
Add missing promise polyfill deps for preset-env's useBuiltIns: usage ( #7400 )
2018-02-23 08:45:22 -06:00
Daniel Tschinder
593c1a0861
Add core-js as valid polyfill source ( #7315 )
2018-02-04 17:53:54 -06:00
Brian Ng
3deb246c7d
Add some es5 features to babel-preset-env ( #6526 )
2018-01-30 13:53:38 -06:00
Mateusz Burzyński
3316a554bf
Support cjs shorthand for modules option in preset-es2015 & preset-env ( #7283 )
2018-01-30 11:46:21 -05:00
Mauro Bringolf
92fc26d399
Remove check-constants plugin ( #6987 )
...
* Rebased onto new version
* Moved constants check into a separate method
2018-01-26 10:43:09 -05:00
Kristofer Baxter
b3969d35fa
Add preset-env target esmodules ( #7212 )
2018-01-22 15:44:10 -06:00
h1b9b
068c65a1dd
Remove hasBeenLogged flag from preset-env ( #7130 )
2017-12-29 08:19:11 -06:00
Artem Yavorsky
035286a810
[preset-env] Move all defaults to the separate module ( #7084 )
...
* preset-env: Move all defaults to the separate module.
* preset-env: Add test cases for defaults.
2017-12-22 10:42:06 -05:00
Brian Ng
080c7f1e2d
Clean up logPlugin
2017-12-19 14:57:19 -06:00
Brian Ng
3cea9f412a
Add dot-all regex support to preset-env and standalone
2017-12-19 11:39:00 -06:00
Brian Ng
cd10ea03b4
Fix bug with debug output and unreleased versions
2017-12-19 11:38:59 -06:00
Brian Ng
c7980b2b90
Bump prettier ( #6991 )
2017-12-07 17:36:49 -05:00
Henry Zhu
70361f1200
Remove the experimental folder
2017-11-21 20:03:16 -05:00