Last active
December 19, 2016 19:24
-
-
Save mizchi/31c498bf9c1ae2b680f5b17b075a16b1 to your computer and use it in GitHub Desktop.
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
Show hidden characters
{ | |
"plugins": [ | |
"syntax-async-functions", | |
"transform-decorators-legacy", | |
"transform-class-properties", | |
"transform-object-rest-spread", | |
"transform-react-jsx", | |
"transform-flow-strip-types" | |
] | |
} |
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
{ | |
"name": "mizchi-new-proj", | |
"version": "1.0.0", | |
"main": "index.js", | |
"author": "Koutarou Chikuba <miz404@gmail.com>", | |
"license": "MIT", | |
"dependencies": { | |
"babel-core": "^6.21.0", | |
"babel-loader": "^6.2.10", | |
"babel-plugin-syntax-async-functions": "^6.13.0", | |
"babel-plugin-transform-class-properties": "^6.19.0", | |
"babel-plugin-transform-decorators-legacy": "^1.3.4", | |
"babel-plugin-transform-flow-strip-types": "^6.21.0", | |
"babel-plugin-transform-object-rest-spread": "^6.20.2", | |
"babel-plugin-transform-react-jsx": "^6.8.0", | |
"webpack": "2.1.0-beta.25", | |
"webpack-async-await": "^1.1.0" | |
} | |
} |
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
const webpack = require('webpack'); | |
const AsyncAwaitPlugin = require('webpack-async-await') ; | |
module.exports = { | |
entry: './src/main.js', | |
output: { | |
path: "public", | |
filename: 'bundle.js' | |
}, | |
plugins: [ | |
new AsyncAwaitPlugin({}) | |
], | |
module: { | |
rules: [ | |
{ | |
test: /\.js$/, | |
use: 'babel-loader', | |
exclude: /node_modules/ | |
} | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment