( id: string, importer: string, // esbuild's, whose other namespaces hold modules with no file namespace = "file" )
| 722 | const loadedFiles = new Set<string>() |
| 723 | // e.g. a Svelte component's script, whose Types the build never sees |
| 724 | const untransformedProblemOf = ( |
| 725 | id: string, |
| 726 | importer: string, |
| 727 | // esbuild's, whose other namespaces hold modules with no file |
| 728 | namespace = "file" |
| 729 | ) => { |
| 730 | const file = importer.split("?")[0] |
| 731 | if (!resolvesToRuntime(id, opts) || reportedUntransformed.has(file)) return |
| 732 | const cwd = realCwd() |
| 733 | const problem = |
| 734 | namespace !== "file" || !isAbsolute(file) ? |
| 735 | writeFilelessImportMessage(importer, id) |
| 736 | : dependencyOf(file) ? undefined |
| 737 | : ( |
| 738 | !transformedFilter.include.test(importer) && |
| 739 | !transformedFilter.include.test(file) |
| 740 | ) ? |
| 741 | writeUntransformedImportMessage(file, id, cwd) |
| 742 | : meta.framework === "esbuild" && !loadedFiles.has(file) ? |
| 743 | writeLoadedFirstMessage(file, id, cwd) |
| 744 | : undefined |
| 745 | if (problem) reportedUntransformed.add(file) |
| 746 | return problem |
| 747 | } |
| 748 | const foldedHelpersById = new Map<string, string[]>() |
| 749 | // what a webpack or Rspack compilation read of the modules it built, which |
| 750 | // its loaders run again to write |
no test coverage detected