优化&更新依赖

This commit is contained in:
lyswhut
2023-06-02 12:27:41 +08:00
parent c8f6153831
commit 025739e35c
10 changed files with 273 additions and 643 deletions
@@ -20,7 +20,7 @@ module.exports = {
type: 'commonjs2',
},
path: path.join(__dirname, '../../dist'),
publicPath: 'auto',
publicPath: '',
},
resolve: {
alias: {
@@ -12,7 +12,7 @@ module.exports = {
type: 'commonjs2',
},
path: path.join(__dirname, '../../dist'),
publicPath: 'auto',
publicPath: '',
},
resolve: {
alias: {
+7 -9
View File
@@ -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$/,