Richard Macklin
55a25c271a
Simplify accum to just be a memberExpression not an array
2016-07-26 22:38:40 -07:00
Richard Macklin
fcb50de89b
Remove unnecessary checking for "." since the code works in either case
2016-07-26 22:38:40 -07:00
Richard Macklin
6c9f241812
Add test case for overriding exported global name without specifying the moduleId or moduleIds options
2016-07-26 22:38:40 -07:00
Richard Macklin
ac9487abf3
Add the ability to override the exported global using the globals map
...
when `exactGlobals` is true
2016-07-26 22:38:39 -07:00
Richard Macklin
c252d3dae6
Add exactGlobals option to transform-es2015-modules-umd plugin
...
to enable more flexibility specifying global names
2016-07-26 22:38:39 -07:00
Richard Macklin
8b0179e2d5
Fix typo in transform-es2015-modules-umd plugin README
...
and specify json as the language for the subsequent code block
2016-07-26 22:38:39 -07:00
Henry Zhu
55f20afe1c
v6.11.6
2016-07-26 18:12:25 -04:00
Henry Zhu
7ee2381955
Revert "Correct source map paths for babel-register." ( #3599 )
2016-07-26 18:07:29 -04:00
Aliaksei Sapach
83522c9cb5
fix: systemjs - hoist named function exports ( #3594 )
2016-07-26 18:06:42 -04:00
Henry Zhu
c5836b0bc2
Misc: remove unused devDep [skip ci]
2016-07-25 09:44:44 -04:00
Henry Zhu
98dea13afa
v6.11.5
2016-07-23 14:09:34 -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
Rolf Timmermans
c8bd9e3ffb
Correct source map paths for babel-register. ( #3523 )
2016-07-22 11:11:31 -04:00
Keyan Zhang
879f69f0fb
infer class name for classes that have static properties ( #3589 )
2016-07-22 09:50:03 -04:00
Thomas Grainger
a289dfbbab
The config name is sourceMaps not sourceMap ( #3588 )
2016-07-21 10:10:58 +02:00
Henry Zhu
6e58954bce
v6.11.4
2016-07-19 21:59:53 -04:00
Logan Smyth
210c3f7da9
Merge pull request #3564 from jamestalmage/lazy-require-hook
...
Extract config file resolution from OptionsManager
2016-07-19 18:24:45 -07:00
Logan Smyth
40ec299df5
Merge pull request #3583 from jhen0409/patch-3
...
Add block if parent is non-block statement for remove-console/debugger
2016-07-18 22:21:10 -07:00
Jhen
6cb3e5ed1f
Add statement-no-block test fixture for remove-console/debugger
2016-07-19 13:02:29 +08:00
Jhen
e464b9ab87
Add block if parent is no block statement for remove-console/debugger
2016-07-19 12:56:29 +08:00
Logan Smyth
ea426baa07
Avoid duplicated identifier sharing location - fixes T7436
2016-07-18 20:49:14 -07:00
Logan Smyth
a1c2d4dd5d
Merge pull request #3584 from loganfsmyth/generator-refactor-cleanup2
...
babel-generator: More refactoring and optimizations
2016-07-18 19:23:24 -07:00
Logan Smyth
a13bf6e0be
Drop the unhelpful 'keyword' helper.
2016-07-18 19:12:22 -07:00
Logan Smyth
1b527eb23c
Perform number decimal checks at the token level.
2016-07-18 19:12:21 -07:00
Logan Smyth
9f49c99774
Drop .getLast().
2016-07-18 19:12:21 -07:00
Justin Ridgewell
9a6890c92f
Default parameters cleanup ( #3574 )
...
* Remove buildDefaultParamAssign
This seems to have been
[added](https://github.com/babel/babel/commit/4b85b05839017ab2abc03ba2d1
e875a63f002890) in v5.5.4 to address
[#1690 ](https://phabricator.babeljs.io/T1690 ). It [became
“dead”](https://github.com/babel/babel/blob/v6.0.0/packages/babel-core/t
est/fixtures/transformation/es6.parameters/default-before-last/expected.
js) (as far as I can tell) in the [v6.0.0
commit](https://github.com/babel/babel/commit/ae7d5367f1c3d438667242d692
5db024f875fccd).
Either way, this code is never executed.
- `pushDefNode` is only called when the param is a default param.
- `buildDefaultParamAssign` (which is inside `pushDefNode`) only runs
of the param index is less than or equals to the lastNonDefaultParam.
AKA, is this param before any non-defaulting params.
Which is a contradiction.
* Small optimization
No need to check if we need an iife if we already know we need one.
2016-07-18 11:03:59 -04:00
Daniel Tschinder
88eec4b852
Support all variations of v8Flags ( #3578 )
...
This adds support for specifying v8Flags with dashes. Previously only underscores
were allowed.
Also allows specifying values for v8Flags in the from --flag=value, which was not supported till now.
Also add --inspect support.
2016-07-18 10:36:03 -04:00
Logan Smyth
fdc5b7cb5d
Only set the source location when inserting the comment text.
2016-07-17 21:51:01 -07:00
Logan Smyth
4dcec860bd
Drop trailing whitespace after all newlines.
2016-07-17 21:51:01 -07:00
Logan Smyth
59fe72ee7d
Avoid recalculating the current line.
2016-07-17 21:51:01 -07:00
Logan Smyth
1bbf109e8e
Move aux comments entirely into printer.
2016-07-17 21:51:01 -07:00
Logan Smyth
11ee8642fd
Drop the 'after' callback from 'print'.
2016-07-17 21:51:01 -07:00
Logan Smyth
59c1945493
Move whitespace handling into statement list printing.
2016-07-17 21:51:01 -07:00
Logan Smyth
5de7433147
Avoid calls to isUserWhitespacable by explicitly marking statement lists.
2016-07-17 21:51:00 -07:00
Logan Smyth
38b91235cc
Print inter-node newlines before other node items.
2016-07-17 21:51:00 -07:00
Logan Smyth
6bf52b74c0
Include newline insertion in the call sites of rightBrace.
2016-07-17 12:39:22 -07:00
Logan Smyth
0e05e9f216
Rely on .space and .newline behavior instead of explicit format checks.
2016-07-17 12:39:22 -07:00
Logan Smyth
68bc3d7dfb
Standardize on the comment format function.
2016-07-17 12:39:22 -07:00
Logan Smyth
a3c99278ba
Move format definition into Printer.
2016-07-17 11:07:26 -07:00
Logan Smyth
0d5cbe6102
Move class static helpers off class.
2016-07-17 11:07:26 -07:00
Logan Smyth
5e730b18bb
Instantiate Whitespace in the printer.
2016-07-17 11:07:25 -07:00
Logan Smyth
ca1d601037
Move property definitions to class props.
2016-07-17 11:07:24 -07:00
Logan Smyth
1d0ff341fd
Skip mutating the 'ignore' flag when printing.
2016-07-17 11:06:31 -07:00
Logan Smyth
3cc38a0063
Merge pull request #3581 from loganfsmyth/generator-refactor-cleanup
...
babel-generator: Misc cleanup and stale code removal
2016-07-16 12:44:19 -07:00
Logan Smyth
a255ef9ba1
Merge pull request #3580 from jridgewell/babel-generator
...
Further optimize babel-generator Buffer
2016-07-16 12:40:55 -07:00
Logan Smyth
44282e4579
Disable indent and inc/dec time.
2016-07-14 22:58:48 -07:00
Logan Smyth
9b8b5112df
Remove unneeded _compact assignment.
2016-07-14 22:58:48 -07:00
Logan Smyth
1bf76b0f33
Use .append to force-commit semicolons for empty statements.
2016-07-14 22:58:48 -07:00
Logan Smyth
bd9bb053c3
Flatten aux comment logic.
2016-07-14 22:58:48 -07:00
Logan Smyth
9483f4bd94
Drop old stale code.
2016-07-14 22:58:47 -07:00