(specifier: string)
| 1343 | const resolveEsbuildRuntime = (build: EsbuildPluginBuild) => { |
| 1344 | // esbuild loads stdin as written, which the runtime runs only where it defines no Type |
| 1345 | const stdinProblemOf = async (specifier: string) => { |
| 1346 | if (!resolvesToRuntime(specifier, opts)) return |
| 1347 | const stdin = stdinEntryOf(build.initialOptions)! |
| 1348 | const transformed = (await request( |
| 1349 | "transform", |
| 1350 | stdin.source, |
| 1351 | stdin.id |
| 1352 | )) as TransformedModule | undefined |
| 1353 | if (transformed?.code || transformed?.errors.length) |
| 1354 | return untransformedProblemOf(specifier, "<stdin>", "") |
| 1355 | } |
| 1356 | build.onResolve( |
| 1357 | { |
| 1358 | filter: |
no test coverage detected