Henry Zhu
a6df92f245
v7.0.0-beta.44
2018-04-02 18:19:30 -04:00
Henry Zhu
bdfeeb38c6
v7.0.0-beta.43
2018-04-02 12:47:55 -04:00
Deven Bansod
8b57a3e3b9
Migrate a few packages' tests to use Jest Expect (see below)
...
* Migrate the following packages' tests:
* babel-helper-annotate-as-pure
* babel-helper-module-imports
* babel-helper-transform-fixture-test-runner
* babel-highlight
* babel-node
* babel-plugin-transform-modules-commonjs
* babel-preset-env-standalone
* babel-preset-env
* babel-preset-es2015
* babel-preset-react
* babel-standalone
* babel-template
* babel-traverse
* babel-types
2018-03-24 16:22:10 +05:30
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
Brian Ng
669f6b97b2
Tweak es2015-related plugin order in preset-env ( #7586 )
2018-03-19 14:19:42 -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
Henry Zhu
d260bfaec4
v7.0.0-beta.42
2018-03-15 16:50:03 -04: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
Mateusz Burzyński
586d3b5929
Wrap wrapNativeSuper helpers in redefining functions for better tree-shakeability ( #7188 )
2018-03-14 23:48:33 +01:00
Simon Kjellberg
07ab02f6b2
Fix incorrect value of _cache in _wrapNativeSuper ( #7570 )
...
The boolean expressions returns false in environments where Map is missing.
This change explicitly sets _cache to undefined in such cases, to ensure the cache methods will be ignored.
2018-03-14 16:37:51 -04:00
Nicolò Ribaudo
91a114f74a
[transform-classes] Fix typo in _wrapNativeSuper helper
2018-03-14 19:23:10 +01:00
Nicolò Ribaudo
6d9887fc0f
[typeof-symbol] Guard against undefined built-in globals
2018-03-14 19:23:10 +01:00
Henry Zhu
270ea17fed
v7.0.0-beta.41
2018-03-14 12:25:26 -04:00
Yael Hermon
dfb3795a97
update preset-env after build-data ( #7543 )
2018-03-12 20:49:52 -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
Gvozd
653318b7e4
Always transform for-await in async functions. ( #7446 )
...
for-await was transformed in @babel/helper-remap-async-to-generator, which was
called by @babel/plugin-transform-async-to-generator and
@babel/plugin-proposal-async-generator-functions. This prevented for-await
statements in async functions to be transpiled if the
transform-async-to-generator plugin was't enabled.
2018-03-05 09:30:25 +01: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
Logan Smyth
7cc00cce0d
Require output fixture extension to match sourceType output.
2018-03-04 13:31:33 -08:00
Logan Smyth
beb99dfda1
Rename test fixtures using module syntax to .mjs files.
2018-03-04 13:31:32 -08:00
Michał Pierzchała
cc6e739f15
Add a brief summary to CLI's build output ( #7439 )
...
* feat(babel-cli): add a brief summary to build output
* address feedback
* further adjustments
* Use quiet output as default, add --verbose
* fix tests
* remove verbose alias
2018-03-03 13:29:26 +01:00
Daniel Tschinder
3e95830646
Migrate to jest ( #7455 )
2018-03-03 10:58:19 +01:00
Logan Smyth
ddd40bf5c7
Rely entirely on sourceType for module vs script differentiation. ( #7417 )
2018-02-27 18:11:13 -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
455c04e60a
Bump compat-table and regen preset-env data ( #7401 )
2018-02-23 08:46:14 -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
Andrea Puddu
ee6dfd1580
Fix object spread according to spec ( #7034 )
2018-02-16 20:06:17 -05:00
Henry Zhu
ea3f2d9299
v7.0.0-beta.40
2018-02-12 11:41:13 -05:00
Yeonghoon Park
4a2e1dbbc3
Fix stage-3 name in README.md ( #7363 )
...
[skip-ci] Fix a typo in preset-env doc: `@babel/preset-stage-3` package name.
2018-02-11 14:04:31 +02:00
Clar Roʒe
2979dd99ac
Update browserslist for babel-preset-env. ( #7365 )
2018-02-11 09:57:50 +02:00
Logan Smyth
d88173b9f8
Ensure that tests don't leave mutated global state in the environment.
2018-02-08 00:22:49 -08:00
Nicolò Ribaudo
dd0337cc85
Fix failing test ( #7344 )
2018-02-06 17:42:55 -06:00
Daniel Tschinder
593c1a0861
Add core-js as valid polyfill source ( #7315 )
2018-02-04 17:53:54 -06:00
Henry Zhu
73e64c6cb0
v7.0.0-beta.39
2018-01-30 15:27:19 -05: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
Alexander Pepper
63d9998aa4
babel-preset-env: Fixed links in readme and improved "Built-ins" example ( #7271 )
2018-01-24 10:02:03 -06:00
Kristofer Baxter
b3969d35fa
Add preset-env target esmodules ( #7212 )
2018-01-22 15:44:10 -06:00
Matt Ziemer
f9804e6beb
Add 'loose' option link for babel-preset-env ( #7241 )
...
- Added a external link to a good explanation of “loose” transformations.
http://2ality.com/2015/12/babel6-loose-mode.html
2018-01-20 14:34:52 +02:00
Henry Zhu
b5d20ab171
v7.0.0-beta.38
2018-01-17 11:31:32 -05:00
Nicolò Ribaudo
8659e1a88c
Remove old expected.{js,json} files ( #7187 )
2018-01-09 13:10:30 -06:00
Artem Yavorsky
d765573c0b
Remove excess check for hidden files. ( #7183 )
2018-01-09 10:21:49 -06:00
Raja Sekar
0f42accb87
Renamed files
2018-01-09 15:36:42 +01:00
Henry Zhu
7c99f4653f
v7.0.0-beta.37
2018-01-08 11:02:14 -05:00
h1b9b
068c65a1dd
Remove hasBeenLogged flag from preset-env ( #7130 )
2017-12-29 08:19:11 -06:00
Gustavo Rios de Sousa e Silva
d761d765bd
Replace target: uglify tests with forceAllTransforms in preset-env
2017-12-28 13:17:28 -06:00
Diogo Franco
f9e0805337
Regenerate fixtures ( #7120 )
...
* Update line endings in test fixtures to match current output
* Fix incorrectly set up static-property-tdz fixtures
It seems the fixture runner does not look into subfolders.
* Remove expected file that should not exist
* Reenable disable optimisation test
* Reenable disabled nbsp tests
* Reenable comments between props test
The comments adjacent to children test is still broken so it stays off.
2017-12-28 19:28:05 +09:00