Raja Sekar
a992d06c41
Porting babel-plugin-transform-for-of-as-array into transform-for-of as an option ( #6914 )
2017-11-30 17:48:56 -05:00
Brian Ng
d8bbaaae0a
Split exportExtensions into exportDefault and exportNamespace plugins… ( #6920 )
...
* Split exportExtensions into two plugins in babylon
* rename proposal-export-default to proposal-export-default-from
* rename proposal-export-namespace to proposal-export-namespace-from
2017-11-30 17:46:36 -05:00
Daniel Tschinder
9d9710c765
Copy getters and setters correctly in interopWildcard ( #6850 )
2017-11-30 15:50:10 -06:00
Sam Gluck
18b91a8388
[plugin-proposal-class-properties] Fix small loose docs typo ( #6941 )
2017-11-30 15:09:36 -06:00
Artem Yavorsky
0a2a37c31f
Fix export from assignment order for loose mode. ( #6863 )
...
* Consider reexports for bindingKindLookup.
* Update test cases according to reexports change
* Fix order for assign reexports.
* void 0 assignation to module keys only for loose mode.
* Create buildReexportsFromMeta helper.
* Update umd/amd fixtures.
* Refactor reexports build.
* Hoist template for reexports.
* Use map as a second argument of Array.from.
* Remove unnecessary export.
2017-11-29 11:58:29 -08:00
Boda
d731acc351
updated Unpkg link ( #6929 )
...
...to be the same as the link in the Installation section
2017-11-29 11:41:13 -05:00
Logan Smyth
fba19295b4
Merge pull request #6905 from loganfsmyth/config-options-merge
...
Merge all config & programmatic plugins/preset rather than duplicating
2017-11-28 13:46:36 -08:00
Logan Smyth
8fc8a1f2ee
Use public options API for tests.
2017-11-28 13:25:10 -08:00
Nicolò Ribaudo
18c8d97c3d
UpdateExpressions as callees must be parenthesized ( #6922 )
2017-11-27 23:31:24 +01:00
Henry Zhu
58962c35b5
update regenerator (removed explicit babel-types dep) ( #6917 )
2017-11-27 23:16:41 +01:00
Brian Ng
881fc14329
Add handling parens for extends clause in generator ( #6897 )
2017-11-27 12:08:35 -06:00
Daniel Lo Nigro
7d8932b6be
Add comment to babel-standalone to dissuade removal of whitelist ( #6910 )
...
There was a good discussion on https://github.com/babel/babel/pull/6177 . Linking to it in the code to preserve the comments.
2017-11-27 10:08:28 -08:00
Mauro Bringolf
6330a152ce
Implement TDZ for ClassFieldDefinitionEvaluation ( #6855 )
...
* First implementation sketch and testcase
* Use helper instead of inline IIFE's
* minNodeVersion 6.0.0
* Hoisted visitor for subtraversal and fixed edgest case
* Resolve merge conflicts in helpers
* Remove duplicated helper from messing up Git
2017-11-26 16:56:04 +01:00
Logan Smyth
189c56628a
Replace repeated plugins/preset in top-level config instead of running both.
2017-11-25 18:47:13 -08:00
Logan Smyth
8be488652f
Allow plugins and presets to have explicit names.
2017-11-25 18:46:00 -08:00
Logan Smyth
cdf420d4d8
Rewrite config chain tests to use public loadOptions API. ( #6909 )
2017-11-25 18:25:20 -08:00
Nicolas Marien
cf62908bbd
Keep user options intact in transformFile ( #6890 )
...
* Preserve user options in transformFile
* Improve tests for transformFile user opts handling
2017-11-25 10:13:56 -08:00
Logan Smyth
c635ff9c32
Remove duplicate from plugin list.
2017-11-24 19:45:15 -08:00
Logan Smyth
6cb9d20a0a
Tie presets pass metadata to descriptors.
2017-11-24 19:45:15 -08:00
Logan Smyth
b5cb78d33a
Move plugin pass initialization logic a bit.
2017-11-24 19:45:15 -08:00
Logan Smyth
1d0a3d6772
Remove duplicated assertion. Covered by validate()
2017-11-24 19:45:14 -08:00
Logan Smyth
18ea5aca51
Expose a 'cwd' option for Babel's root options.
2017-11-24 19:43:25 -08:00
Logan Smyth
db28c18458
Disallow nested '.env' blocks since they are useless.
2017-11-24 17:45:27 -08:00
Logan Smyth
a89171910f
Merge pull request #6834 from loganfsmyth/caching-refactor
...
Expose `envName` as a top-level Babel option to avoid using environmental variables
2017-11-24 17:42:16 -08:00
Mark Shulhin
0056fb1cfb
Fixed ignore in readme for babel-register [skip ci] ( #6899 )
2017-11-24 17:45:49 -05:00
Brian Ng
0a3c2a0c4c
Fix babylon test
2017-11-24 09:15:17 -06:00
Martin McKeaveney
6d820a2757
removing expression field from ArrowFunctionExpression ( #6836 )
2017-11-23 22:12:13 +01:00
Mateusz Burzyński
1ef7e0f48e
Allowed hintedNames for namespaced imports, changed some other defaults for more readable ones ( #6744 )
2017-11-23 21:01:47 +01:00
Daniel Tschinder
9206df964d
Use only imports in babel-traverse and remove double exports ( #6881 )
2017-11-23 20:59:54 +01:00
Brian Ng
c583a04a55
Fix setting deopt properly after evaluating multiple expressions ( #6882 )
2017-11-22 20:06:57 -05:00
Gidi Meir Morris
edbf5d33dc
Fix "Better error messaging for unexpected tokens #6715 " ( #6875 )
2017-11-22 15:31:03 -06:00
Brian Ng
8393a6d089
Add firefox 58 mappings to preset-env data ( #6874 )
2017-11-22 15:30:07 -06:00
Nicolò Ribaudo
464df13c69
Allow yielding an arrow function withour parens around the param ( #6877 )
2017-11-22 15:28:37 -06:00
Logan Smyth
80b4b7120b
Quick fix for typescript import crash. ( #6879 )
2017-11-22 13:27:31 -08:00
Brian Ng
ccd7c25174
Regen babel-types docsdocs and interfaces [skip ci]
2017-11-22 08:53:16 -06:00
Sven SAULEAU
4384d38b90
Merge pull request #6862 from maurobringolf/const-violation-helper
...
Define readOnlyError helper and use in check-constants plugin
2017-11-22 12:18:52 +01:00
Henry Zhu
70361f1200
Remove the experimental folder
2017-11-21 20:03:16 -05:00
Mauro Bringolf
ba441c5ce4
Define readOnlyError helper and use in check-constants plugin
2017-11-20 16:41:15 +01:00
Daniel Tschinder
7064b298d7
Make SpreadProperty and RestProperty a deprecatedAlias ( #6853 )
...
instead of hardcoding backwards compatiblity.
This way we get deprecation warnings and also builders will work.
2017-11-18 21:54:24 +01:00
Daniel Tschinder
f3004d0d4d
Fix validation of WithStatement and enable flow in definitions ( #6852 )
...
Fixes also flow errors after activating flow
2017-11-18 18:17:31 +01:00
Anatoli Papirovski
2b710d0387
Do not access out of bounds arguments ( #6792 )
...
Potentially out of bounds arguments should not just be directly
accessed, instead use a ternary operator to check length.
2017-11-17 21:39:08 +01:00
Steven Hargrove
cee9ae48e0
[skip ci] removed shorthand usage of official babel scoped presets & plugins from README.md's ( #6820 )
2017-11-16 22:51:23 -05:00
Logan Smyth
39dae28d5c
Add missing argument and remove nonexistent one. ( #6842 )
2017-11-16 16:32:47 -08:00
Valerii Iatsko
16e898c692
@babel/cli: removed babel-node mention in README.md [skip ci] ( #6829 )
...
Follow up to 2374062bbdfe8815892d64bd797298805db8b150
2017-11-16 18:04:10 +01:00
Sven SAULEAU
bb89364813
Merge pull request #6727 from babel/feat-use-charcode-constants
...
[Babylon] Use char codes contants
2017-11-16 10:35:42 +01:00
Sven SAULEAU
57e2c45cbe
chore: upgrade charcode
2017-11-16 09:57:20 +01:00
Raja Sekar
63397d0aad
Better error message for super when not using an object method ( #6754 )
2017-11-15 21:29:46 -06:00
Brian Ng
0f2ab2fe20
Fix some reserved type handling and declare class with multiple extends ( #6725 )
2017-11-15 16:16:15 -06:00
Logan Smyth
aa2d415507
Expose the envName as a programmatic and CLI option.
2017-11-15 11:24:39 -08:00
Sven SAULEAU
4c584ae341
chore: upgrade and fix charcodes
2017-11-15 19:53:30 +01:00