Alex Kotliarskyi
9f76cf7c42
Hoist current file name for transform-react-jsx-source
...
For better tooling support it's important to include absolute file name for JSX
elements. However, having them inline will inflate resulting file size, so we
move the file name to a constant declared at the beginning of the file and
reference it from `__source` attribute.
2016-01-19 20:10:53 -08:00
Henry Zhu
e152e7044e
v6.4.5
2016-01-19 18:02:31 -05:00
Henry Zhu
b825e0c152
Merge pull request #3284 from bmeck/babylon-flow
...
fix flow for babylon
2016-01-19 14:23:29 -05:00
Bradley Farias
b628fee856
fix flow for babylon
2016-01-19 13:01:26 -06:00
Jason
993c5a572b
Improve performance for generator.buffer
2016-01-20 02:04:26 +08:00
59naga
c509847588
Fix T6953,T2541 export-from statement renamed default issue
...
- Use `interopRequireDefault` helper if local name is default.
Via 59naga/babel-plugin-add-module-exports#20
2016-01-20 02:54:54 +09:00
Jason
235d8397fd
Make Whitespace._findToken private and add comments
2016-01-19 21:46:22 +08:00
Jason
ed227a6c8a
Use binary search to improve getNewlinesBefore/After performance
2016-01-19 21:18:06 +08:00
Jason
76e3c5227b
Improve generator performance by caching the last character in Buffer
2016-01-19 21:16:33 +08:00
Dmitry Soshnikov
3f1353d01f
[RFC] Pass per preset
...
This introduces "pass per preset" feature, spawting a new traversal for each preset in case if the `passPerPreset` is `true` (default is `false`). This gives opportunity to define "before" and "after" presets, mimicking a similar feature from Babel 5. A rationally for this is to make plugins as short as possible, and handled only needed nodes, not afrading potential collisions in case if presets are merged.
2016-01-18 21:00:37 -08:00
Sebastian McKenzie
f1ef0ff5e9
Merge pull request #3118 from benjamn/import-hoisting
...
Add test of import hoisting that fails when the runtime transform is used.
2016-01-19 02:20:17 +00:00
Amjad Masad
1264709226
Merge pull request #3274 from babel/fix-function-decl
...
Method names should not be bound to body
2016-01-18 10:57:19 -08:00
Sebastian McKenzie
65a4c8f4a4
Merge branch 'source-map-reenter' of https://github.com/kpdecker/babel into kpdecker-source-map-reenter
...
Conflicts:
packages/babel-generator/src/printer.js
2016-01-18 18:36:57 +00:00
Henry Zhu
d8c3ad0d63
Merge pull request #3272 from AgentME/dedupeParserOpts
...
Fix T3084, dedupe parser opts
2016-01-17 23:51:29 -05:00
Sebastian McKenzie
99a224efd9
add missing returns to async to generator helper
2016-01-18 02:02:08 +00:00
Amjad Masad
7125bf4917
Merge pull request #3275 from hzoo/temp-remove-types
...
Internal: temporarily remove flow types
2016-01-17 14:54:22 -08:00
Henry Zhu
51dfd2237e
Internal: temporarily remove flow types
...
- Will need to investigate the issue regarding eslint/babel-eslint.
2016-01-17 17:14:57 -05:00
Amjad Masad
5c680181ba
Merge pull request #3257 from horpto/bugfix/T2765
...
[2765] transform-async-to-generator doesn't work for `this` inside arrow
2016-01-17 14:14:56 -08:00
Amjad Masad
d11bcae496
Merge pull request #3263 from jmm/rest-new-passing-fixtures
...
Increase `parameters/rest` transform test coverage
2016-01-17 14:00:26 -08:00
Amjad Masad
578e9243eb
Merge pull request #3269 from forivall/explode-doc
...
Add documentation comment for visitors.explode
2016-01-17 13:58:20 -08:00
Amjad Masad
cf62c53832
Merge pull request #3264 from jmm/parameters-rest-simplify
...
Simplify `parameters/rest` code
2016-01-17 13:50:55 -08:00
Amjad Masad
95c93dd22b
Method names should not be bound to body
...
As an artificat of compiling methods to named function expressions the
function name is being considered a "local" binding in the function
body. This means that we will throw errors anytime someone would want to
create a new local binding with the same name.
This is solved by assigning a symbol to function Identifiers that
indicates that they should not be considered local bindings.
2016-01-17 13:19:37 -08:00
Chris Cowan
af363c8da5
Make babylon ignore duplicate plugins.
2016-01-15 19:29:21 -08:00
Chris Cowan
aa9b3ec2a8
Make Babylon correctly handle "flow" being present multiple times in plugins.
2016-01-15 19:00:38 -08:00
Henry Zhu
9d0a05ecde
Merge pull request #3268 from hzoo/t2892-test
...
Add test for T2892
2016-01-14 18:40:30 -05:00
Henry Zhu
10105bb077
Add test for 2892
2016-01-14 17:23:20 -05:00
Henry Zhu
8644e5f27c
v6.4.4
2016-01-14 17:05:41 -05:00
Henry Zhu
4638f4db4d
republish transform-regenerator
2016-01-14 17:03:39 -05:00
Jordan Klassen
0c1eddfd52
Add documentation comment for visitors.explode
2016-01-14 13:41:19 -08:00
Amjad Masad
3f2a445c9a
v6.4.3
2016-01-13 21:56:22 -08:00
Amjad Masad
d3242e8513
Merge pull request #3261 from jmm/array-expr-builder-default
...
Add ArrayExpression.elements.default
2016-01-13 21:23:03 -08:00
Amjad Masad
ee1e16f76d
Merge pull request #3162 from loganfsmyth/requeue-generators-6676
...
Requeue generators for re-traversal so we pick up regeneratorRuntime - fixes T6676
2016-01-13 21:22:03 -08:00
Jesse McCarthy
857675c99c
Add fixtures to exercise shadow conditional.
2016-01-13 17:37:29 -05:00
Jesse McCarthy
41066f55ea
Add fixtures for deopt due to arguments.
2016-01-13 17:37:23 -05:00
Jesse McCarthy
b17965ab8b
Improve comments.
2016-01-13 17:24:06 -05:00
Jesse McCarthy
059d7123db
Remove unnecessary else.
2016-01-13 17:24:06 -05:00
Jesse McCarthy
e4044062c3
Remove unnecessary length check & nesting.
2016-01-13 17:24:06 -05:00
Jesse McCarthy
4c69f1cda5
Replace func expr with arrow.
2016-01-13 17:24:06 -05:00
Jesse McCarthy
afd98ebd2a
Remove unnecessary literal return value.
2016-01-13 17:24:06 -05:00
Jesse McCarthy
bcfa58a6a2
Remove unnecessary intermediate var.
2016-01-13 17:24:06 -05:00
horpto
5ac022ab9b
4 -> 2 spaces tab size
2016-01-13 15:37:20 +05:00
Amjad Masad
add96d626d
Double quotes
2016-01-12 17:30:53 -08:00
Amjad Masad
0d9459dbb6
Fix minified labeledStatement printing
...
Unary expressions with alphabetic operators like 'void' were being
squished next to the statement.
2016-01-12 17:28:46 -08:00
Amjad Masad
b7aa49d9f5
Merge pull request #3250 from babel/symbol-rename
...
[T6933] Rename any shadowing Symbol binding
2016-01-12 17:02:16 -08:00
Ben Newman
e1ec9ef985
Make require declarations inherit ._blockHoist values from imports.
...
This commit fixes the failing test I introduced in pull request #3118 .
2016-01-12 18:01:31 -05:00
Ben Newman
4ca25ac7a9
Add test of import hoisting that fails with the runtime transform.
2016-01-12 18:01:31 -05:00
Jesse McCarthy
0f85e79f67
Add ArrayExpression.elements.default.
2016-01-12 11:33:08 -05:00
Amjad Masad
6a3b3dc3e9
Merge pull request #3252 from caseywebdev/fix-amd-umd-use-strict
...
Fix T2929, T6796, stop leaking directives
2016-01-11 17:34:51 -08:00
Amjad Masad
bad98a1056
Merge pull request #3232 from jonathanong/babel-register-cache-mkdirp
...
babel register cache: make sure the cache file's directory exists
2016-01-11 17:34:08 -08:00
Mathias Bynens
430e80fe0e
Use only regexpu-core instead of all of regexpu
...
Ref. https://github.com/mathiasbynens/regexpu/issues/24 .
2016-01-11 19:32:19 +01:00