Skip to content

chore: Update css-loader/style-loader to fix esModule compat issue with assets loaded through file-loader #2241

New issue

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

Merged
merged 1 commit into from
Jun 15, 2021

Conversation

gribnoysup
Copy link
Collaborator

Spotted by @mmarcon in compass-schema plugin in the latest beta, see this thread for context

Seems like the root cause was the file-loader update that started returning files as es modules with default export and css/style-loader not handling this correctly and rendering [object Module] instead of a string when applying styles to the document. This PR bumps both loaders in all packages to latest version that works with our Node.js/Webpack version combo.

Evergreen patch link (although evergreen will not catch the issue if it's still there)

Here's a screenshot of running compass-schema locally:

image

Copy link
Member

@Anemy Anemy left a comment

Choose a reason for hiding this comment

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

lgtm
Screen Shot 2021-06-14 at 4 16 13 PM

@gribnoysup gribnoysup merged commit 4ea43fe into master Jun 15, 2021
@gribnoysup gribnoysup deleted the fix-file-loader-assets-missing branch June 15, 2021 08:05
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.

2 participants