Brian Ng
d7fd8888fa
Bump compat-table for Chrome 63 ( #6462 )
2017-10-11 13:22:32 -04:00
Brian Ng
be58de2b62
Use no-undefined-identifier eslint rule in packages ( #6457 )
2017-10-11 01:11:48 -04:00
Andy
0fbf3a61fb
Fix new type errors ( #754 )
2017-10-10 16:11:28 -05:00
Anton Rusinov
fcdfc61bdb
Move plugin processing to top of plugins ( #6381 )
...
* centralize plugin options
* Centralize plugins options
- move more options to the top
- move validations that depend on options to the top
* use isLoose option
* Move more validations to the top
* Move ref parameter for rewriteModuleStatementsAndPrepareHeader() to the top
* fix eslint errors
* remove unused parameter
* set default systemGlobal value
* Revert "Move ref parameter for rewriteModuleStatementsAndPrepareHeader() to the top"
This reverts commit b3855302d17fa19d8acb4c8accab3680c8d2710e.
* Revert "Move more validations to the top"
This reverts commit e5861d8a034ff8f553391f55654f753bcf428a5d.
* fix allowMutablePropsOnTags option usage
* improve naming
* change Contructor definition for sake of consistency
* move allowMutablePropsOnTags validation to the top
* add missing !
2017-10-10 00:51:34 -04:00
Logan Smyth
d89063bb32
Ensure that tests run with the monorepo's version of babel-core ( #6454 )
2017-10-10 00:29:23 -04:00
Mateusz Burzyński
e52f6caa18
Drop old compatibility if statement targeting babel@6.15 and earlier ( #6451 )
2017-10-09 13:49:06 -04:00
Sven SAULEAU
6fc9af52ca
Merge pull request #751 from gebilaoxiong/remove-unnecessary-return
...
chore: remove unnecessary return
2017-10-09 13:53:21 +02:00
Logan Smyth
7d6b15bba9
Regenerate types with scripts.
2017-10-08 22:31:31 -04:00
gebilaoxiong
94a17419d4
chore: remove unnecessary return
2017-10-09 00:48:40 +08:00
Henry Zhu
a69d75bdcb
Merge pull request #6440 from babel/misc
...
Misc
2017-10-07 10:28:07 -04:00
Henry Zhu
b4ba3cf2fa
use yarn for external bootstrap
2017-10-07 09:17:50 -04:00
Henry Zhu
e522dd8a3c
use latest yarn
2017-10-07 08:58:03 -04:00
Henry Zhu
ef467a3887
move eslint_rules to scripts/eslint_rules [skip ci]
2017-10-07 08:54:54 -04:00
Henry Zhu
35646f15a4
reomve unused packages, unused file
2017-10-07 08:51:38 -04:00
gberaudo
6298bcde03
Fix typo in README.md ( #6439 )
2017-10-07 12:17:55 +02:00
Logan Smyth
d511cfc0e2
Bit more refactoring from last PR.
2017-10-05 22:33:10 -04:00
Henry Zhu
586a738053
update template [skip ci]
2017-10-05 22:26:22 -04:00
Logan Smyth
841e8e9c80
Merge pull request #6435 from loganfsmyth/always-options
...
Always pass an options object to presets and plugins.
2017-10-05 22:26:01 -04:00
Logan Smyth
b3331c0217
Ensure that the options object always exists.
2017-10-05 22:04:09 -04:00
Logan Smyth
ca4460c0b8
Standardize on {}|void instead of ?{} options.
2017-10-05 22:04:08 -04:00
Logan Smyth
597f1a12cf
Refactor loaded descriptors to allow mutation of options.
2017-10-05 21:58:36 -04:00
Logan Smyth
e01ac56b1c
Simplify descriptor loading.
2017-10-05 21:52:05 -04:00
Logan Smyth
1e12bb6a23
Add more types around descriptor processing.
2017-10-05 21:52:05 -04:00
Brian Ng
2ee45bd04d
Fix package repo url for babel-preset-env [skip ci]
2017-10-05 17:59:51 -05:00
Brian Ng
38355d9230
Tweak babel-preset-env for monorepo
2017-10-05 17:35:16 -05:00
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
Brandon Weaver
43afb984c4
fix readme ( #749 ) [skip ci]
...
Amusingly the pipeline OP "breaks" the readme formatting because Markdown likes the `|` character a bit too much. Escaping the `|` fixes this and makes the readme display properly
2017-10-03 20:06:07 -04: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
greenkeeper[bot]
bbdde80992
Update flow-bin to the latest version 🚀 ( #746 )
2017-10-03 09:09:15 -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