Skip to content

Commit

Permalink
chore: reinstall webpack v4 polyfill for v5, remove sass-lint for dep…
Browse files Browse the repository at this point in the history
…recation

KBDEV-1095
  • Loading branch information
kttkjl committed Mar 13, 2024
1 parent b5c8b2b commit fe55518
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 2,231 deletions.
9 changes: 9 additions & 0 deletions config/webpack/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ const createBaseConfig = ({
// Don't precache sourcemaps (they're large) and build asset manifest:
exclude: [/\.map$/, /asset-manifest\.json$/],
}),
new webpack.ProvidePlugin({
// Make a global `process` variable that points to the `process` package,
// because the `util` package expects there to be a global variable named `process`.
// Thanks to https://stackoverflow.com/a/65018686/14239942
process: 'process/browser'
})
];


Expand Down Expand Up @@ -216,6 +222,9 @@ const createBaseConfig = ({
alias: {
'@': SRC_PATH,
},
fallback: {
"util": require.resolve("util/")
}
},
module: moduleSettings,

Expand Down
Loading

0 comments on commit fe55518

Please sign in to comment.