Tomas Kormanak
05/13/2021, 11:56 AMRobert Jaros
05/13/2021, 11:57 AMTomas Kormanak
05/13/2021, 11:58 AMconfig.module.rules.push(
{
test: /\.(jpe?g|png|gif|svg)$/i,
type: 'asset/resource'
}
);
I got error:
✖ 「wds」: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.module.rules[5].type should be one of these:
"javascript/auto" | "javascript/dynamic" | "javascript/esm" | "json" | "webassembly/experimental"
-> Module type to use for the module
Tomas Kormanak
05/13/2021, 11:59 AMtype
property in webpack docs but I didn't find any reference.Robert Jaros
05/13/2021, 11:59 AMRobert Jaros
05/13/2021, 12:08 PMRobert Jaros
05/13/2021, 12:08 PMRobert Jaros
05/13/2021, 12:09 PMbuild/js/node_modules/webpack
?Tomas Kormanak
05/13/2021, 12:11 PMRobert Jaros
05/13/2021, 12:12 PMRobert Jaros
05/13/2021, 12:13 PMTomas Kormanak
05/13/2021, 12:13 PMTomas Kormanak
05/13/2021, 12:14 PMTomas Kormanak
05/13/2021, 12:19 PMBREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
I am going to clear it.Tomas Kormanak
05/13/2021, 2:51 PMRobert Jaros
05/13/2021, 10:29 PMjed.js
anymore in your webpack configRobert Jaros
05/13/2021, 10:30 PMTomas Kormanak
05/14/2021, 8:24 AM