mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-06 08:23:19 +08:00
Merge branch 'opt/npm-esm-class-hoist' into opt/npm-fs-extra-shim
This commit is contained in:
@@ -850,7 +850,6 @@ export function lowerBundledEsmInits(
|
||||
const RUN_ONCE_TAIL =
|
||||
"return function () { if (__scriptc_done) return; __scriptc_done = true; __scriptc_init(); }; })()";
|
||||
|
||||
|
||||
/* Classes an initializer defines into a module binding,
|
||||
*
|
||||
* var Multi;
|
||||
|
||||
@@ -24,7 +24,9 @@ export function npmCases(fixturesRoot: string): NpmCase[] {
|
||||
// consumers exercise the static rewrite's surface (lexer-visible
|
||||
// names the shipped .d.ts never declares, the __toESM interop
|
||||
// family), so they stay out of the flagless island lane by design.
|
||||
.filter((entry) => !/\/(246[5-9]|255[6-9]|256[0-7]|2571|258[0-8])-[^/]+\/main\.ts$/.test(entry))
|
||||
.filter(
|
||||
(entry) => !/\/(246[5-9]|255[6-9]|256[0-7]|2571|258[0-8])-[^/]+\/main\.ts$/.test(entry),
|
||||
)
|
||||
.map((entry) => ({
|
||||
name: entry.split("/").at(-2)!,
|
||||
entry,
|
||||
|
||||
Reference in New Issue
Block a user