Skip to content

refactor: css-extract using parseMeta to store css info#7878

Merged
JSerFeng merged 1 commit intomainfrom
refactor/css-extract-additional-data
Sep 12, 2024
Merged

refactor: css-extract using parseMeta to store css info#7878
JSerFeng merged 1 commit intomainfrom
refactor/css-extract-additional-data

Conversation

@JSerFeng
Copy link
Copy Markdown
Contributor

Summary

css-extract uses additionalData to parse necessary data to Rust, but additionalData can be removed by other user's plugin, so it's not safe.

Now we introduce a new internal field for passing data, other loaders cannot modify it

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Sep 12, 2024
@netlify
Copy link
Copy Markdown

netlify bot commented Sep 12, 2024

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit 800d008
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/66e2db5b5255c70008e7155f
😎 Deploy Preview https://deploy-preview-7878--rspack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@JSerFeng JSerFeng force-pushed the refactor/css-extract-additional-data branch from ed0a4fc to c4d5951 Compare September 12, 2024 09:40
@chenjiahan
Copy link
Copy Markdown
Member

Will fix: #7869

@JSerFeng JSerFeng enabled auto-merge (squash) September 12, 2024 11:27
@h-a-n-a
Copy link
Copy Markdown
Contributor

h-a-n-a commented Sep 12, 2024

Would you please add a test just to avoid regressions?

@JSerFeng JSerFeng force-pushed the refactor/css-extract-additional-data branch from c4d5951 to 800d008 Compare September 12, 2024 12:15
@JSerFeng
Copy link
Copy Markdown
Contributor Author

Would you please add a test just to avoid regressions?

Done

@JSerFeng JSerFeng merged commit 8b89d53 into main Sep 12, 2024
@JSerFeng JSerFeng deleted the refactor/css-extract-additional-data branch September 12, 2024 13:55
@ahabhgk ahabhgk linked an issue Sep 13, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Vue style loss since Rspack v1.0.4

3 participants