Justin Ridgewell
5899940156
Update parser whitespace for clarity ( #8539 )
...
* Update parser whitespace for clarity
Has the nice benefit of not requiring a charCode to String conversion.
* Remove test262 exceptions
Per https://github.com/tc39/ecma262/pull/1218#issuecomment-395340891 ,
ECMA262 follows whatever the latest Unicode version specifies for Zs
Space_Separator category. MONGOLIAN VOWEL SEPARATOR was moved to the Cf
Other_Format category in Unicode 8.
2018-08-25 19:12:38 -04:00
Logan Smyth
595240f071
Add a 'whitelist' option for the external-helpers plugin to mirror the helper builder. ( #8531 )
2018-08-24 15:10:46 -07:00
Henry Zhu
cada040bec
v7.0.0-rc.3
v7.0.0-rc.3
2018-08-24 14:06:00 -04:00
Nicolò Ribaudo
1f9b2a5c41
[_wrapNativeSuper] Don't wrap non-native constructors ( #8501 )
2018-08-24 19:58:49 +02:00
Logan Smyth
39fa102ee8
Use supportsStaticESM to toggle runtime module usage. ( #8520 )
2018-08-24 10:48:47 -07:00
Honza Javorek
e841ccca34
Upgrade slash ( #8527 ) [skip ci]
...
The 1.x versions do not contain a full license text.
2018-08-24 11:31:27 -04:00
Artem Yavorsky
4249dbc8ea
Add browserslist 4 support. ( #8509 )
2018-08-23 20:09:18 -05:00
Standa Opichal
a7cc3325cd
Add LICENSE file to published npm packages [skip ci] ( #8409 )
2018-08-23 19:49:27 -04: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
Rafael de Oleza
22bcfbe469
Fix path.scope.rename() to not change break clauses ( #8478 )
...
* Make labels on break and continue statements not referenced
* Add test for imports and labels with the same name
2018-08-23 14:20:57 -07:00
Jason Quense
47e05d70f3
Fixed issue with non-simple property paths in object-rest-spread loose mode ( #8514 )
...
* fix: object rest with default values bug
fixes #8323
* rename variable
2018-08-23 15:53:31 +02:00
Nicolò Ribaudo
c5e3b6d4bc
[decorators] Don't set writable on accessors ( #8513 )
2018-08-23 00:54:28 +02:00
Logan Smyth
b04de1196a
Rename exported functions where name conflicts with param. ( #8505 )
2018-08-21 13:54:29 -07:00
Henry Zhu
d07cef244e
Update Babel to rc.2 ( #8504 )
2018-08-21 15:31:07 -05:00
dnalborczyk
6c68ca8e0a
adjust supported npm versions to v3 ( #8359 ) [skip ci]
2018-08-21 15:44:17 -04:00
Henry Zhu
f1d774b34f
v7.0.0-rc.2
v7.0.0-rc.2
2018-08-21 15:22:07 -04: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
Yi Li
b439013cd4
Fix trailingComments for FunctionExpression that is CallExpression arguments ( #8488 )
2018-08-21 12:29:11 -05:00
Nicolò Ribaudo
f8b0a5579f
Remove File#resolveModuleSource ( #8470 )
2018-08-20 12:14:55 -07: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
Nicolò Ribaudo
59e9c6322b
Remove hub.file usage from babel-core
2018-08-20 19:30:29 +02:00
Yongxu Ren
0fd3da110d
Rewrite Hub as interface #5047
2018-08-20 19:30:29 +02:00
Logan Smyth
d60c5e1736
Expose caller.supportsStaticESM as a flag to change preset-env behavior.
2018-08-20 10:27:55 -07:00
Logan Smyth
90bebe7186
Pass the caller.name option in Babel's own callers.
2018-08-20 10:27:54 -07:00
Logan Smyth
8d6ed7e0aa
Expose an api.caller(...) handler for presets to access caller metadata.
2018-08-20 10:27:54 -07:00
Logan Smyth
8f4bae8ea4
Expose optional caller metadata to Babel ignore/only/test/include/exclude functions.
2018-08-20 10:27:54 -07:00
Logan Smyth
2c3c12fdf7
Enforce a limited set of cache key values for plugins/presets for future caching.
2018-08-20 10:12:19 -07:00
Logan Smyth
25d2f59018
Ensure that presets properly flatten their options.
2018-08-20 10:12:19 -07:00
Logan Smyth
3a399d1eb9
Cache individual programmatic descriptors along with the overall list. ( #8494 )
2018-08-20 10:08:21 -07:00
Logan Smyth
c2a2e24965
Take top-level config source into consideration when processing nested env/overrides. ( #8493 )
2018-08-19 21:46:09 -07:00
Logan Smyth
ef68114d67
Fix typo in sourcemap filtering.
2018-08-19 16:37:29 -07:00
Logan Smyth
ca639b4262
Preserve 'false'-options for disabled plugins/presets so that callers can use that to toggle behavior. ( #8474 )
2018-08-19 16:22:27 -07:00
wtgtybhertgeghgtwtg
7a51d72345
Bump js-tokens in @babel/highlight. ( #8490 )
2018-08-19 07:35:16 -04:00
dnalborczyk
ab8555a867
Update dependencies ( #8364 )
2018-08-17 10:26:25 -05:00
Nicolò Ribaudo
0136a26af7
Fix conflict in tests ( #8486 )
2018-08-17 11:36:10 +02:00
Yeonghoon Park
c75a00bd56
Fix default descriptor setting for class properties with decorators ( #7429 )
...
(legacy decorators)
2018-08-17 10:49:03 +02:00
Logan Smyth
ffa8e6cbae
Allow babel-plugin/preset to be in package names outside the prefix, when used in a scope. ( #8473 )
2018-08-16 15:13:52 -07:00
Nikolay Emrikh
5043ec78bc
Fixes setter paratemer default value ( #8479 )
...
* Fixes setter paratemer default value
* Not changes doesn't mutate loose variable
2018-08-16 01:54:50 -04:00
Nicolò Ribaudo
3989213e37
Remove unused file ( #8472 )
2018-08-15 09:08:28 +02:00
Nicolò Ribaudo
d79b5eeeff
Require decoratorsBeforeExport option for decorators ( #8465 )
...
* Require decoratorsBeforeExport option for syntax-decorators
* Also babylon
* Enable test
2018-08-15 09:04:52 +02:00
Logan Smyth
1e0b649485
Allow transform-runtime to insert runtime references with absolute paths. ( #8435 )
2018-08-14 16:11:19 -07:00
Laxman
8c65230258
Fix link to babel-parser ( #8464 ) [skip ci]
2018-08-13 15:54:07 +02:00
Mauro Bringolf
427aff559f
Fix decorators interop bug with class field tdz
...
Co-authored-by: Jan Buschtöns <jan@buschtoens.me>
2018-08-13 08:57:09 +02:00
James DiGioia
122906d525
Verify if MemberExpression is computed
...
If a property access is computed, e.g. a[b], then it's in topic style. Currently,
this isn't accounted for. Test & change ensures this doesn't parse.
2018-08-10 08:06:38 -04:00
James DiGioia
25d01460fd
Fix error message for #4 case
...
This impact private fields as well as smart pipeline, providing a clearer
error message for both.
2018-08-10 07:52:55 -04:00
wtgtybhertgeghgtwtg
de16ac08be
Remove lodash where it isn't used. ( #8446 )
2018-08-09 23:21:41 -04:00
James DiGioia
ba5642d4ee
Add test for computer properties
...
This seems to parse fine. Should it?
2018-08-09 22:08:39 -04:00
James DiGioia
15e6d844ae
Remove additional parser logic
...
These are parsable only in follow-on proposals, not in the base proposal,
so we'll introduce that in a separate PR.
2018-08-09 22:08:23 -04:00
James DiGioia
d1cae2dec2
Remove unneeded comment
...
This is no longer true, now that we return `tt.hash`.
2018-08-09 21:10:43 -04:00