Repository navigation
Conversation
… src needs an id or strategy #1444 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/flight-script-props-1444
branch
from
October 31, 2026 19:04
338b8f0 to
8356255
Compare
Merged
Contributor
Author
|
Landed in v0.0.152 as nik |
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.
Closes #1444.
Follow-up to #1442. The
next/scriptcomponent is recognised by its props, and a client component could have script-like props.srccounts only beside anidor astrategy(a baresrcis any embed or image component).childrenare read as inline code only with a call and a statement end or block ((and;or{) AND a JavaScript token (function,=>, an assignment,.createElement,window.,document.); the wordfunction,window.,=>,=or a?query=in prose is not enough alone.flight-script-narrow-1437.test.ts: parenthesised prose with anid, a baresrc(andsrcwithalt,width),srcbeside anidorstrategystill read, prose containing each JS token without both brackets, and the REAL fp2next buildpage (client components; build hashes replaced): n1 (id and parenthesised prose) and n2 are not loaders, but n3 (id and src) and n4 (id and function-like children) ARE script-shaped, so the page still detects the vendor; with n3 and n4's URLs replaced it does not. 38 tests.idwith asrcor code-like text cannot be told fromnext/script; anid-only inline snippet with nostrategyand no JS token (a bareloadTag('...');) is no longer read.Skill: no change needed.
nik