Skip to content
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

escape special characters in mpa content #743

Conversation

thescientist13
Copy link
Member

@thescientist13 thescientist13 commented Sep 29, 2021

Related Issue

resolves #739 as identified in #611

With this change in place against #611, I have been able to run the build 20 times and never saw the issue. As soon as I removed it, it started happening again, pretty much every other run, so feeling good about this!

Summary of Changes

  1. Properly escape when using .replace in MPA plugin ( same issue as inline optimization string replace calls that have a lookahead Regex inside a template literal ($) in the replacement string breaks users pages #656 )

Opened #742 to find a more robust solution to the underlying footgun of this problem

TODOs

  1. Add some basic specs or otherwise some way to CYA

@thescientist13 thescientist13 added bug Something isn't working P0 Critical issue that should get addressed ASAP CLI SSR labels Sep 29, 2021
@thescientist13 thescientist13 changed the title escape special characters in mpa content with replace escape special characters in mpa content Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CLI P0 Critical issue that should get addressed ASAP SSR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

intermittent pre-rendered content duplication with Lit@2 and MPA mode
1 participant