Mirror of upstream PR #82095#25
Closed
austinderek wants to merge 3 commits into
Closed
Conversation
Fixes vercel#82000 - Next.js still imports CSS as styles even when loaded with raw-loader - Add webpack rules to handle raw-loader imports before CSS processing - Support multiple raw-loader patterns: ?raw, ?raw-loader, git add packages/next/src/build/webpack/config/blocks/css/index.ts test/integration/css-fixtures/raw-loader-import/next.config.js test/integration/css-fixtures/raw-loader-import/pages/index.js test/integration/css-fixtures/raw-loader-import/pages/styles.css test/integration/css-fixtures/raw-loader-import/test/raw-loader.test.jsraw-loader! - Return raw source content instead of processed CSS when using raw-loader - Add test fixture to verify raw-loader behavior When users import CSS with raw-loader (e.g., require('!!raw-loader!./foo.css')), they now get raw source content as expected instead of having styles applied.
4e06942 to
d5dc166
Compare
6cae6d8 to
dccba7d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR mirrors upstream PR #82095.\n\nAuto-synced from upstream.