Skip to content

Add default export to definition file#2

Merged
Obi-Dann merged 1 commit intoTeamSupercell:masterfrom
sarink:export-default
Aug 4, 2019
Merged

Add default export to definition file#2
Obi-Dann merged 1 commit intoTeamSupercell:masterfrom
sarink:export-default

Conversation

@Obi-Dann
Copy link
Copy Markdown
Contributor

@Obi-Dann Obi-Dann commented Aug 4, 2019

from Jimdo/typings-for-css-modules-loader#51 by @sarink

When using the style-loader, the locals object gets invisibly murdered. Fixes Jimdo/typings-for-css-modules-loader#20. If someone's not using the style-loader they can import {locals}, and if they are using the style-loader, they can use the default import. This should make everyone happy, and be fully backwards-compatible.

When using the `style-loader`, the `locals` object gets invisibly murdered. Fixes Jimdo#20. If someone's not using the `style-loader` they can `import {locals}`, and if they _are_ using the `style-loader`, they can use the default import. This should make everyone happy, and be fully backwards-compatible.
@Obi-Dann Obi-Dann merged commit 892ed63 into TeamSupercell:master Aug 4, 2019
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.

Generated typings not compatible with project

2 participants