2452 Commits

Author SHA1 Message Date
Logan Smyth
86fc4fbc4f Avoid using OptionManager statics 2017-04-10 10:01:01 -07:00
Logan Smyth
ded4ca48cd Move .inherits handling to OptionManager. 2017-04-10 10:01:01 -07:00
Brian Ng
cd9bb7ba10 Ensure default exported classes keep entry in export table (#5488) 2017-04-09 16:39:15 -07:00
Erik Simmler
769eddc788 Avoid creating a new line comment when a block comment is preceded by a forward slash (#5562)
Fixes #5557
2017-04-09 16:36:18 -07:00
Daniel Kao
216cbf5bd6 Move syntax-dynamic-import to stage-3 (#5610) 2017-04-08 10:14:23 -04:00
Sven SAULEAU
0b917c00d6 Merge pull request #5573 from exacs/docs-babel-plugin-transform-es2015
Improve example of babel-plugin-transform-es2015-arrow-functions
2017-04-07 08:17:43 +02:00
Henry Zhu
2a874dff8c fix the fixtures after PR was merged 2017-04-06 14:14:15 -04:00
Andres Suarez
f0dc710a46 Remove unnecessary returns in asyncToGenerator helper (#5548)
* Remove unnecessary returns in asyncToGenerator helper

* Reuse "then" callbacks in asyncToGenerator helpher
2017-04-06 11:40:55 -04:00
Diogo Franco
452f8f150c Always use the native (or polyfilled) Promise in transform-async-to-generator (#5536)
* Always use the native (or polyfilled) Promise in transform-async-to-generator

Fixes #5531

* Simplify scope handling to only un-shadow the Program's Promise

Only the helper needs to see the native Promise.
2017-04-06 11:17:31 -04:00
Henry Zhu
c732f5e1d0 v7.0.0-alpha.7 2017-04-05 17:13:26 -04:00
Sven SAULEAU
beae0ff9ba docs: [skip ci] type in plugin's name 2017-04-05 16:43:56 +02:00
Henry Zhu
8f848b4b32 add individual polyfill files (#5584)
* add individual polyfill files

* rename files

* use preset-env for the script [skip ci]
2017-04-05 10:11:58 -04:00
Logan Smyth
d39400c9d5 Separate config/plugin loading from config processing. (#5563) 2017-04-04 14:48:48 -07:00
Logan Smyth
9155c613cb Change babel-register default ignore to cwd content. (#5583) 2017-04-04 14:47:49 -07:00
Daniel Tschinder
b2ced1d6bd Update babylon to latest beta (#5585) 2017-04-04 22:32:31 +02:00
Brian Ng
7ad697cd86 Merge pull request #5580 from loganfsmyth/fix-docs
Remove incorrect docs.
2017-04-04 08:56:47 -05:00
Alex Rattray
348cc5eeff Use raw value of JSXText and JSXAttribute (#5256) 2017-04-04 15:46:20 +02:00
Logan Smyth
5576a8942b Remove incorrect docs. 2017-04-03 21:13:00 -07:00
Carlos Saito
abcbb07357 Do not transform const to var
[skip ci]
2017-04-02 18:54:10 +02:00
Carlos Saito
4276462a07 Function without renaming
[skip ci]
2017-04-02 18:54:10 +02:00
Carlos Saito
95c65ec1cb Improve example of babel-plugin-transform-es2015-arrow-functions
[skip ci]
2017-04-02 14:27:15 +02:00
Logan Smyth
878a7c5fdb Add tests to test the plugin ordering. (#5571) 2017-03-31 18:52:58 -07:00
Logan Smyth
fa23b662c2 Add empty .babelrc for CLI tests. 2017-03-27 14:46:39 -07:00
Henry Zhu
3d74dc044f fix ci 2017-03-27 17:26:39 -04:00
Henry Zhu
67253c5d27 babelrc false to relevant files 2017-03-27 17:19:02 -04:00
Henry Zhu
f3ef03abfd use caret for devDeps 2017-03-27 16:32:13 -04:00
Henry Zhu
dea509377c v7.0.0-alpha.6 2017-03-27 15:09:36 -04:00
Kai Cataldo
1f2f63ccdf Fix: config lookup logic in babel-core (#5550)
This fixes a bug that was causing the config lookup to stop
when a package.json file was found even if it did not contain a
"babel" key.
2017-03-27 11:54:57 -07:00
Henry Zhu
7a1ccf076c Misc (#5545)
* normalize npmignores

* fixup eslint ignore, etc

* lint

* remove unused

* rm from gitignore

* use strict
2017-03-25 21:46:16 -04:00
Henry Zhu
cff1c8db39 v7.0.0-alpha.5 2017-03-24 10:38:10 -04:00
Henry Zhu
b8cf7b89f2 keep one core-js helper file in git, remove babel-runtime from deps (#5540) 2017-03-24 10:36:41 -04:00
azrael25
0eb898d95b fix babel-runtime helpers gererator (#5539) 2017-03-24 08:56:41 -04:00
Henry Zhu
d0b6db1901 v7.0.0-alpha.4 2017-03-23 18:06:48 -04:00
Henry Zhu
d7a77f4161 register should be a devDep 2017-03-23 18:04:46 -04:00
Logan Smyth
a498371005 Ensure the ignore regex is consistent and initialized fully. (#5534) 2017-03-23 17:44:03 -04:00
Henry Zhu
ab68800e06 v7.0.0-alpha.3 2017-03-23 15:49:01 -04:00
Brian Ng
c687b703ae Ensure babel-cli tests compare generated output with out-files (#5205) 2017-03-23 12:06:56 -04:00
Boopathi Rajaa
c9a851a218 Cleanup traverse cache APIs (#5494) 2017-03-23 12:00:28 -04:00
Damien Maillard
299e51298c Fix path.remove() leading & trailing comments sharing (#5504) 2017-03-23 11:55:14 -04:00
Patrick Williams
0cd541b7d8 document cache option for babel-register (#5440) [skip ci] 2017-03-23 11:44:44 -04:00
Jason Julian
640515b3f6 removed unused alias in babel-runtime (#5516) 2017-03-22 20:03:35 -04:00
Henry Zhu
e155859b12 Merge pull request #5528 from babel/fix-babel-runtime-helpers
Fix babel runtime helpers
2017-03-22 20:02:29 -04:00
Artem Yavorsky
60b5409183
Bump regenerator-transform version to 0.9.11 2017-03-22 18:02:09 -05:00
Henry Zhu
26b9f9ed15 commit one helper to git to check regressions 2017-03-22 18:18:08 -04:00
Henry Zhu
483958b24d fix runtime helpers
Ref f3f907bdb3 (diff-339968af11c78f10673c78c6c7568d2fR34)
2017-03-22 18:07:11 -04:00
Guy Bedford
b75d80386c document dynamic import support (#5457) [skip ci] 2017-03-22 16:55:42 -04:00
Samuel Reed
f20da57317 Fix PathHoister attaching to default parameters. (#5415)
* Fix PathHoister attaching to default parameters.

Ref: #5315

* Update hoister.js
2017-03-22 16:37:53 -04:00
Patrick Williams
b2c977a1b0 Seperate version env cache files (#5411) 2017-03-22 16:29:29 -04:00
jddxf
7e25dccc6e Update babel-generator's README (#5517) [skip ci] 2017-03-22 16:25:42 -04:00
Robert Jackson
c4ebc8553b Properly preserve import ordering with AMD format. (#5474)
Previously, all "bare imports" (e.g. `import './foo';`) were moved to the
end of the array of sources. I presume this was done to remove needless
variables in the callback signature.

Unfortunately, doing this actually changes the intent of the program.
Modules should be evaluated in the order that they were in the source.

In the case of a bare import, it is quite possible that the bare import
has side effects that a later required module should see. With the current
implementation the later imported modules are evaluated before that "side
effecty" module has been evaluated.

Obviously, it is better to avoid these sorts of side effect ridden modules
but even still you could imagine a similar issue with cycles.

This change ensures that module source order is preserved in the AMD
dependencies list, and avoids making needless variables as much as possible.
2017-03-22 16:24:17 -04:00