Skip to content

Commit d5742ed

Browse files
committed
Make npm compile pass
1 parent a60081d commit d5742ed

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

webpack.config.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const webpack = require('webpack')
1414

1515
/** @typedef {import('webpack').Configuration} WebpackConfig **/
1616

17-
function createExtensionConfig ({ target, output, plugins }) {
17+
function createExtensionConfig ({ target, output }) {
1818
return {
1919
target,
2020
entry: './src/extension.ts',
@@ -44,8 +44,7 @@ function createExtensionConfig ({ target, output, plugins }) {
4444
]
4545
}
4646
]
47-
},
48-
plugins: plugins || []
47+
}
4948
}
5049
}
5150

@@ -56,8 +55,7 @@ const nodeExtensionConfig = createExtensionConfig({
5655
filename: 'extension.js',
5756
libraryTarget: 'commonjs2',
5857
devtoolModuleFilenameTemplate: '../[resource-path]'
59-
},
60-
plugins: []
58+
}
6159
})
6260

6361
const webExtensionConfig = createExtensionConfig({
@@ -67,12 +65,7 @@ const webExtensionConfig = createExtensionConfig({
6765
path: path.join(__dirname, './dist/web'),
6866
libraryTarget: 'commonjs',
6967
devtoolModuleFilenameTemplate: '../../[resource-path]'
70-
},
71-
plugins: [
72-
new webpack.ProvidePlugin({
73-
process: 'process/browser'
74-
})
75-
]
68+
}
7669
})
7770

7871
module.exports = [webExtensionConfig, nodeExtensionConfig]

0 commit comments

Comments
 (0)