Created
March 14, 2017 02:25
-
-
Save miguelmota/8de70f5860e84e1fbc934451750efcc3 to your computer and use it in GitHub Desktop.
Cycle.js webpack + babel config
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
{ | |
"presets": [ | |
"es2015" | |
], | |
"plugins": [ | |
"syntax-jsx", | |
["transform-react-jsx", {"pragma": "html"}], | |
"transform-function-bind", | |
["babel-root-import", { | |
"rootPathSuffix": "client/" | |
}], | |
] | |
} |
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
'use strict' | |
module.exports = { | |
entry: './client/index.js', | |
output: { | |
filename: './client/build/app.dist.js' | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.jsx?$/, | |
exclude: /(node_modules|bower_components)/, | |
loader: 'babel-loader', | |
query: { | |
presets: ['es2015'] | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that 'babel-root-import' was renamed to 'babel-plugin-root-import'