7924 Commits

Author SHA1 Message Date
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
Brian Ng
c0779fdb71 Merge pull request #5341 from yavorsky/regenerator-transform-0-9-10
Bump regenerator-transform version to 0.9.11.
2017-03-22 18:07:47 -05: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
Henry Zhu
b638c8b3eb Transform the template literals revision proposal (#5523)
* Account for template literals revision

* extra tests

* update to babylon beta 7

* pr feedback (keep arr length the same)
2017-03-22 16:07:36 -04:00
Henry Zhu
492ee95f27 Merge pull request #5522 from babel/update-babylon 2017-03-22 10:49:29 -04:00
Sven SAULEAU
2b774f46fb fix: handle bailed when recursive convert (#5499) 2017-03-22 09:18:37 +01:00
Arshabh Kumar Agarwal
a55f38b127 Changes the throw error for test in super-illegal-non-constructor-call (#5450) 2017-03-22 00:24:28 -04:00
Henry Zhu
ceb68f5bb7 babylon@7.0.0-beta.6 2017-03-22 00:24:00 -04:00
Henry Zhu
7d37017a5f Merge pull request #5489 from loganfsmyth/conf-refactor
Misc fixes + Move babel-core config processing from transformation/file/options into top-level folder
2017-03-21 14:12:41 -04:00
Henry Zhu
7551a8e666 Update yarn.lock 2017-03-21 13:04:54 -04:00
Henry Zhu
4901f33423 remove unnecessary call 2017-03-21 13:03:54 -04:00
Henry Zhu
95c905c5d2 fix markdown rendering [skip ci] 2017-03-20 09:32:32 -04:00
Aaron Ang
94024961ba Update error message when importing babel-cli (#5507) 2017-03-19 15:59:01 -07:00
Daniel Tschinder
ae8728c146
Merge branch 'master' into 7.0 2017-03-19 14:21:00 +01:00
Henry Zhu
b3c7337fac
Fix changelog [skip ci] 2017-03-19 14:14:00 +01:00
Diogo Franco
256fcbc58f Treat "await" as an invalid identifier (#4954)
It is valid (outside `async` functions) in the "script" parse goal, but always invalid in the "module" parse goal.

Fixes #4952.
2017-03-19 11:28:52 +09:00
Brian Ng
baafe486b3 Add useBuiltins and useESModules options to transform-runtime README [skip ci] (#5481) 2017-03-17 14:55:55 -04:00
Henry Zhu
534f621183 remove unused use of removed util class 2017-03-17 10:41:19 -04:00
Logan Smyth
a15de19888 Encapsulate config loading in config/ index file. 2017-03-17 00:04:00 -07:00
Logan Smyth
3c63431c7e Move config loading helpers into config folder. 2017-03-17 00:03:59 -07:00
Logan Smyth
f3f907bdb3 Remove unneeded helper file. 2017-03-17 00:03:59 -07:00
Logan Smyth
7b5d4fe069 Resolve parser and generator plugins in configuration resolution. 2017-03-17 00:03:59 -07:00
Logan Smyth
b71569ff6c Remove unneeded util.js file. 2017-03-17 00:03:59 -07:00
Logan Smyth
3e2d731d50 Move the Store class to be inside transformation. 2017-03-17 00:03:59 -07:00
Logan Smyth
12a2124d16 Move the deeply nested option logic to a toplevel folder. 2017-03-17 00:03:58 -07:00
Logan Smyth
6c4810cea5 Move Plugin class to be part of config loading, independent of File. 2017-03-17 00:03:58 -07:00
Logan Smyth
05ee30c9f7 Use the standard option parser to load the internal plugins. 2017-03-17 00:03:58 -07:00
Logan Smyth
38720ae309 Remove store subclassing from Plugin class. 2017-03-17 00:03:58 -07:00
Logan Smyth
bf13ed4da0 Limit where certain arguments are allowed in Babel config. 2017-03-17 00:03:58 -07:00
Logan Smyth
344f0a68c9 Centralize preset processing from two loops to one. 2017-03-17 00:03:57 -07:00
Logan Smyth
62def8da19 Make presets consistently resolve string values relative to their config file location. 2017-03-17 00:03:50 -07:00
Logan Smyth
39c862c195 Make only/ignore relative to cwd/config file and move only/ignore checking all to core. (#5487)
* Make only/ignore relative to cwd/config file and move only/ignore checking all to core.
2017-03-16 23:22:43 -07:00
Logan Smyth
b6194a8533 Merge pull request #5467 from loganfsmyth/clean-options
Misc reorganizing and prep for ignore/only refactoring
2017-03-16 20:25:20 -07:00
Ryan Paul
8859715893 Removes unused lodash dependency from babel-helper-builder-react-jsx (#5486) 2017-03-16 16:17:37 -04:00
Brian Ng
612cce399a Fix options header on preset-latest readme [skip ci] 2017-03-16 14:10:26 -05:00
Ryan Paul
4e96a2da5e Removes unused lodash dep from babel-helper-builder-react-jsx (#5484) 2017-03-16 15:08:11 -04:00
Aaron Ang
edf2c76d63 Improve options documentation for babel-plugin-transform-runtime (#5401) 2017-03-16 10:37:50 -05:00
Sergey Bekrin
bf1b6ace53 update coffescript reference in readme [skip ci] (#5475) 2017-03-16 10:35:40 -05:00
Sven SAULEAU
ad1edc6155 Merge pull request #5477 from xtuc/fix-generator-doc
Update babel-generator documentation
2017-03-16 08:56:08 +01:00
Sven SAULEAU
e30197b96b
docs: [skip ci] update documentation 2017-03-16 08:53:38 +01:00
Diogo Franco
2c0907acdc Merge pull request #5442 from babel/babel-runtime-with-builtins
Add useBuiltIns and useESModules options to transform-runtime
2017-03-15 11:47:35 +09:00
Logan Smyth
dd1bc3b183 Resolve programmatic/CLI arguments from cwd, not file being compiled. (#5466) 2017-03-14 16:56:00 -07:00