assayo/config-overrides.js

19 lines
478 B
JavaScript
Raw Normal View History

2023-11-27 12:45:54 +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;
// someUse.options.modules.localIdentName = '[local]_';
someUse.options.modules.getLocalIdent = (context, localIdentName, localName, options) => {
return localName;
}
});
}
return config;
}
};