When chained after css-loader 6.x with options.esModule: true (the default), and options.modules.namedExport: true (not the default), typings-for-css-modules-loader dies on this line, since it does not find exports.locals in the emitted source:
|
// let's only check `exports.locals` for keys to avoid getting keys from the sourcemap when it's enabled |
|
// if we cannot find locals, then the module only contains global styles |
|
const indexOfLocals = content.indexOf(".locals"); |