Sven SAULEAU
8744303f06
Merge branch '7.0' into fix-require-debug
2017-03-11 12:17:04 +01:00
Logan Smyth
ca71c74696
Move plugin and pass initialization into a more central location.
2017-03-09 16:13:38 -08:00
Logan Smyth
305165eda4
Remove Logger usage from options processing.
2017-03-09 16:13:38 -08:00
Henry Zhu
0553d7761d
Publish
...
- babel-cli@7.0.0-alpha.2
- babel-core@7.0.0-alpha.2
- babel-helper-plugin-test-runner@7.0.0-alpha.2
- babel-helper-transform-fixture-test-runner@7.0.0-alpha.2
- babel-register@7.0.0-alpha.2
2017-03-08 13:08:44 -05:00
Kai Cataldo
d054cd0ea8
Add support for .babelrc.js files
2017-03-07 16:44:24 -05:00
Logan Smyth
39eca84642
Use 'resolve' from npm instead of private 'module' methods. ( #5416 )
2017-03-07 12:42:25 -08:00
Brian Ng
8a82cc060a
Run new lint rules ( #5413 )
2017-03-04 10:46:01 -05:00
Henry Zhu
11e54a6bd3
v7.0.0-alpha.1
2017-03-02 16:04:47 -05:00
Henry Zhu
2b9c3735fd
update to babylon beta 4
2017-03-01 12:38:19 -05:00
Henry Zhu
3ff77a61e4
Update babylon beta 3 ( #5394 )
...
* Update babylon to v7-beta.3
* convert RestProperty/SpreadProperty to RestElement/SpreadElement
* add virtual types to make it easier to upgrade
2017-02-28 16:58:19 -05:00
Daniel Tschinder
6d6cdf6baf
[7.0] Allow presets to be objects ( #5385 )
...
* Allow presets to be objects
* Improve logic to detect preset format
2017-02-28 16:39:08 -05:00
Logan Smyth
9acae54a29
Merge pull request #5376 from loganfsmyth/no-pipeline
...
[7.0] Remove the unneeded Pipeline class.
2017-02-27 12:33:11 -08:00
Logan Smyth
f3e92010c5
Remove the unneeded Pipeline class.
2017-02-24 13:37:33 -08:00
Henry Zhu
d33d023594
Merge remote-tracking branch 'origin/master' into merge-master
2017-02-23 18:54:15 -05:00
Daniel Tschinder
87ca6150ae
[7.0] Remove bc code from preset handling and preset-es2015 ( #5128 )
...
* Remove bc code from preset handling and preset-es2015
* Add more tests
* Only allow functions for presets
* Fix lint
2017-02-22 14:58:01 +01: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
Marcelo Dapper
724c949244
Replace lodash/assign with Object.assign ( #5356 )
...
Remove imports to lodash/assign and replace assign with Object.assign.
The lodash/assign is unnecessary for babel 7 as node >4 has the same
functionality built-in with Object.assign as used here.
This resolve the [issue 5353](https://github.com/babel/babel/issues/5353 )
2017-02-21 22:08:20 -05:00
Logan Smyth
4ee385e96c
Avoid usage of exports/module.exports/require().
2017-02-21 16:52:42 -08:00
Henry Zhu
b3e208fcd0
Update to babylon@7.0.0-beta.0
2017-02-15 14:45:21 -05:00
Daniel Tschinder
6c03cb0783
Merge branch 'master' into merge-master
...
# Conflicts:
# lerna.json
# packages/babel-cli/package.json
# packages/babel-core/package.json
# packages/babel-generator/package.json
# packages/babel-helper-builder-react-jsx/package.json
# packages/babel-helper-function-name/package.json
# packages/babel-helper-optimise-call-expression/package.json
# packages/babel-helper-replace-supers/package.json
# packages/babel-helper-transform-fixture-test-runner/package.json
# packages/babel-helpers/package.json
# packages/babel-plugin-transform-class-properties/package.json
# packages/babel-plugin-transform-es2015-block-scoping/package.json
# packages/babel-plugin-transform-es2015-classes/package.json
# packages/babel-plugin-transform-es2015-modules-commonjs/package.json
# packages/babel-plugin-transform-es2015-modules-systemjs/package.json
# packages/babel-plugin-transform-es2015-modules-umd/package.json
# packages/babel-plugin-transform-es2015-parameters/package.json
# packages/babel-plugin-transform-react-jsx/package.json
# packages/babel-register/package.json
# packages/babel-template/package.json
# packages/babel-traverse/package.json
# packages/babel/package.json
2017-02-14 12:46:23 +01: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
Henry Zhu
9083bd6283
Merge branch 'master' into 7.0
2017-02-09 18:36:02 -05: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
Kai Cataldo
e09ea222c9
Remove babel-runtime from packages' dependencies ( #5218 )
2017-01-27 09:04:35 -05:00
Andres Suarez
e9d87ed55c
Remove path-is-absolute in favor of builtin path.isAbsolute ( #5179 )
2017-01-21 08:33:34 -05:00
Sergey Rubanov
d0b42d4313
Update babel-core browserify fixture ( #5164 )
2017-01-20 10:29:44 +01:00
Jordan Jones
1742035a98
[7.0] Fixes #5108 , browser.js and browser.js test removed ( #5124 )
...
* Fixes #5108 , browser.js and browser.js test removed
* Moved api/node.js to index.js and adjusted associated file references
2017-01-19 22:43:11 -05:00
Sergey Rubanov
3a5ce620c8
[7.0] Deprecate babel-core/register.js ( #5132 )
...
* Deprecate babel-core/register.js
* add error when using `babel-core/register`
2017-01-19 22:22:45 -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
Sven SAULEAU
1672982873
fix: require debug directly instead of debug/node
2016-12-21 18:09:58 +01: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