cockpit/webpack: path polyfill

We need to polyfill the `path` plugin for the cockpitApi store
This commit is contained in:
Gianluca Zuccarelli 2025-01-10 12:32:58 +00:00 committed by Lucas Garfield
parent f4d6bc587f
commit ebe387992c
3 changed files with 5 additions and 0 deletions

View file

@ -28,6 +28,9 @@ module.exports = {
devtool,
plugins,
resolve: {
fallback: {
path: require.resolve('path-browserify'),
},
modules: [
'node_modules',
// this tells webpack to check `node_modules`

1
package-lock.json generated
View file

@ -75,6 +75,7 @@
"moment": "2.30.1",
"msw": "2.7.0",
"npm-run-all": "4.1.5",
"path-browserify": "1.0.1",
"postcss-scss": "4.0.9",
"react-chartjs-2": "5.3.0",
"redux-mock-store": "1.5.5",

View file

@ -73,6 +73,7 @@
"moment": "2.30.1",
"msw": "2.7.0",
"npm-run-all": "4.1.5",
"path-browserify": "1.0.1",
"postcss-scss": "4.0.9",
"react-chartjs-2": "5.3.0",
"redux-mock-store": "1.5.5",