assayo/config-overrides.js
2024-10-17 17:03:12 +03:00

17 lines
484 B
JavaScript

module.exports = {
webpack: (config) => {
const oneOfs = config.module.rules.find((rule) => !!rule.oneOf).oneOf;
for (const oneOf of oneOfs) {
oneOf?.use?.forEach((someUse) => {
if (!someUse?.options?.modules?.mode) return;
// someUse.options.modules.localIdentName = '[local]';
someUse.options.modules.getLocalIdent = (context, localIdentName, localName) => {
return localName;
};
});
}
return config;
},
};