-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nestor Hernandez Ojeda
committed
Jun 8, 2016
1 parent
2381ee2
commit 47a9745
Showing
2 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
module.exports = { | ||
plugins: [ | ||
var semver = require("semver"); | ||
|
||
var pluginsList = [ | ||
require("babel-plugin-transform-es2015-modules-commonjs") | ||
]; | ||
|
||
if (semver.lt(process.version, '6.0.0')) { | ||
pluginsList.push( | ||
require("babel-plugin-transform-es2015-destructuring"), | ||
require("babel-plugin-transform-es2015-function-name"), | ||
require("babel-plugin-transform-es2015-modules-commonjs"), | ||
require("babel-plugin-transform-es2015-parameters"), | ||
require("babel-plugin-transform-es2015-shorthand-properties"), | ||
require("babel-plugin-transform-es2015-spread"), | ||
require("babel-plugin-transform-es2015-sticky-regex"), | ||
require("babel-plugin-transform-es2015-unicode-regex"), | ||
] | ||
require("babel-plugin-transform-es2015-unicode-regex")); | ||
} | ||
|
||
if (semver.lt(process.version, '5.0.0')) { | ||
pluginsList.push(require("babel-plugin-transform-es2015-spread")); | ||
} | ||
|
||
module.exports = { | ||
plugins: pluginsList | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters