Skip to content

build: avoid syntax errors in generated JS file#32963

Merged
crisbeto merged 1 commit intoangular:mainfrom
crisbeto:multiline-escaped-css
Mar 24, 2026
Merged

build: avoid syntax errors in generated JS file#32963
crisbeto merged 1 commit intoangular:mainfrom
crisbeto:multiline-escaped-css

Conversation

@crisbeto
Copy link
Copy Markdown
Member

The web_test_suite rule generates a JS file on-the-fly which inserts CSS dependencies into the current page. Currently this file uses double quotes for the string which breaks if there are new lines in the file. This is currently blocking #32961 and #32962.

These changes switch to using multi-line strings to avoid the issue.

The `web_test_suite` rule generates a JS file on-the-fly which inserts CSS dependencies into the current page. Currently this file uses double quotes for the string which breaks if there are new lines in the file. This is currently blocking angular#32961 and angular#32962.

These changes switch to using multi-line strings to avoid the issue.
@crisbeto crisbeto requested a review from devversion March 23, 2026 08:05
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Mar 23, 2026
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Mar 23, 2026
@crisbeto crisbeto requested a review from andrewseguin March 23, 2026 16:10
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Mar 24, 2026
@crisbeto crisbeto merged commit 3bd561e into angular:main Mar 24, 2026
29 of 32 checks passed
@crisbeto
Copy link
Copy Markdown
Member Author

This PR was merged into the repository. The changes were merged into the following branches:

crisbeto added a commit that referenced this pull request Mar 24, 2026
The `web_test_suite` rule generates a JS file on-the-fly which inserts CSS dependencies into the current page. Currently this file uses double quotes for the string which breaks if there are new lines in the file. This is currently blocking #32961 and #32962.

These changes switch to using multi-line strings to avoid the issue.

(cherry picked from commit 3bd561e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants