dist_rewrite_imports.ts view source
(dist_dir?: string, log?: Logger | undefined): Promise<RewriteDistImportsResult> import {rewrite_dist_imports} from '@fuzdev/gro/dist_rewrite_imports.js'; Walks dist_dir and rewrites relative .ts import specifiers to .js in every
.js runtime file and .d.ts declaration file (whole-file) and .svelte file
(<script> blocks only). Source maps (*.map) are skipped.
dist_dir
the packaged output directory; defaults to dist
stringSVELTEKIT_DIST_DIRNAMElog?
Logger | undefinedreturns
Promise<RewriteDistImportsResult> counts of files scanned and rewritten