We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d369c1 commit 68b20d8Copy full SHA for 68b20d8
src/parsers/importDeclaration.ts
@@ -57,7 +57,11 @@ export default (processor: Processor): void => {
57
return item.local.name;
58
});
59
const specifiers = `const { ${specifierNames.join(', ')} } = ${JSON.stringify(
60
- processor.importedCssModuleList
+ Object.fromEntries(
61
+ Object.entries(processor.importedCssModuleList).filter(([key]) =>
62
+ specifierNames.includes(key)
63
+ )
64
65
)};`;
66
processor.magicContent.overwrite(node.start, node.end, specifiers);
67
}
0 commit comments