assayo/config-overrides.js

17 lines
481 B
JavaScript
Raw Permalink Normal View History

2024-10-17 14:03:12 +00:00
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;
2024-10-18 09:24:52 +00:00
someUse.options.modules.localIdentName = '[local]';
2024-10-17 14:03:12 +00:00
someUse.options.modules.getLocalIdent = (context, localIdentName, localName) => {
return localName;
};
});
}
return config;
},
};