netguru / create-react-app

Create React apps with no build configuration.
MIT License
14 stars 6 forks source link

Global styles from third party library are not applied properly #53

Open RusinovAnton opened 6 years ago

RusinovAnton commented 6 years ago

Is this bug?

Yes

Reproduce bug

Repository with bug example: https://github.com/RusinovAnton/cra-global-styles-bug-example

Problem Description

I've just tried to use react-table and import styles for it the way it described in README

There are two problems with it:

image

Expected behavior

Third party styles are not transformed as CSS modules when imported within :global directive