Skip to content

Commit

Permalink
fix: add newly required Webpack plugins (#3986)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Mar 11, 2024
1 parent a2c4836 commit ed8283f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/project-utils/bundling/app/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ module.exports = function (webpackEnv, { paths, options }) {
assert: require.resolve("assert-browserify"),
buffer: require.resolve("buffer/"),
crypto: require.resolve("crypto-browserify"),
path: require.resolve("path-browserify")
path: require.resolve("path-browserify"),
vm: require.resolve("vm-browserify")
}
},

Expand Down Expand Up @@ -419,6 +420,9 @@ module.exports = function (webpackEnv, { paths, options }) {
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"]
}),
new webpack.ProvidePlugin({
process: "process/browser"
}),
// Generates an `index.html` file with the <script> injected.
new HtmlWebpackPlugin(
Object.assign(
Expand Down
2 changes: 2 additions & 0 deletions packages/project-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"postcss-loader": "6.2.1",
"postcss-normalize": "10.0.1",
"postcss-preset-env": "7.0.1",
"process": "^0.11.10",
"raw-loader": "4.0.2",
"react": "17.0.2",
"react-dev-utils": "12.0.0",
Expand All @@ -76,6 +77,7 @@
"typescript": "4.7.4",
"url": "0.11.0",
"url-loader": "4.1.1",
"vm-browserify": "^1.1.2",
"webpack": "^5.74.0",
"webpack-dev-server": "4.6.0",
"webpack-manifest-plugin": "4.0.2",
Expand Down
4 changes: 3 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18480,6 +18480,7 @@ __metadata:
postcss-loader: 6.2.1
postcss-normalize: 10.0.1
postcss-preset-env: 7.0.1
process: ^0.11.10
raw-loader: 4.0.2
react: 17.0.2
react-dev-utils: 12.0.0
Expand All @@ -18501,6 +18502,7 @@ __metadata:
typescript: 4.7.4
url: 0.11.0
url-loader: 4.1.1
vm-browserify: ^1.1.2
webpack: ^5.74.0
webpack-dev-server: 4.6.0
webpack-manifest-plugin: 4.0.2
Expand Down Expand Up @@ -46236,7 +46238,7 @@ __metadata:
languageName: node
linkType: hard

"vm-browserify@npm:^1.0.1":
"vm-browserify@npm:^1.0.1, vm-browserify@npm:^1.1.2":
version: 1.1.2
resolution: "vm-browserify@npm:1.1.2"
checksum: 10a1c50aab54ff8b4c9042c15fc64aefccce8d2fb90c0640403242db0ee7fb269f9b102bdb69cfb435d7ef3180d61fd4fb004a043a12709abaf9056cfd7e039d
Expand Down

0 comments on commit ed8283f

Please sign in to comment.