Feature request
Import webpack.confg.ts with native TS support, without interpreters, by default.
What is motivation or use case for adding/changing the behavior?
Node 22.18+ can read TS just fine, actually it can do so better than webpack's interpreters in some case.
I tried using await import in the config and I bumped into this error:
ERROR: Top-level await is currently not supported with the "cjs" output format
which lead me to realized that I was still using the esbuild interpreter webpack found in node_modules rather than the native "strip ts types" Node.js feature.
How should this be implemented in your opinion?
If native TS support is detected, it should default to --disable-interpret.
Are you willing to work on this yourself?
no
Feature request
Import webpack.confg.ts with native TS support, without interpreters, by default.
What is motivation or use case for adding/changing the behavior?
Node 22.18+ can read TS just fine, actually it can do so better than webpack's interpreters in some case.
I tried using
await importin the config and I bumped into this error:which lead me to realized that I was still using the
esbuildinterpreter webpack found in node_modules rather than the native "strip ts types" Node.js feature.How should this be implemented in your opinion?
If native TS support is detected, it should default to
--disable-interpret.Are you willing to work on this yourself?
no