-
QuestionIn the v2 to v3 migration guide it says to update lines that import CSS modules from something like:
to:
Or (less desirable because tree-shaking won't be as good):
My question is: please can you point me to the change in Gatsby that caused this? Why do I want to know?I have a repository set up with Gatsby, but also Storybook (in order to test the components that are used in the Gatsby site). Currently, I have an annoying situation where Gatsby will only work if I do
and Storybook will only work if I do
I'm hoping to learn what the change was in Gatsby, so that I can replicate it in my Storybook config. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
We've set the option The PR itself is here: #29145 -- relevant bit:
|
Beta Was this translation helpful? Give feedback.
We've set the option
namedExport
totrue
(https://github.com/webpack-contrib/mini-css-extract-plugin#namedexport) andesModule
istrue
by default (https://github.com/webpack-contrib/mini-css-extract-plugin#esmodule).The PR itself is here: #29145 -- relevant bit: