2016-10-13 14:54:07 -04:00
|
|
|
var path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
2017-04-11 11:29:29 -04:00
|
|
|
devtool: 'cheap-module-source-map',
|
2016-10-13 14:54:07 -04:00
|
|
|
entry: {
|
2017-04-17 11:22:16 -04:00
|
|
|
dist: './src/index.js'
|
2016-10-13 14:54:07 -04:00
|
|
|
},
|
|
|
|
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']
|
|
|
|
}
|
|
|
|
}]
|
2018-04-30 13:06:40 -04:00
|
|
|
},
|
|
|
|
externals: {
|
|
|
|
'audio-context': true,
|
|
|
|
'minilog': true,
|
|
|
|
'startaudiocontext': true
|
2016-10-13 14:54:07 -04:00
|
|
|
}
|
|
|
|
};
|