We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esbuild({ loaders: { '.web.ts': 'ts', '.ts': 'ts' } })
for const extensions = Object.keys(loaders); will result in :
const extensions = Object.keys(loaders);
[".js", ".jsx", ".ts", ".tsx", ".web.ts"]
because the loaders object is initialized which sets the properties order
loaders
const loaders = { ...defaultLoaders };
There is a workaround because properties can be configured twice, once with and once without . (key = key[0] === "." ? key : .${key};):
.
key = key[0] === "." ? key :
;
loaders: { ts: false, '.web.ts': 'ts', '.ts': 'ts' }
ts: false deletes in the object, then '.ts': 'ts' adds it back at the end.
ts: false
'.ts': 'ts'
However I feel like it should be working properly as resolving filename with multiple possible extensions can be a common case ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
for
const extensions = Object.keys(loaders);
will result in :because the
loaders
object is initialized which sets the properties orderThere is a workaround because properties can be configured twice, once with and once without
.
(key = key[0] === "." ? key :
.${key};
):ts: false
deletes in the object, then'.ts': 'ts'
adds it back at the end.However I feel like it should be working properly as resolving filename with multiple possible extensions can be a common case ?
The text was updated successfully, but these errors were encountered: