forked from rubenspgcavalcante/leaflet-ant-path
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using ES6 on webpack.config and transpiling it with babel-core
- Loading branch information
1 parent
b306b66
commit ef85bee
Showing
4 changed files
with
25 additions
and
16 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
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* This code transpiles the webpack config from ES6 to ES5 | ||
* While Node not supports 100% ES6 keep using this file as config file for webpack! | ||
*/ | ||
|
||
var babel = require("babel-core"); | ||
var path = require("path"); | ||
var transpiled = babel.transformFileSync(path.resolve("./webpack.config.js")); | ||
|
||
module.exports = eval(transpiled.code); |
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