Henry Zhu
cee4cde53e
v6.26.0
2017-08-16 11:54:08 -04:00
Henry Zhu
5749276d7e
update deps
2017-08-16 10:21:19 -04:00
Henry Zhu
7b30f77954
Merge pull request #6111 from modosc/update-regenerator
...
Update regenerator
2017-08-16 10:17:59 -04:00
jbrown215
c28465e03e
Flow opaque type 6.x backport ( #6081 )
...
* Flow opaque type backport
* Add tests for strip types, comments, and babel-generator
* Fix failing tests, run scripts
* Bump babylon to 6.18.0
2017-08-15 16:44:15 -04:00
Henry Zhu
82f37841f5
v6.25.0
2017-06-08 17:29:04 -04:00
Henry Zhu
bc013e6d34
just make sure babylon is up to date [skip ci]
2017-06-08 17:10:51 -04:00
Henry Zhu
f8da5e3457
v6.24.1
2017-04-07 11:19:02 -04:00
Henry Zhu
71e4336f65
v6.24.0
2017-03-12 22:18:08 -04:00
Seth Bergman
3d52d30e49
Fixed broken links in README.md [skip ci] ( #5449 )
...
* Fixed broken links in README.md
- [plugins](https://github.com/babel/babel/blob/master/docs/plugins ) => [plugins](https://babeljs.io/docs/plugins/ )
- [presets](https://github.com/babel/babel/blob/master/docs/plugins/#presets ) => [presets](https://babeljs.io/docs/plugins/preset-latest/ )
* Corrected the presets link [skip-ci]
Changed to:
```
[presets](https://babeljs.io/docs/plugins/#presets )
```
2017-03-12 00:24:57 -08:00
Izaak Schroeder
8d9195f862
Pass dirname as extra metadata to preset constructor. ( #4834 )
...
* Pass `dirname` as extra metadata to preset constructor.
Sometimes a preset would like to know where it should resolve relative paths from (e.g. https://github.com/tleunen/babel-plugin-module-resolver ) and this extra information makes that possible.
* Test for `dirname` passed into preset constructor
This adds a check for `dirname`’s existence and correctness to the
`resolve-addons-relative-to-file` test, and serves as a minimal example
of a path-aware preset.
2017-02-21 22:13:03 -05:00
Logan Smyth
9cae61911d
v6.23.1
2017-02-13 18:18:17 -08:00
Logan Smyth
454933ef76
Revert "Rewrite Hub as interface #5047 " ( #5306 )
2017-02-13 18:15:50 -08:00
Logan Smyth
48573f1fb4
v6.23.0
2017-02-13 17:14:12 -08:00
Logan Smyth
e1fee21529
Add charset so tests work with convert-source-map@>1.4 ( #5302 )
2017-02-13 14:37:41 -08:00
Ben Alpert
14d3c2e256
Avoid adding unnecessary closure for block scoping ( #5246 )
...
When you write
```
for (const x of l) {
setTimeout(() => x);
}
```
we need to add a closure because the variable is meant to be block-scoped and recreated each time the block runs. We do this.
However, we also add the closure when no loop is present. This isn't necessary, because if no loop is present then each piece of code runs at most once. I changed the transform to only add a closure if a variable is referenced from within a loop.
2017-02-13 13:46:00 -08:00
Yongxu Ren
2985597d40
Rewrite Hub as interface #5047 ( #5050 )
...
* Rewrite Hub as interface #5047
* Update index.js
2017-02-13 12:49:10 -08:00
Logan Smyth
b845f2b69d
Re-enable the max-len ESLint rule. ( #5265 )
2017-02-04 11:07:15 -05:00
Brian Ng
160bd3924b
Normalize options sections in docs [skip ci] ( #5244 )
2017-01-31 08:46:01 -05:00
Henry Zhu
368485828f
v6.22.1
2017-01-19 22:12:53 -05:00
Henry Zhu
b06763f1a3
force update core/cli
2017-01-19 22:09:37 -05:00
Henry Zhu
e9fc38bcd3
v6.22.0
2017-01-19 19:33:22 -05:00
Brian Ng
8c35b320d3
Bump eslint-config-babel and fix lint ( #5129 )
2017-01-17 10:51:16 +01:00
Sergey Rubanov
292c3ca206
Refactor test packages to use ES modules instead of CJS ( #5138 )
2017-01-16 11:25:04 -05:00
Logan Smyth
87c201fa47
Merge pull request #5043 from zertosh/no-lodash-is
...
Replace "lodash/is*" and "lodash/each" with native equivalents
2017-01-15 14:22:24 -08:00
Mark Wubben
20c9dca798
Document babelrc option ( #5101 )
...
The core package accepts a babelrc option, which if set to false stops
the transforms from using .babelrc and .babelignore files. Document
this option and remove the --no-babelrc CLI flag, referring to the CLI
documentation instead.
[skip ci]
2017-01-15 16:04:23 -06:00
Andres Suarez
658f13e030
Replace uses of "lodash/each" with native equivalents
2017-01-15 13:54:54 -08:00
Andres Suarez
2bee765e6b
Replace lodash is* with equivalent typeof check
2017-01-15 13:53:58 -08:00
Brian Ng
47bb77d352
Update babel-core options in README ( #5114 )
...
* Add wrapPluginVisitorMethod option to babel-core README [skip ci]
* fix typo
* alpha-sort options
* add note about introspection [skip ci]
2017-01-14 16:01:52 -05:00
Henry Zhu
672adba9a1
enable prefer const ( #5113 )
2017-01-14 09:48:52 -05:00
Logan Smyth
ce0c620a9f
Merge pull request #4729 from rmacklin/add-resolvePlugin-and-resolvePreset
...
Add resolvePlugin and resolvePreset methods to babel-core API
2016-12-20 08:42:27 -08:00
Sven SAULEAU
9d76f0b2de
[skip ci] update README
2016-12-17 16:37:45 +01:00
Sven SAULEAU
3ef8e61d72
[skip ci] update babel-core's README
2016-12-17 12:41:49 +01:00
Henry Zhu
77d9e3e5c4
v6.21.0
2016-12-16 16:55:53 -05:00
Henry Zhu
a73115f401
update core [skip ci]
2016-12-16 16:49:58 -05:00
Henry Zhu
608e77e389
v6.20.0
2016-12-08 18:25:39 -05:00
Henry Zhu
16a05166b2
v6.20.0 changelog [skip ci] ( #4971 )
...
* v6.20.0 changelog [skip ci]
* remove old license since rewrite [skip ci]
2016-12-08 18:17:33 -05:00
Sven SAULEAU
455d888ce8
update package documentation ( #4948 ) [skip ci]
2016-12-06 14:24:52 -05:00
Sven SAULEAU
351c1d3b4f
Update README [skip ci] ( #4938 )
2016-12-05 13:36:31 -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
Daniel Tschinder
1d9e509df2
Fix eslint ( #4897 )
...
* Fix eslint call
* Fix linting errors
2016-11-26 11:24:38 -05:00
Henry Zhu
cd041541b8
Fix bug + Generate test fixtures if no expected.js ( #4858 )
2016-11-17 17:53:46 -05:00
Henry Zhu
7b64a9d914
v6.18.2
2016-11-01 17:30:53 -04:00
Henry Zhu
1a974e58d0
v6.18.1
2016-11-01 17:17:16 -04:00
Diogo Franco
35b795ce54
Fix Valid example to be actually valid ( #4773 )
...
* Fix Valid example to be actually valid
* Rename 'pluginName' to 'presetName' in the example
2016-10-25 11:27:20 +02:00
Henry Zhu
12f9cd0826
v6.18.0
2016-10-24 17:18:36 -04:00
Moti Zilberman
6bc10b5573
Support ObjectExpression in static path evaluation ( #4746 )
2016-10-17 18:55:02 -04:00
Simen Bekkhus
9c2794dc85
Replace path-exists with fs.existsSync ( #4731 )
...
It's not deprecated anymore, see nodejs/node#8364
2016-10-17 14:31:49 -04:00
Richard Macklin
6ec93d782b
Extract resolveFromPossibleNames to remove duplicated logic
...
"DRY"s the duplicated algorithm in resolvePlugin and resolvePreset
2016-10-16 11:18:43 -07:00
Richard Macklin
4ea1007645
Remove unneeded tests
...
Previously these were testing the logic that is now encapsulated in
getPossiblePresetNames and tested in a unit test
2016-10-16 11:07:16 -07:00