Meta tags:
description= Command serve Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was @angular/build 22.0.9 passes the isolated source-map removal test. @angular/cli remain...;
Headings (most frequently used words):
navigation, description, metadata, issue, footer, this, was, angular, build, source, map, comment, scanner, corrupts, valid, js, containing, regex, literal, 34590, menu, repository, activity, actions, command, is, regression, the, previous, version, in, which, bug, not, present, minimal, reproduction, exception, or, error, your, environment, anything, else, relevant, temporary, workaround, applied, related, and, fix, assignees, labels, type, projects, milestone, relationships, development,
Text of the page (most frequently used words):
the (41), #angular (38), build (27), source (20), this (19), and (18), issue (15), github (14), map (11), const (11), comment (10), vite (10), #scanner (9), javascript (9), cli (9), not (8), 2026 (8), for (7), fix (7), when (7), input (7), valid (7), that (6), commit (6), compiler (6), output (6), code (6), you (5), security (5), copilot (5), sign (5), added (5), into (5), stripping (5), text (5), literal (5), sourcemappingurl (5), was (5), node (5), your (5), invalid (5), with (5), actual (5), require (5), actions (4), will (4), close (4), once (4), merged (4), main (4), branch (4), use (4), oxc (4), parser (4), fallback (4), oct (4), inside (4), corrupts (4), reproduction (4), script (4), remain (4), unchanged (4), analysis (4), string (4), path (4), containing (4), support (4), navigation (3), development (3), needstriage (3), milestone (3), projects (3), area (3), nov (3), alan (3), agius4 (3), closed (3), literals (3), regular (3), expression (3), removal (3), package (3), without (3), optimization (3), maps (3), enabled (3), core (3), version (3), server (3), error (3), import (3), content (3), using (3), fails (3), assertion (3), removesourcemappingurl (3), assert (3), new (3), copy (3), link (3), 34590 (3), regex (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), reload (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), all (3), can (2), community (2), status (2), footer (2), app (2), pull (2), requests (2), type (2), labels (2), one (2), metadata (2), join (2), references (2), 8984b4a (2), 631ac8a (2), 575c988 (2), a2e3e69 (2), robot (2), template (2), its (2), pinned (2), instead (2), however (2), minimal (2), directly (2), remains (2), workaround (2), used (2), environment (2), internal (2), are (2), jsx (2), plugin (2), standalone (2), parsing (2), truncated (2), pattern (2), expected (2), passes (2), packageroot (2), calls (2), repro (2), cjs (2), behavior (2), reports (2), application (2), present (2), serve (2), description (2), previous (2), work (2), insights (2), 196 (2), repository (2), signed (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), learn (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, contact, docs, privacy, terms, inc, open, branches, none, yet, relationships, due, date, assigned, assignees, already, have, account, conversation, free, completed, commits, reference, clydin, activity, earlier, concerned, introduced, replacement, report, concerns, handling, 33545, prevent, nested, comments, 33544, related, uses, demonstrates, corruption, invoking, downgraded, currently, exactly, temporary, applied, anything, else, relevant, original, failing, typescript, windows, current, pin, configuration, resolved, failed, parse, because, contains, syntax, make, sure, name, file, tsx, extension, equality, also, produces, syntaxerror, unexpected, token, exception, quoted, preserved, should, equal, log, console, utils, src, json, resolve, dirname, strict, intentionally, utility, isolate, defect, complete, installed, save, following, run, desired, keep, both, subsequently, preserves, including, strings, reproduced, published, authentication, libraries, itself, appears, interpret, double, quote, beginning, then, loses, track, boundaries, removes, like, sequence, failure, traced, memory, function, before, handing, generated, during, succeeds, built, worked, served, separately, local, static, isolated, test, framework, packages, which, bug, yes, regression, command, body, opened, monyk99, more, items, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, what, next, partners, about, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, add, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, environments, codespaces, enforcement, automation, ship, coding, agent, tasks, automated, hosting, review, collaboration, platform, menu, skip,
Text of the page (random words):
angular build source map comment scanner corrupts valid js containing a regex literal issue 34590 angular angular cli github skip to content navigation menu sign in products platform github repository hosting code review and collaboration copilot ai coding agent for tasks projects and automated work build ship actions ci cd and automation code quality quality analysis fixes and enforcement codespaces cloud development environments secure code security vulnerability detection and remediation secret protection secret scanning and leak prevention all features developers learn documentation training certifications build build with copilot customize copilot integrations explore trending repos github sponsors developer articles changelog changelog your source for the latest features improvements and fixes across github products all in one place businesses by stage enterprises team startups nonprofits by industry healthcare financial services manufacturing government see all industries evaluate github why github customer stories business insights trust center add ons github advanced security enterprise grade code security copilot for business enterprise grade ai features premium support enterprise grade 24 7 support resources learn connect documentation resource center blog events webinars community forum customer stories integrations support customer support training github status company about partners changelog github universe github universe the event for developers by developers talks workshops and what s next for github pricing search sign in sign up appearance settings you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message angular angular cli repository navigation code issues 196 196 pull requests 19 19 actions security and quality 8 8 insights more items angular build source map comment scanner corrupts valid js containing a regex literal 34590 new issue copy link new issue copy link closed closed angular build source map comment scanner corrupts valid js containing a regex literal 34590 copy link labels area angular build milestone needstriage description monyk99 opened on oct 29 2026 issue body actions command serve is this a regression yes this behavior used to work in the previous version the previous version in which this bug was not present was angular build 22 0 9 passes the isolated source map removal test angular cli remains at 22 2 4 angular framework packages remain at 22 2 3 description with angular build 22 2 4 ng serve fails when optimization and script source maps are enabled vite reports invalid javascript during import analysis however ng build succeeds and the built application worked when served separately using a local static server the failure was traced to removesourcemappingurl in angular build the development server memory plugin calls this function before handing generated javascript to vite when a source map is present the scanner appears to interpret a double quote inside a valid regular expression literal as the beginning of a string it then loses track of the actual string boundaries and removes a sourcemappingurl like sequence that is string content not a javascript comment this can be reproduced directly using the published build package without application code authentication libraries or vite itself expected source map comment removal preserves valid javascript including regular expression literals and strings containing sourcemappingurl text actual valid javascript is truncated into invalid javascript vite subsequently reports the parsing error the desired behavior is to keep both optimization and script source maps enabled minimal reproduction with angular build 22 2 4 installed save the following as repro cjs and run node repro cjs this intentionally calls the internal utility to isolate the defect it is a standalone scanner reproduction not a complete angular app const assert require node assert strict const path require node path const vm require node vm const packageroot path dirname require resolve angular build package json const removesourcemappingurl require path join packageroot src utils source map js const input const pattern const text sourcemappingurl not a comment new vm script input the input is valid javascript const output removesourcemappingurl input console log output assert equal output input input without an actual source map comment should remain unchanged expected the assertion passes and the input is preserved unchanged actual the assertion fails the output is const pattern const text the output is invalid javascript the sourcemappingurl text was inside a quoted string not an actual comment exception or error vite internal server error failed to parse source for import analysis because the content contains invalid js syntax if you are using jsx make sure to name the file with the jsx or tsx extension plugin vite import analysis the standalone reproduction fails its equality assertion parsing the truncated output also produces syntaxerror invalid or unexpected token your environment original failing environment angular build 22 2 4 angular cli 22 2 4 angular core 22 2 3 angular compiler 22 2 3 angular compiler cli 22 2 3 typescript 6 0 3 vite 8 3 0 node js 24 20 0 os windows current version pin configuration angular build 22 0 9 angular cli 22 2 4 unchanged angular core compiler compiler cli 22 2 3 unchanged vite resolved by angular build 7 3 6 anything else relevant temporary workaround applied pinned angular build to exactly 22 0 9 instead of 22 2 4 angular build 22 0 9 this is the workaround currently used not a fix to the scanner angular cli remains at 22 2 4 it was not downgraded angular core compiler compiler cli remain at 22 2 3 optimization and script source maps remain enabled the pinned build package uses vite 7 3 6 instead of 8 3 0 however the minimal reproduction demonstrates the corruption directly in angular build s source map scanner without invoking vite related issue and fix issue 33544 source map comment removal corrupts javascript inside template literals pr 33545 prevent stripping nested sourcemappingurl comments the earlier issue concerned source map text inside template literals its fix introduced the replacement scanner this report concerns regular expression literal handling in that scanner activity angular robot added area angular build on oct 29 2026 angular robot added this to the needstriage milestone on oct 29 2026 clydin added 2 commits that reference this issue on oct 30 2026 fix angular build use oxc parser fallback when stripping source ma this issue will close once commit a2e3e69 is merged into the main branch a2e3e69 fix angular build use oxc parser fallback when stripping source ma this issue will close once commit 575c988 is merged into the main branch 575c988 alan agius4 added a commit that references this issue on nov 3 2026 fix angular build use oxc parser fallback when stripping source ma this issue will close once commit 631ac8a is merged into the main branch 631ac8a alan agius4 closed this as completed on nov 3 2026 alan agius4 added a commit that references this issue on nov 3 2026 fix angular build use oxc parser fallback when stripping source ma this issue will close once commit 8984b4a is merged into the main branch 8984b4a sign up for free to join this conversation on github already have an account sign in to comment metadata metadata assignees no one assigned labels area angular build type no type projects no projects milestone needstriage no due date relationships none yet development no branches or pull requests issue actions open in github copilot app footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|