Suggestion
When using a file in TypeScript, new URL("./file.png", import.meta.url), TypeScript should copy this file to the output folder, like what it did for importing JSON files.
π Search Terms
new URL import meta url
β
Viability Checklist
My suggestion meets these guidelines:
π Motivating Example
This is useful when writing a library with assets referenced otherwise we need extra steps to copy those files.
Suggestion
When using a file in TypeScript,
new URL("./file.png", import.meta.url), TypeScript should copy this file to the output folder, like what it did for importingJSONfiles.π Search Terms
new URL import meta url
β Viability Checklist
My suggestion meets these guidelines:
π Motivating Example
This is useful when writing a library with assets referenced otherwise we need extra steps to copy those files.