Erik Desjardins
4142003bbd
Hoist initial exports.foo = undefined and __esModule declarations above hoisted async functions
2016-02-03 12:11:11 -05:00
Erik
e759b5f835
Add exec test for T6882 (async function hoisting)
2016-02-03 12:11:08 -05:00
Erik
ec61bd9386
Revert "Don't mark async functions as hoist"
...
This reverts commit d34cb69912ee5789c7d1029c3be75d22d13e7bf8.
2016-02-02 22:13:26 -05:00
Amjad Masad
7428654c19
Merge pull request #3290 from AgentME/exportAsyncTest
...
Add test for T3026
2016-02-02 16:55:58 -08:00
Amjad Masad
430607fc1d
Merge pull request #3298 from babel/hzoo-T7010
...
Set NOT_LOCAL_BINDING on all inferred function names
2016-02-02 16:46:35 -08:00
Amjad Masad
9aac73e70b
Merge pull request #3299 from robcolburn/multibyte-test
...
Ensure that we do not break mutli-byte handling
2016-02-02 16:45:50 -08:00
Joshua Peek
005c4cb7a8
Show specific error message when chokidar can't be loaded
2016-02-01 19:24:08 -08:00
Joshua Peek
f81d9e1274
Mark chokidar as optional dependency
2016-02-01 17:03:37 -08:00
Joshua Peek
0878685a5a
Defer requiring chokidar dependency until --watch flag is passed
2016-02-01 17:03:13 -08:00
CrocoDillon
1ba81153a7
Use this.options.babelrc instead of opts.babelrc
2016-01-30 12:11:33 -05:00
CrocoDillon
f4093a552f
Use the babelrc option in babel-register
...
Which can be used to ignore `.babelrc` files by setting this to false, currently ignored in babel-register.
2016-01-30 12:09:49 -05:00
Amjad Masad
12b7a44796
Merge pull request #3281 from DmitrySoshnikov/pass_per_preset
...
[RFC] Pass per preset
2016-01-22 14:29:07 -08:00
Amjad Masad
5699403835
Add comment clarifying the optimization
2016-01-22 14:24:45 -08:00
Amjad Masad
7d719d9ce9
Merge pull request #3283 from gzzhanghao/gen-perf
...
Improve generator performance
2016-01-22 14:22:48 -08:00
Amjad Masad
35bb62c2e5
Merge pull request #3285 from frantic/hoist-file-name
...
Hoist current file name for transform-react-jsx-source
2016-01-22 14:21:20 -08:00
Amjad Masad
4f82506711
Merge pull request #3294 from babel/with-body
...
WithStatements can have statements as bodies
2016-01-22 14:18:10 -08:00
Amjad Masad
c1a7fc93d0
Move setting NOT_LOCAL_BINDING to the function name helper
2016-01-22 14:07:57 -08:00
Rob Colburn
7b1b876dc2
Ensure that we do not break mutli-byte handling
2016-01-22 12:13:18 -08:00
Henry Zhu
da106e2bf4
check for nested id
2016-01-22 14:42:07 -05:00
Henry Zhu
ad81f5b149
check if valid.id is defined
2016-01-22 14:20:54 -05:00
Alex Kotliarskyi
ca1c4bba86
Fix naming (s/node/path/g)
2016-01-21 22:45:10 -08:00
horpto
d0a932d0e8
[hotfix][T2765#72428] Wrong 'this' for nested arrow in arrow function
2016-01-22 10:29:04 +05:00
Dmitry Soshnikov
845a4fa557
Pass per preset: Use full function systax in test for old Node versions
2016-01-21 15:14:42 -08:00
Dmitry Soshnikov
e2486b5f71
Pass per preset: added unit test
2016-01-21 14:54:40 -08:00
Amjad Masad
2110f530ea
WithStatements can have statements as bodies
...
For example try: `with({x: 1}) console.log(x);`
2016-01-20 20:48:31 -08:00
Amjad Masad
6b47447e7a
UnaryExpressions are never not prefix
...
If you look at the spec https://github.com/babel/babel/blob/master/doc/ast/spec.md#unaryexpression
All unary expressions are prefix. We should deprecate this field. But for now let's just default it true.
2016-01-20 19:02:04 -08:00
Alex Kotliarskyi
1f543e1bca
Add jsx source annotations only to the files that contain JSX
2016-01-20 14:23:27 -08:00
Alex Kotliarskyi
eaef8302cc
Generate unique filename variable
2016-01-20 13:52:55 -08:00
Dmitry Soshnikov
e7187faea6
Pass per preset: merge nested preset sub-options into preset
2016-01-20 13:36:27 -08:00
Alex Kotliarskyi
34116faaf8
Fix tests for react-jsx-source
2016-01-20 13:25:53 -08:00
Chris Cowan
7621d38bbd
Add test for T3026.
2016-01-20 12:11:57 -08:00
Amjad Masad
e9a913a3f6
v6.4.6
2016-01-20 00:58:48 -08:00
Amjad Masad
9980b6b8b2
[hotfix][T7006] Arrow functions don't have arguments bound
2016-01-20 00:41:17 -08:00
Jason
e9fae4ca54
Update Whitespace._findToken
2016-01-20 16:37:46 +08:00
Jason
d11a2e3d48
Add type annotations for Whitespace._findToken
2016-01-20 13:01:32 +08:00
Alex Kotliarskyi
1643592342
Guard against empty loc
2016-01-19 20:59:42 -08:00
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