优化&更新依赖
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = {
|
||||
type: 'commonjs2',
|
||||
},
|
||||
path: path.join(__dirname, '../../dist'),
|
||||
publicPath: 'auto',
|
||||
publicPath: '',
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
@@ -39,14 +39,6 @@ module.exports = {
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
exclude: /node_modules/,
|
||||
// parser: {
|
||||
// worker: [
|
||||
// '*context.audioWorklet.addModule()',
|
||||
// '*audioWorklet.addModule()',
|
||||
// // *addModule() is not valid syntax
|
||||
// // '...',
|
||||
// ],
|
||||
// },
|
||||
},
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
@@ -57,6 +49,12 @@ module.exports = {
|
||||
appendTsSuffixTo: [/\.vue$/],
|
||||
},
|
||||
},
|
||||
parser: {
|
||||
worker: [
|
||||
'*audioContext.audioWorklet.addModule()',
|
||||
'...',
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
test: /\.node$/,
|
||||
|
||||
Reference in New Issue
Block a user