Brian Ng
2d6606fd5a
Merge branch 'env'
2017-10-05 13:46:43 -05:00
Henry Zhu
714456f191
update regenerator to latest [skip ci]
2017-10-05 10:57:36 -04:00
Logan Smyth
70a5b77943
Move babel-standalone's build scripts to the repo root. ( #6383 )
2017-10-05 10:44:56 -04:00
William
36d8a13f4d
Fix catch error on do expression and add tests ( #6372 )
...
Fixes #6331
2017-10-04 18:19:54 +02:00
Diogo Franco
02d0b74d37
Extend babel-template to work as a template tag ( #5001 )
...
Supports:
```js
// these all should produce "code;" when generated
template`code;`();
template`${0}`(t.identifier('code'));
template`${'code'}`({ code: t.identifier('code') });
template`${t.identifier('code')}`()
template({})`code`();
```
2017-10-04 13:07:02 +09:00
Logan Smyth
93c3c147d6
Upgrade selfhosted compilation to beta.2 (Take 2) ( #6382 )
...
* Avoid bug in current version of typeof-symbol transform.
* Selfhost Babel on most recent beta release.
2017-10-03 17:04:30 -07:00
Logan Smyth
5ea54f6cac
Fix "module" external helpers output ( #6377 )
...
* Move namespace init.
* Move call to helper generation.
* Generate named module exports properly.
* Ensure that helper names are valid identifiers.
2017-10-03 13:58:47 -07:00
Mateusz Burzyński
68182bd69f
Fixed reusing node in destructuring plugin, which caused caching issue in helper-module-transforms ( #6374 )
2017-10-03 15:25:41 -04:00
Brian Ng
4f3e633fd0
Build with latest Babel
2017-10-03 09:51:02 -05:00
Henry Zhu
91cde0148d
note about .ts extension in the preset [skip ci] ( #6365 )
2017-10-02 17:42:56 -04:00
Nicolò Ribaudo
18dcdc958b
export foo -> module.exports = foo in runtime helers ( #6366 )
2017-10-02 17:40:55 -04:00
Logan Smyth
3d43a6edb4
Merge pull request #6350 from loganfsmyth/plugin-preset-caching-updated
...
Cache plugins and presets based on their identity
2017-10-02 14:40:06 -07:00
Logan Smyth
35312dc3d2
Track options on the plugin instance to avoid array pair usage.
2017-10-02 14:15:40 -07:00
Logan Smyth
f9bac2a358
Implement caching of plugins/presets/options
2017-10-02 14:09:59 -07:00
Logan Smyth
cc8109cdc3
Merge pull request #6359 from loganfsmyth/file-simplification
...
Split up babel-core's File class and add Flowtype annotations
2017-10-02 14:08:56 -07:00
Logan Smyth
f02e6847cf
Add browser versions of the transform files.
2017-10-02 13:55:37 -07:00
Logan Smyth
eae76e5b89
Break apart the File class into multiple files and add type definitions.
2017-10-02 13:55:37 -07:00
Logan Smyth
c1df126b83
Remove wrap function and calculate code frames earlier.
2017-10-02 13:48:02 -07:00
Henry Zhu
4a8137c6b4
Merge pull request #6335 from jridgewell/pipeline
...
Pipeline operator
2017-10-02 16:32:15 -04:00
error
9f90b6f140
add con to monorepo.md ( #6362 ) [skip ci]
2017-10-02 16:30:48 -04:00
Nicolò Ribaudo
db6626718f
Document babel helpers ( #6364 ) [skip ci]
2017-10-02 16:29:49 -04:00
Justin Ridgewell
73fba55c9f
Requeueing sometimes has wrong scope ( #6351 )
...
This prevents a requeued path from inheriting a totally wrong scope later on. I can't find exactly where this is happening, but either way a path should only inherit scope from it's ancestors.
2017-10-02 15:26:10 -04:00
Nicolò Ribaudo
977c72250a
Add support for helper dependencies ( #6254 )
...
* Add support for helpers dependencies.
They are used like this:
helpers.main = defineHelper(`
import dep from "dependency";
export default function main() { return dependency; }
`);
helpers.dependency = defineHelper(`ì
export default function dep() { return 0; }
`);
* Clone import references
* Don't make test helpers name depend on the order the tests are run
2017-10-02 10:10:52 -07:00
Brian Ng
9cd4716cb4
Add --include-dotfiles option to babel-cli ( #6232 )
2017-10-02 08:55:53 -05:00
Henry Zhu
6816b26994
Merge pull request #6356 from JeromeFitz/babel-messages-inline
...
Remove babel-messages and inline the usages
2017-09-30 23:25:06 -04:00
Henry Zhu
b492f452ce
don't run CI for tags [skip ci]
2017-09-30 23:23:25 -04:00
Mateusz Burzyński
d8d35ac0c4
Annotating taggedTemplateLiteral calls as #__PURE__ ( #6327 )
2017-09-30 17:30:44 -04:00
Brian Ng
789ce386ed
Bump prettier ( #6355 )
2017-09-30 09:53:52 -04:00
JeromeFitz
ae168edcfa
Remove babel-messages ( #6347 ), continuation of #6352
...
package.json "babel-messages" removed:
- babel-core
- babel-helper-replace-supers
- babel-plugin-transform-es2015-classes
- babel-traverse
"messages" remove from:
- babel-plugin-check-es2015-constants/src/index.js
- babel-plugin-transform-es2015-for-of/src/index.js
export "babel-messages" removed from:
- babel-core/src/index.js
import "babel-messages" removed from:
- babel-generator/src/index.js
- babel-helper-replace-supers/src/index.js
- babel-traverse/src/index.js
- babel-traverse/src/scope/index.js
- babel-traverse/src/visitors.js
package "babel-messages" removed completely.
💯 ️ All tests pass.
2017-09-30 09:31:53 -04:00
Abhilash Singh
6230855b71
unshiftContainer seems to incorrectly handle function params #6150 ( #6354 )
2017-09-30 09:14:51 -04:00
rouzbeh84
aaeebfaf00
inlines babel-messages on the following files:
...
option-manager.js... /babel-core/src/config/
build-external-helpers.js... /packages/babel-core/src/tools/
index.js... /packages/babel-generator/src
2017-09-30 02:19:32 -07:00
Joe Lim
7c8a6cb461
remove inline plugin from Babel's .babelrc ( #6348 )
2017-09-30 00:15:35 -04:00
Justin Ridgewell
0e432f0e0d
Remove debug closures ( #6349 )
...
God, can you imagine how many useless closures this was creating?
2017-09-29 21:31:43 -04:00
Justin Ridgewell
e58409b144
Indirect eval
2017-09-29 19:01:18 -04:00
Justin Ridgewell
4b440110a1
Optimize 0 param arrow
2017-09-29 19:01:18 -04:00
Justin Ridgewell
60335ce1ad
Ensure left is evaluated before right
2017-09-29 19:01:18 -04:00
Gilbert
81496ab7b1
Pipeline operator
2017-09-29 19:01:18 -04:00
Justin Ridgewell
3746273eda
Path#ensureBlock keeps path context ( #6337 )
...
* Path#ensureBlock keeps path context
This ensures that if you're inside an ArrowFunction with an expression body (say, you're on the BooleanLiteral in `() => true`), you don't suddenly lose your path context after inserting a variable.
This is because of 82d8aded8e (diff-9e0668ad44535be897b934e7077ecea5R14) . Basically, an innocent `Scope#push` caused my visitor to suddenly stop working. Now, we mutate the Path so it's still in the tree.
* Tests
2017-09-29 19:00:10 -04:00
Logan Smyth
828aec757a
Merge pull request #6326 from loganfsmyth/preserve-config-identity
...
Preserve object identity when loading config, for improved future caching.
2017-09-29 15:36:03 -07:00
Logan Smyth
a85a404175
Merge pull request #6343 from loganfsmyth/metadata-cleanup
...
Remove core .metadata properties and resolveModuleSource
2017-09-29 15:25:08 -07:00
Logan Smyth
a390a92d6a
Remove unused helpers prop.
2017-09-29 15:17:12 -07:00
Logan Smyth
f20f8b164f
Remove unused module metadata collection.
2017-09-29 15:17:11 -07:00
Logan Smyth
3bac67b4b9
Remove the resolveModuleSource options.
2017-09-29 15:17:11 -07:00
Logan Smyth
8339e036bf
Remove babel.analyse and surrounding helpers.
2017-09-29 15:17:11 -07:00
Logan Smyth
655d1cc91b
Remove unused 'usedHelpers' property.
2017-09-29 15:17:10 -07:00
Brian Ng
258e3383bd
Add Number.parseFloat/Number.parseInt mappings
2017-09-29 18:12:37 -04:00
Henry Zhu
9418945a1f
updated readme [skip ci]
2017-09-29 15:25:06 -04:00
Artem Yavorsky
f48e32bab7
Add transform-new-target and missed stage-3 plugins to babel-standalone. ( #6322 )
...
* Add transform-new-target to standalone.
* Add missed stage-3 plugins for babel-standalone.
2017-09-29 14:45:33 -04:00
Brian Ng
832408e85d
Fix generator missing parens on Flow union types ( #6334 )
2017-09-29 14:43:38 -04:00
Logan Smyth
455cb5b8d8
Remove unused file properties.
2017-09-29 11:43:23 -07:00