Prayag Verma
b3d270ed9b
Fix a typo
...
`setttings` → `settings`
2016-02-12 17:24:25 +05:30
Sebastian McKenzie
637fdc6fd3
Merge pull request #3344 from babel/remove-0.10ci
...
Travis: Remove 0.10, since it's covered by Circle
2016-02-12 07:01:28 +00:00
Henry Zhu
a1c11e6046
Merge pull request #3351 from hzoo/asi-generator
...
Add class properties test with a generator method that results in a p…
2016-02-11 13:17:43 -05:00
Henry Zhu
8568198238
Add class properties test with a generator method that results in a parse error
2016-02-11 13:03:36 -05:00
Adam Miskiewicz
c1960dbe02
Make Babel resolve plugins relative to where they were specified.
...
Given the following `.babelrc`:
```
{
"plugins": ["./myPluginDir/somePlugin.js"]
}
```
Babel should resolve that plugin relative to the directory that contains the `.babelrc` file.
Currently, Babel is resolving the plugin relative to the current `process.cwd()`, as you can see in this test case: https://github.com/skevy/babel-plugin-resolution-test-case
This is occurring because the "fake" `Module` that we're creating in the `resolve` helper doesn't have an `id` and `filename`. Therefore, Node builds an array of paths that contains a number of node_module paths as well as `.`, and doesn't contain the path in which we'd actually like to look up the plugin. `.` of course resolves to the current `process.cwd()`, and thus makes the Babel plugin resolution mechanism quite fragile. The relevant code in Node.JS can be found here (tagged at the v5.4.1 release): ff99203724/lib/module.js (L236-L242) .
This PR adds `id` and `filename` to that fake `Module` in order to resolve this issue.
2016-02-11 11:13:57 -05:00
Logan Smyth
ff2bf2642b
Merge pull request #3326 from eetulatja/master
...
Fix spread to work with super method calls
2016-02-10 22:49:02 -07:00
Logan Smyth
b53864c569
Merge pull request #3334 from loganfsmyth/bind-callee-ref
...
Check BindExpression callee for reference - fixes T6984
2016-02-10 22:42:50 -07:00
Logan Smyth
18fd06cf4a
Merge pull request #3332 from loganfsmyth/revert-prop-semi
...
Revert to standard ASI behavior for class properties
2016-02-10 22:40:44 -07:00
Logan Smyth
8c910d6a4c
Merge config options into list after babelrc options - fixes T7079
2016-02-10 21:18:27 -08:00
Henry Zhu
5a271b091a
Docs: update plugin readmes with options [ci skip]
2016-02-10 18:12:58 -05:00
Andrew Schmadel
307d5c5a0d
rename scope bindings during block scope transform
2016-02-10 11:44:16 -05:00
Henry Zhu
d3310fb5ea
Travis: Remove 0.10, since it's covered by Circle
2016-02-09 23:27:00 -05:00
Henry Zhu
77a36633be
Merge pull request #3343 from ntwb/patch-1
...
Travis CI: Switch from deprecated `stable` NodeJS to latest 4.x.x & 5.x.x
2016-02-09 23:20:59 -05:00
Stephen Edgar
606c8d05fd
Travis CI: Switch from deprecated stable NodeJS to latest 4.x.x & 5.x.x
...
• `stable` is deprecated, see https://github.com/creationix/nvm#usage
• Switch from `4.0` to `4` to use the latest v4.x.x LTS branch
• Switch from `stable` to `5` to use the latest v5.x.x "stable" branch
2016-02-10 14:13:21 +11:00
Erik
27a132a9cb
Add test for T3077 (Incorrect rest operator behavior for async arrow functions)
2016-02-09 13:13:28 -05:00
Rico Sta. Cruz
5a312e69be
babel-register: update README.md
2016-02-09 18:48:25 +08:00
Denis Pushkarev
e50be68400
add special case for legacy modules to the runtime build script
2016-02-09 15:28:17 +06:00
Henry Zhu
afce6253bc
Merge pull request #3341 from chicoxyzzy/unnecessary-dep
...
bin-version-check is unnecessary now
2016-02-08 20:41:12 -05:00
chico
fae5b7a728
bin-version-check is unnecessary now
2016-02-09 04:32:53 +03:00
Denis Pushkarev
79214b3b05
update core-js
2016-02-09 07:31:02 +06:00
Henry Zhu
612e11e615
Merge pull request #3339 from babel/shell-scripts
...
Know how to write good shell scripts
2016-02-08 20:27:31 -05:00
Henry Zhu
7bcfa02edd
Know how to write good shell scripts
2016-02-08 19:59:34 -05:00
Henry Zhu
c7f8e0c5b8
Merge pull request #3337 from loganfsmyth/no-prefer-global
...
Don't preferGlobal on the `babel` package.
2016-02-08 11:45:32 -05:00
Logan Smyth
2f0c646364
Don't preferGlobal on the babel package.
2016-02-08 08:33:23 -08:00
Henry Zhu
851ed6e6a5
clarify that passPerPreset is experimental
2016-02-08 10:39:30 -05:00
Sebastian McKenzie
7507f5ffb5
Update CHANGELOG.md
2016-02-08 02:40:41 +00:00
Sebastian McKenzie
a0fdb77413
v6.5.1
2016-02-08 02:18:10 +00:00
Sebastian McKenzie
bc2f84f371
Fix API change that e7187faea64b64d65a17c57d6578903f1fff27d6 introduced that wasn't changed in babel-register. Also use an object rather than a long ass list of arguments.
2016-02-08 02:17:09 +00:00
Amjad Masad
ba40f6979b
Merge pull request #3333 from loganfsmyth/improve-cli-error
...
Improve the error messaging for using the wrong CLI script.
2016-02-07 14:37:15 -08:00
Henry Zhu
04137d363f
Merge pull request #3328 from babel/tests-docs
...
Docs: update CONTRIBUTING to include some information on how tests wo…
2016-02-07 17:27:58 -05:00
Henry Zhu
8191681dfa
Merge pull request #3325 from babel/npm3
...
Add note about developing with npm 3.
2016-02-07 09:27:49 -05:00
Henry Zhu
24c759a229
Merge pull request #3329 from loganfsmyth/export-specifier-validator
...
Fix export specifier validator.
2016-02-07 09:27:09 -05:00
Logan Smyth
c67905ac93
Add tests for class property ASI.
2016-02-06 23:01:38 -08:00
Logan Smyth
b13be640fa
Check BindExpression callee for reference - fixes T6984
2016-02-06 22:17:46 -08:00
Henry Zhu
f3fca16838
Merge pull request #3330 from loganfsmyth/recommend-nonglobal
...
Remove global install recommendation.
2016-02-06 22:19:41 -05:00
Logan Smyth
256cb18656
Improve the error messaging for using the wrong CLI script.
2016-02-06 19:09:14 -08:00
Logan Smyth
63b328ce87
Revert "babylon: throw parse error if class properties do not have a semicolon (fixes T6873)"
...
This reverts commit 976edfc06740e434d1d5b136e28996a77f909403.
2016-02-06 18:36:31 -08:00
Logan Smyth
89ae1dc258
Revert "babylon: fix error location for class properties with a missing semicolon"
...
This reverts commit f31099f383b52cf4fe1786188f6421529dea865b.
2016-02-06 18:36:22 -08:00
Henry Zhu
f9f8ad6eff
v6.5.0
2016-02-06 19:06:41 -05:00
Logan Smyth
50e9016002
Remove global install recommendation.
2016-02-06 13:53:42 -08:00
Logan Smyth
ccf3875a67
Fix export specifier validator.
2016-02-06 13:49:34 -08:00
Henry Zhu
eb7d697957
remove unnecessary stuff, add more links
2016-02-06 16:04:02 -05:00
Henry Zhu
773dcbc5d5
Docs: update CONTRIBUTING to include some information on how tests work in plugins
2016-02-06 16:01:22 -05:00
Eetu Latja
9d5184ffb2
Fix spread to work with super method calls
2016-02-06 19:31:42 +02:00
Henry Zhu
cee7619f73
Add note about developing with npm 3.
2016-02-06 10:06:56 -05:00
Henry Zhu
31404b9bdc
Merge pull request #3302 from babel/6.5.0-changelog
...
add 6.5.0 changelog
2016-02-05 17:21:20 -05:00
Henry Zhu
6b751a53da
Add 6.5.0 changelog [ci skip]
2016-02-05 17:18:30 -05:00
Amjad Masad
e24be1a051
Merge pull request #3305 from jviereck/T7052
...
Fix: Arrow functions with trailing comma + return type are throwing an error when parsing
2016-02-05 13:50:57 -08:00
Henry Zhu
4e619db873
Merge pull request #3324 from zjmiller/master
...
Parenthize "in" in for-loop init, even when init has nested for-loop
2016-02-05 15:50:11 -05:00
Henry Zhu
a757e26005
Merge pull request #3312 from erikdesjardins/hoist-async
...
Fix T6882 (async functions are not hoisted)
2016-02-05 15:32:26 -05:00