We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 569a0e6 commit 4afdd24Copy full SHA for 4afdd24
1 file changed
packages/cli/src/playground-html.ts
@@ -413,6 +413,8 @@ export const PLAYGROUND_HTML = `<!doctype html>
413
return ESM_SH_BASE_URL + normalized;
414
};
415
416
+ // Playground-only simplification: this regex-based rewrite can match
417
+ // comment/string literals. Production runtime paths must use lexer parsing.
418
const rewriteTranspiledImports = (code, planDetail) =>
419
String(code ?? "")
420
.replace(/\\bfrom\\s+["']([^"']+)["']/g, (full, specifier) =>
0 commit comments