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`