Skip to content

Commit

Permalink
Fix the Webpack config for the web ver. so that sinon@\^15.2.0 works.…
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Aug 15, 2023
1 parent 14f5bd2 commit 5c88b9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/web-extension.webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-env node */
/* eslint-disable @typescript-eslint/no-var-requires */
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
Expand Down Expand Up @@ -49,7 +51,7 @@ const config = /** @type WebpackConfig */ {
},
plugins: [
new webpack.ProvidePlugin({
process: "process/browser", // provide a shim for the global `process` variable
process: "process/browser.js", // provide a shim for the global `process` variable
}),
],
externals: {
Expand Down

0 comments on commit 5c88b9a

Please sign in to comment.