We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Motivation: callstack/linaria#879
According to https://webpack.js.org/api/loaders/#inline-matchresource this is the 'official way' to support css in js.
Looking at https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/lib/utils/injectRefreshLoader.js however, match(moduleData.resource) is matching the virtual css files because resource shows up as .js, .tsx, or whatever the js file was that had the css embedded.
match(moduleData.resource)
resource
The text was updated successfully, but these errors were encountered:
match(moduleData.matchResource || moduleData.resource) might just do the trick here
match(moduleData.matchResource || moduleData.resource)
Sorry, something went wrong.
Will fix this shortly - local tests seem promising
fix: make loader injection respect virtual modules
4931415
Fixes #555
Successfully merging a pull request may close this issue.
Motivation: callstack/linaria#879
According to https://webpack.js.org/api/loaders/#inline-matchresource this is the 'official way' to support css in js.
Looking at https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/lib/utils/injectRefreshLoader.js however,
match(moduleData.resource)
is matching the virtual css files becauseresource
shows up as .js, .tsx, or whatever the js file was that had the css embedded.The text was updated successfully, but these errors were encountered: