Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const path = require('path');
module.exports = {
target: 'node',
entry: {
app: [
'babel-polyfill',
'./index.js'
]
},
output: {
path: path.resolve(__dirname, 'build'),
filename: 'app.bundle.js'
},
module: {
loaders: [{
test: /\.js?$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['env']
}
}]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment