Pranav Prakash
2374062bbd
Remove babel-node from babel-cli ( #6251 )
...
* Remove babel-node from babel-cli
* Use new Array instead of Array for V8 optimization
* Remove extraneous use strict clauses
* Require babel-node in babel-cli
* Remove babel-node from babel-cli
* Require babel-node in babel-cli
* Remove babel-node executable from babel-cli
* Clean up babel-node from package.json
2017-09-23 11:25:27 -07:00
Logan Smyth
b115ea5da7
Merge pull request #6280 from loganfsmyth/only-transform-modules
...
Only transform 'this'->'undefined' and inject 'use strict' if module statements are present
2017-09-23 11:24:52 -07:00
Mateusz Burzyński
d8b7bc39af
Fixed loose option of transform-es2015-parameters handling only Assig… ( #6274 )
2017-09-22 19:39:39 -04:00
Mateusz Burzyński
0f8c4dc5a1
Fixed transform-fixture-test-runner API docs [skip ci] ( #6293 )
2017-09-22 18:44:44 -04:00
Logan Smyth
72da5e1d02
Quick fix for default import that also uses names. ( #6282 )
2017-09-21 22:26:42 -07:00
Mateusz Burzyński
9159323b1e
Skip adding explicit undefined for let declarations when it is not ne… ( #6288 )
2017-09-21 22:26:08 -07:00
Mateusz Burzyński
88b7983e4f
Fixed asyncToGenerator helper using arrow function ( #6289 )
2017-09-21 17:09:43 -07:00
Logan Smyth
2b88e079ef
Only transform this/use strict if a module.
2017-09-20 10:19:35 -07:00
Logan Smyth
8e6b5de042
Allow tests to be .mjs files.
2017-09-19 14:50:43 -07:00
Logan Smyth
aebebd3dde
Remove unused expected.json parsing.
2017-09-19 14:50:42 -07:00
Logan Smyth
f23dd3a04c
Move 'this' tests to the correct place.
2017-09-19 14:50:42 -07:00
Logan Smyth
fec79e358c
Ensure that Program nodes have a sourceType.
2017-09-19 14:50:42 -07:00
Henry Zhu
23121d2bd3
v7.0.0-beta.1
2017-09-19 16:24:07 -04:00
Henry Zhu
5b9112c794
babel-helper-modules -> babel-helper-module-transforms since package taken [skip ci]
2017-09-19 16:20:03 -04:00
Henry Zhu
8597219ce5
move to codemods folder [skip ci]
2017-09-19 16:04:11 -04:00
Henry Zhu
5c824273bc
update to beta.0 [skip ci]
2017-09-19 16:00:18 -04:00
MarckK
8dffbf19d0
Codemod: remove unused catch binding ( #6048 )
...
* outline of plugin to remove unused catch binding, test not passing
* plugin to remove unused catch binding
* Edit README.md and package.json
* tests for try catch finally
* Add test to handle case when binding is referenced and given new TypeError (not passing)
* Fix visitor to not remove catch clause param when binding being assigned a new value
* Improve naming of tests and explanations
* add test case for catch param not present and fix test for duplicate variable declaration
* Remove binding.constantViolations filter in visitor as superfluous
* Remove duplicate check that catch clause param present
* Alter visitor so returns out when catch binding is not an Identifier
* Created failing tests for ObjectPattern params and rewrote visitor so now passing
Took out the pass in visitor when param not an Identifier, wrote case to handle when param isObjectPattern, and wrote failing tests for when param isArrayPattern
* Handle case when param isArrayPattern, tests passing
* Update package.json to v7.0.0-alpha.20
* Revert visitor to only consider transform if param is Identifier
2017-09-19 15:38:17 -04:00
Henry Zhu
57584268cd
move out syntax plugins to babel/babel-archive, they don't need to be updated ( #6229 )
2017-09-19 15:19:13 -04:00
Henry Zhu
174eaa058a
just inline the type ( #6271 ) [skip ci]
2017-09-19 15:14:12 -04:00
Mateusz Burzyński
4519f95a29
Fixed buildExternalHelpers tool for var and module output types ( #6260 )
2017-09-19 14:44:40 -04:00
Logan Smyth
fc1e1c5668
Preserve _blockHoist values for injected binding references. ( #6269 )
2017-09-19 09:53:18 -07:00
Logan Smyth
bd734f03fb
Make babel-register 7.x backward-compatible with 6.x. ( #6268 )
2017-09-19 09:52:57 -07:00
Pranav Prakash
e98bb3dc60
Use new Array instead of Array for V8 optimization ( #6250 )
...
* Use new Array instead of Array for V8 optimization
* fix spacing [skip ci]
* Remove extraneous use strict clauses
2017-09-18 14:14:46 -04:00
Mathias Bynens
24713e5040
transform-es2015-unicode-regex: Add tests for U+002F ( #6265 )
2017-09-18 13:36:39 -04:00
Mathias Bynens
51b0b06a25
Update regexpu-core to v4.1.3 ( #6263 )
...
Fixes #6246 .
2017-09-18 11:48:01 -04:00
Ajay Narain Mathur
3cdb7d7f0f
added instanceOf plugin to preset es2015 ( #6257 )
...
* added instanceOf plugin to preset es2015
* fixed test cases
2017-09-17 17:33:42 -04:00
Ethan Han
f5ad86c5c6
Fix newlines before the update suffix operator in babel-generator ( #6259 )
2017-09-17 11:22:05 -07:00
Henry Zhu
efe5c7928a
readme: move partially into packages/ [skip ci]
2017-09-16 18:56:51 -04:00
Daniel Tschinder
9a0dd4e001
Fix jsx-source to not fail without filename ( #6239 )
2017-09-16 02:44:48 -04:00
Brian Ng
583a875d22
Add core-js stubs for parseFloat and parseInt to babel-polyfill ( #6256 )
2017-09-16 02:43:35 -04:00
Brian Ng
5f5ad940ed
Bump regenerator-runtime version in babel-polyfill ( #6255 )
2017-09-16 02:42:46 -04:00
Logan Smyth
f35cf8185b
Change usage of flag that was renamed.
2017-09-15 11:43:08 -07:00
Brian Ng
7f390b0282
Make terminator paren comment check more strict ( #5651 )
2017-09-15 11:06:24 -07:00
Logan Smyth
3c93189fce
Remove useless stict toggle from strict transform.
2017-09-13 23:30:41 -07:00
Logan Smyth
b6ae55153c
Misc documentation fix.
2017-09-13 23:30:41 -07:00
Logan Smyth
2801bfe35c
Remove 'strict:false' directive behavior. Use 'strictMode:false'.
2017-09-13 23:30:41 -07:00
Logan Smyth
637bba542a
Remove interop toggling behavior of 'strict'.
2017-09-13 23:30:40 -07:00
Logan Smyth
c65742602b
Add some docs for why template literals use a chain of .concat() calls.
2017-09-13 13:42:20 -07:00
Logan Smyth
18f77b3aa9
Merge pull request #6238 from loganfsmyth/reexport-name-priority
...
Named exports should always take priority over star exports
2017-09-13 13:33:50 -07:00
Maël Nison
0ea295e83b
Make sure that export * from does not overwrite named exports.
2017-09-12 22:32:09 -07:00
Logan Smyth
634c750558
Ensure helpers that reference globals continue to reference the globals properly.
2017-09-12 22:15:16 -07:00
Logan Smyth
158e9fbfd7
Represent helpers as simple modules.
2017-09-12 22:15:16 -07:00
Sven SAULEAU
0c5fae2faa
Make sure source type is module when parsing .mjs ( #5700 )
...
* feat: force source type module for mjs extension
* style: fix lint
2017-09-12 20:59:00 -07:00
Logan Smyth
7179136401
Ensure the AMD/UMD loaders all have params for each import to avoid lazy-loading ( #6237 )
2017-09-12 20:13:16 -07:00
Maël Nison
5bb6a83fa8
Add new tests for export * from with other names.
2017-09-12 19:51:48 -07:00
Logan Smyth
5006c81b77
Apply the new module transform the the babel-runtime helper files.
2017-09-12 17:51:52 -07:00
Logan Smyth
1e750a945c
Convert CommonJS to use new shared implementation.
2017-09-12 17:17:41 -07:00
Logan Smyth
f17d30692c
Convert AMD to use new shared implementation.
2017-09-12 17:17:41 -07:00
Logan Smyth
95e08b6d2a
Convert UMD to use new implementation of module logic.
2017-09-12 17:17:41 -07:00
Logan Smyth
47a254025a
Return a unique identifier node for each use.
2017-09-12 17:17:41 -07:00