Skip to content

Commit

Permalink
[ARC-3471] fix: add path polyfill to webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
sdzh-atlassian committed Nov 27, 2024
1 parent 23ccdc6 commit 23d3e04
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 4 deletions.
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,7 @@
"p-retry": "^4.2.0",
"p-settle": "^3.1.0",
"p-timeout": "^3.2.0",
"path-browserify": "^1.0.1",
"prosemirror-commands": "^1.1.4",
"prosemirror-dropcursor": "^1.3.2",
"prosemirror-example-setup": "^1.1.2",
Expand Down
1 change: 1 addition & 0 deletions webpack.extension.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ module.exports = [
fallback: {
bufferutil: false,
'utf-8-validate': false,
path: require.resolve('path-browserify'),
},
},
output: {
Expand Down
2 changes: 1 addition & 1 deletion webpack.mui.webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
extensions: ['.ts', '.tsx', '.js', '.json'],
plugins: [new TsconfigPathsPlugin({ configFile: resolveApp('./tsconfig.json') })],
fallback: {
path: false,
path: require.resolve('path-browserify'),
},
},
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion webpack.react.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
extensions: ['.ts', '.tsx', '.js', '.json'],
plugins: [new TsconfigPathsPlugin({ configFile: resolveApp('./tsconfig.json') })],
fallback: {
path: false,
path: require.resolve('path-browserify'),
},
},
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion webpack.react.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = {
extensions: ['.ts', '.tsx', '.js', '.json'],
plugins: [new TsconfigPathsPlugin({ configFile: resolveApp('./tsconfig.notest.json') })],
fallback: {
path: false,
path: require.resolve('path-browserify'),
},
},
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion webpack.react.webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
extensions: ['.ts', '.tsx', '.js', '.json'],
plugins: [new TsconfigPathsPlugin({ configFile: resolveApp('./tsconfig.json') })],
fallback: {
path: false,
path: require.resolve('path-browserify'),
},
},
plugins: [
Expand Down

0 comments on commit 23d3e04

Please sign in to comment.