mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-25 08:38:30 -05:00
28 lines
670 B
JavaScript
28 lines
670 B
JavaScript
module.exports = {
|
|
devtool: 'source-map',
|
|
entry: {
|
|
index: './src/entry/index.js',
|
|
editor: './src/entry/editor.js'
|
|
},
|
|
output: {
|
|
path: './src/build/bundles',
|
|
filename: '[name].bundle.js'
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.js$/,
|
|
include: /node_modules/,
|
|
loaders: ['strip-sourcemap-loader']
|
|
},
|
|
{
|
|
loader: 'babel-loader',
|
|
exclude: /node_modules/,
|
|
test: /\.jsx?$/,
|
|
query: {
|
|
presets: ['es2015']
|
|
}
|
|
}
|
|
]
|
|
}
|
|
};
|