Brian Ng
923fd4705e
Remove syntax-trailing-function-commas from Babel presets ( #6513 )
2017-10-19 15:50:48 -04:00
Jen Luker
b6ae9e2db2
Updating references to @babel/ and adding dependencies to package.json ( #6509 )
...
* Updating references to @babel/ and adding dependencies to package.json all in babel-runtime.
* Removing extra ../../ from the require calls.
2017-10-19 08:23:27 -04:00
Will
752a16d44c
Remove babel-plugin-transform-async-functions ( #6510 ) [skip ci]
...
This is leftover from #6495
Closes #6504
Signed-off-by: Will Soto <will.soto9@gmail.com>
2017-10-19 08:05:52 -04:00
Nicolò Ribaudo
a740b28a9e
Commit the temporalRef runtime helper
2017-10-19 00:37:09 +02:00
Nicolò Ribaudo
d2af56bcae
Fix helpers dependencies loading
2017-10-19 00:37:09 +02:00
Nicolò Ribaudo
e0a6e1e864
Import temporalUndefined inside temporalRef helper
2017-10-19 00:32:43 +02:00
Mauro Bringolf
2311ddbe67
Add transform to rename variables that are ES3 reserved words ( #6479 )
...
* Initial version
* Replace .includes with .indexOf and better node set to visit
* Alphabetically sort es3 reserved words and make difference helper for readability
* Fix second Array.include error that was not polyfilled
* Move es3 keywords into separate babel-types helper and use in all es3 transforms
* Reference local plugin build directly for tests
* Try relative import for babel-types
* Update to scoped package name and beta 3
* Fix unscoped package import
* Replace local plugin reference with proper plugin name
2017-10-18 15:00:58 -07:00
Robert Rossmann
e6d44fd68e
babel-core: Pass the right err to callback in transformFile() ( #6503 )
2017-10-18 14:14:35 -07:00
Logan Smyth
f230497d08
Use literal-based templates for more stuff.
2017-10-18 13:58:48 -07:00
Logan Smyth
673eaf839a
Simplfy assertion generation.
2017-10-18 13:58:48 -07:00
Logan Smyth
107c37715e
Use .program template for helpers.
2017-10-18 13:58:47 -07:00
Logan Smyth
cc802c1e00
Reimplement 'babel-template' with better caching and tagged literal utilities.
2017-10-18 13:58:47 -07:00
Logan Smyth
191624d800
Add a new utility for traversing the AST.
2017-10-18 13:55:14 -07:00
Logan Smyth
ef185feb35
Split template module into multiple files.
2017-10-18 13:55:14 -07:00
Logan Smyth
fc3433c5cf
Default templates to sourceType:module.
2017-10-18 13:55:14 -07:00
Logan Smyth
afc3963848
Clean up template calls.
2017-10-18 13:55:14 -07:00
Mathias Bynens
5d4c736413
Import babel-plugin-transform-unicode-property-regex ( #6499 )
...
* Import babel-plugin-transform-unicode-property-regex
Original: https://github.com/mathiasbynens/babel-plugin-transform-unicode-property-regex
Moving it into the official Babel repository makes it easier to maintain the transform.
* Update package.json
* Update README.md
* fixup
* fixup 2
2017-10-18 13:58:44 -04:00
Logan Smyth
1b4307205e
Limit file-based plugins/presets to only exporting functions. ( #6494 )
2017-10-18 10:17:45 -07:00
Logan Smyth
445b252bc4
Simplify dirname option in plugins/presets? ( #6436 )
2017-10-18 08:59:32 -07:00
Brian Ng
85d82152c6
Update scope pkg ref in nullish syntax README [skip ci]
2017-10-18 09:54:51 -05:00
Brian Ng
d7af472dc0
Update scope pkg ref in nullish README [skip ci]
2017-10-18 09:53:16 -05:00
Brian Ng
72d1a72122
Update babel-types docs and lib/types [skip ci]
2017-10-18 09:43:54 -05:00
Lucas Azzola
99be60b53d
Implement transform for nullish-coalescing operator ( #6483 )
...
* Implement transform for nullish-coalescing operator
* Update example output
* Switch from BinaryExpression to LogicalExpression
* Address review comments
- Use generateUidIdentifierBasedOnNode
- Inline "??"
- Clone ref node
- Move "??" to LogicalExpression in babel-types
* Fix reference to @babel/helper-plugin-test-runner
* Fix reference to @babel/plugin-syntax-nullish-coalescing-operator
* Don't use parent scope
* Remove .vscode from .gitignore, change 'lib/index.js' to 'lib'
* Ensure `document.all ?? 0 === document.all`
* Fix note and copy to an inline comment
2017-10-18 03:10:05 -04:00
James Kyle
5c47929983
Export File from babel-core again
2017-10-18 12:28:56 +11:00
Logan Smyth
a75e69ecec
Regenerate incorrectly-updated helpers from @babel scope PR.
2017-10-17 10:47:15 -07:00
Henry Zhu
f30924e655
Scoped: fix tests [skip ci]
2017-10-16 22:49:57 -04:00
Henry Zhu
33af5f745a
Scoped: fix more tests in preset-env [skip ci]
2017-10-16 22:49:57 -04:00
Henry Zhu
3400b3644b
Scoped: fix bugs in tests [skip ci]
2017-10-16 22:49:57 -04:00
Mateusz Burzyński
6d2f4a6955
Scoped: updated more docs with scoped packages change [skip ci]
2017-10-16 22:49:57 -04:00
Mateusz Burzyński
859ea4b175
Scoped: updated numerous docs with scoped packages change [skip ci]
2017-10-16 22:49:57 -04:00
Henry Zhu
919bdf5e79
Scoped: remove unncessary deps from standalone [skip ci]
2017-10-16 22:49:57 -04:00
Henry Zhu
eab0a1fadb
Scoped: remove old references to default enabled syntax plugins, fix bootstrap [skip ci]
2017-10-16 22:49:57 -04:00
Henry Zhu
425c2090c1
Scoped: update standalone [skip ci]
2017-10-16 22:49:57 -04:00
Henry Zhu
c0a958098f
Scoped: update readme headers to @babel/ [skip ci]
2017-10-16 22:49:57 -04:00
Mateusz Burzyński
adfacbb270
Removed deprecated babel-core/register [skip ci]
2017-10-16 22:49:57 -04:00
Mateusz Burzyński
df721f067e
reverted change to keywords in package.jsons [skip ci]
2017-10-16 22:49:57 -04:00
Mateusz Burzyński
47fa189053
Scoped: update more babel- to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
696df10f51
Scoped: update more babel- to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Brian Ng
65495105e9
Scoped: rename installation instructions for transforms [skip ci]
2017-10-16 22:49:56 -04:00
Brian Ng
645bf56838
Scoped: rename installation instructions for presets [skip ci]
2017-10-16 22:49:56 -04:00
Brian Ng
4739677965
Scoped: rename installation instructions for syntax plugins [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
79ddf12d9d
Scoped: rename to @babel/ in readme [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
dfbbe82598
Scoped: rename npm pkg keyword [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
691f90a774
Scoped: change test imports to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
cde0054227
Scoped: change src imports to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
8e5e27577a
Scoped: update package.json dependencies to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
1cd564bd16
Scoped: rename package names to @babel/ [skip ci]
2017-10-16 22:49:01 -04:00
Henry Zhu
279f55cd9b
update to babylon beta.29
2017-10-16 20:10:55 -05:00
Zachary Sang
98621a6901
Removed index.js stub from packages/babel-core ( #6474 )
...
* Removed index.js stub from packages/babel-core
Added "main":"./lib/index.js" entry to package.json to replace index.js in packages/babel-core
* Fix indentation of new main.
2017-10-16 08:52:56 -07:00
Henry Zhu
58da50aace
simplify register test ( #6391 )
2017-10-16 11:09:11 -04:00