Skip to content

fix: update html-rspack-plugin to 6.1.2 to fix template parsing#5191

Merged
chenjiahan merged 2 commits intomainfrom
template_parsing_0507
May 8, 2025
Merged

fix: update html-rspack-plugin to 6.1.2 to fix template parsing#5191
chenjiahan merged 2 commits intomainfrom
template_parsing_0507

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

@chenjiahan chenjiahan commented May 7, 2025

Summary

Since Rspack 1.3.9, the with statement cannot be used in SWC's strict mode. When the HTML template contains code like import.meta.*, the SWC parser will report an error.

image

This PR updates html-rspack-plugin to 6.1.1 to fix the template parsing error.

Related Links

Checklist

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

@netlify
Copy link
Copy Markdown

netlify bot commented May 7, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 98b0033
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/681c1a806f9c720008329be2
😎 Deploy Preview https://deploy-preview-5191--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 51 (🔴 down 35 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

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

@chenjiahan chenjiahan changed the title fix: update html-rspack-plugin to 6.1.1 to fix template parsing fix: update html-rspack-plugin to 6.1.2 to fix template parsing May 8, 2025
@chenjiahan chenjiahan merged commit 1bf44be into main May 8, 2025
12 checks passed
@chenjiahan chenjiahan deleted the template_parsing_0507 branch May 8, 2025 02:51
@chenjiahan chenjiahan mentioned this pull request May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant