include .js or .mjs files to output

Hi o7

I'm trying to build a project where I have .mjs files that are used to initalize worker threads (to import
tsx/api/esm
before importing the actual worker file if I'm running project in dev mode, etc.). But swc seems to not include them to output directory. How can I include these files to output directory?
Was this page helpful?