mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 22:12:48 -05:00
23 lines
486 B
JavaScript
23 lines
486 B
JavaScript
var path = require('path');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
'dist': './src/index.js'
|
|
},
|
|
output: {
|
|
path: __dirname,
|
|
library: 'AudioEngine',
|
|
libraryTarget: 'commonjs2',
|
|
filename: '[name].js'
|
|
},
|
|
module: {
|
|
loaders: [{
|
|
test: /\.js$/,
|
|
loader: 'babel-loader',
|
|
include: path.resolve(__dirname, 'src'),
|
|
query: {
|
|
presets: ['es2015']
|
|
}
|
|
}]
|
|
}
|
|
};
|