You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, I am trying to include an .mjs file from an external library (sqlite3-worker1-bundler-friendly.mjs in my case) in my outdir but that is not easily doable it appears.
The text was updated successfully, but these errors were encountered:
The reason that outExtension only accepts at most two values is that the mapping only remaps the output path that esbuild generates and esbuild's bundler currently only supports two types of output files (CSS and JavaScript). The outExtension map doesn't match on any input file extension because they have been processed away by the time the bundler is writing files out. Allowing more values in that map would be confusing because they wouldn't do anything, as esbuild wouldn't use them.
You haven't described enough about your problem for me to understand what you're trying to do. Here are the issue reporting instructions that you deleted when posting this issue:
When reporting a bug or requesting a feature, please do the following:
Describe what esbuild is doing incorrectly and what it should be doing instead.
Provide a way to reproduce the issue. The best way to do this is to demonstrate the issue on the playground (https://esbuild.github.io/try/) and paste the URL here. A link to a minimal code sample with instructions for how to reproduce the issue may also work. Issues without a way to reproduce them may be closed.
You have not provided a way to reproduce the issue, so it's not clear to me what's wrong or what should be done about it.
If an out extension is specified for .mjs files an error occurs:
outExtension: { '.mjs': '.mjs' }
[ERROR] Invalid output extension: ".mjs" (valid: .css, .js)
For example, I am trying to include an .mjs file from an external library (sqlite3-worker1-bundler-friendly.mjs in my case) in my
outdir
but that is not easily doable it appears.The text was updated successfully, but these errors were encountered: