Skip to content

Add namedExport support#50

Open
mmktomato wants to merge 1 commit intoTeamSupercell:masterfrom
mmktomato:master
Open

Add namedExport support#50
mmktomato wants to merge 1 commit intoTeamSupercell:masterfrom
mmktomato:master

Conversation

@mmktomato
Copy link
Copy Markdown

This loader cannot extract css modules keys if namedExport of css-loader is set to true.
I added namedExport option to this loader, which supports namedExport of css-loader.

Comment thread src/index.js
let cssModuleKeys = [];

if (options.namedExport) {
const indexOfExports = content.indexOf("// Exports");
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant