Logan Smyth
7179136401
Ensure the AMD/UMD loaders all have params for each import to avoid lazy-loading ( #6237 )
2017-09-12 20:13:16 -07:00
Logan Smyth
f17d30692c
Convert AMD to use new shared implementation.
2017-09-12 17:17:41 -07:00
Logan Smyth
95e08b6d2a
Convert UMD to use new implementation of module logic.
2017-09-12 17:17:41 -07:00
Henry Zhu
1c13250807
v7.0.0-beta.0
2017-09-11 23:01:41 -04:00
Daniel Tschinder
5565e1b406
Correctly requeue CallExpression in AMD transform ( #5497 )
...
* Correctly requeue the define()-CallExpression
* Use pushContainer
2017-09-09 20:33:35 -04:00
Henry Zhu
b82b65a31e
v7.0.0-alpha.20
2017-08-30 15:02:49 -04:00
Noah Lemen
2db0c3ad1d
linting: disallow t.identifier("undefined") in plugins ( #6096 )
...
* add new custom eslint rule, replace remaining t.identifier("undefined") with buildUndefinedNode(), update tests
* change no-undefined-identifier reporting descriptor
2017-08-24 15:43:01 -04:00
Henry Zhu
79f4956948
v7.0.0-alpha.19
2017-08-07 18:21:08 -04:00
Henry Zhu
79c6814d65
v7.0.0-alpha.18
2017-08-03 18:20:36 -04:00
Henry Zhu
0f823beeb1
Newlines in fixtures ( #6044 )
...
* write newlines for fixtures
* rerun fixtures
2017-08-02 15:35:29 -04:00
Henry Zhu
9322fd0458
v7.0.0-alpha.17
2017-07-26 08:38:44 -04:00
Henry Zhu
7f1cd44d60
v7.0.0-alpha.16
2017-07-25 17:35:35 -04:00
Justin Ridgewell
827c70e015
Support exporting deep destructuring ( #5953 )
2017-07-18 14:07:09 -05:00
Henry Zhu
a0f0411abf
v7.0.0-alpha.15
2017-07-11 23:35:22 -04:00
Henry Zhu
03f249430a
v7.0.0-alpha.14
2017-07-11 22:53:09 -04:00
Henry Zhu
8460b4c62f
v7.0.0-alpha.13
2017-07-11 22:27:56 -04:00
Daniel Tschinder
b3372a572d
Remove whitespace generation ( #5833 )
...
* Remove whitespace generation and rely on default printing
Changes to printing:
* Add newline after last empty SwitchCase
* Add newlines around block comments if they are non-flow comments or contain newlines
* Fix a few more fixtures
2017-06-27 21:57:02 -05:00
Brian Ng
e4b35f680d
Run prettier
2017-06-27 12:15:00 -05:00
Henry Zhu
123dce5fcd
Hardcode to double quotes, indent to 2 spaces ( #5824 )
2017-06-05 22:14:37 -05:00
Henry Zhu
c5bad22767
v7.0.0-alpha.12
2017-05-31 17:11:39 -04:00
Henry Zhu
ce976bba2a
v7.0.0-alpha.11
2017-05-31 16:43:30 -04:00
Henry Zhu
9b44cef691
v7.0.0-alpha.10
2017-05-25 15:17:07 -04:00
Henry Zhu
62375cdf12
v7.0.0-alpha.9
2017-04-18 10:41:30 -04:00
Henry Zhu
25ae8c8554
v7.0.0-alpha.8
2017-04-17 15:12:31 -04:00
Henry Zhu
c732f5e1d0
v7.0.0-alpha.7
2017-04-05 17:13:26 -04:00
Henry Zhu
f3ef03abfd
use caret for devDeps
2017-03-27 16:32:13 -04: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
ab68800e06
v7.0.0-alpha.3
2017-03-23 15:49:01 -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
230712e091
Internal: back to fixed, publish everything ( #5436 )
2017-03-08 22:56:00 -05:00
Robert Jackson
23de276718
Add docs for strict and noInterop with es2015-modules-commonjs.
2017-03-06 20:19:38 -05:00
Robert Jackson
0d1edb9811
Add noInterop option to babel-plugin-transform-es2015-modules-commonjs.
...
The intent of this option is to toggle module interop behavior. When `true`
no `interopRequireXXX` helper invocations will be emitted.
2017-03-06 19:51:35 -05:00
Brian Ng
8a82cc060a
Run new lint rules ( #5413 )
2017-03-04 10:46:01 -05:00
Henry Zhu
11e54a6bd3
v7.0.0-alpha.1
2017-03-02 16:04:47 -05:00
Logan Smyth
4ee385e96c
Avoid usage of exports/module.exports/require().
2017-02-21 16:52:42 -08:00
Kai Cataldo
e09ea222c9
Remove babel-runtime from packages' dependencies ( #5218 )
2017-01-27 09:04:35 -05:00
Henry Zhu
e9fc38bcd3
v6.22.0
2017-01-19 19:33:22 -05:00
Sergey Rubanov
292c3ca206
Refactor test packages to use ES modules instead of CJS ( #5138 )
2017-01-16 11:25:04 -05:00
Henry Zhu
672adba9a1
enable prefer const ( #5113 )
2017-01-14 09:48:52 -05:00
Brian Ng
01bc43464e
Ensure directives get printed in block statements ( #4873 )
2016-12-16 15:30:14 -05:00
Brian Ng
f71efbce92
Update transform-es2015 READMEs from babel.github.io [skip ci] ( #4926 )
...
Signed-off-by: Brian Ng <bng412@gmail.com>
2016-12-01 16:11:36 -05:00
Henry Zhu
e86f62b304
README: add --save-dev [skip ci]
...
Closes gh-4910
2016-11-29 08:40:27 -05:00
Sven SAULEAU
2311b5b53a
README: remove dollar in sh snippets [skip ci]
2016-11-29 08:39:23 -05:00
Henry Zhu
12f9cd0826
v6.18.0
2016-10-24 17:18:36 -04:00
Flavio Corpa
9b02a6d298
Add missing description to all package.json files ( #4703 ) [skip ci]
2016-10-12 10:15:50 -04:00
Kai Cataldo
1db8c02d05
Remove duplicate default error ( #4543 )
...
* Revert "Throw error for multiple exports default (#3518 )"
This reverts commit aa51dd4a3dbb956d8b619d884acf40194d5ffac8.
* Fix export default tests
2016-09-22 12:00:18 -04:00
Kai Cataldo
f3a6e4b0ae
Fix tests with duplicate named exports ( #4538 )
...
* Fix babel-plugin-transform-flow-strip-types tests
* Fix babel-plugin-transform-es2015-modules-umd tests
* Fix babel-generator tests
* Fix babel-plugin-transform-es2015-modules-systemjs tests
* Fix babel-plugin-transform-es2015-modules-commonjs tests
* Fix babel-plugin-transform-es2015-modules-amd tests
2016-09-21 10:52:59 +02:00
Kai Cataldo
aa51dd4a3d
Throw error for multiple exports default ( #3518 )
...
Fixes https://phabricator.babeljs.io/T7242
2016-08-16 13:21:00 -04:00
Henry Zhu
253918c30f
Fix buildExportAll to account for commonjs/amd/systemjs ( #3591 )
...
* Fix buildExportAll to account for commonjs/amd
If the re-exported module was generated with Babel and it is a commonjs or amd module and so is the current module, this will result in an attempt to redefine the __esModule property, which throws a runtime error.
* Add test: don't overwrite __esModule on re-export
(Failing.)
* fixup tests
* Add fix for systemjs
2016-07-23 13:21:07 -04:00
Henry Zhu
05bf216339
v6.8.0
2016-05-02 19:43:49 -04:00