(
{ stdin }: EsbuildBuild["initialOptions"],
args: { importer: string; namespace: string }
)
| 2903 | |
| 2904 | // esbuild names stdin as a file only where both resolveDir and sourcefile are set |
| 2905 | const isStdinOf = ( |
| 2906 | { stdin }: EsbuildBuild["initialOptions"], |
| 2907 | args: { importer: string; namespace: string } |
| 2908 | ): boolean => |
| 2909 | stdin !== undefined && |
| 2910 | (args.namespace === "" || |
| 2911 | (stdin.resolveDir !== undefined && |
| 2912 | stdin.sourcefile !== undefined && |
| 2913 | args.importer === resolve(stdin.resolveDir, stdin.sourcefile))) |
| 2914 | |
| 2915 | // what a production bundle's validators are read for, if the scan changes what the plugin writes |
| 2916 | const esbuildScanOf = async ( |
no test coverage detected