-
fix(misc): override `customConditions` when using an incompatible module resolution (#30477)
发布于
2025-03-25 15:17:17 +00:00 Current Behavior
In a few different places (Crystal plugins, executors, generators,
helpers) wherets-nodecompiler options are overridden and
moduleResolutionis being set to something other thannode16,
nodenext, orbundler, an error can occur if thecustomConditions
compiler option is being used.Expected Behavior
When overriding the
ts-nodecompiler options and changing forcing
moduleResolutionto have a value that's incompatible with
customConditions, the latter should be unset (set tonull) to avoid
errors.Related Issue(s)
Fixes #
(cherry picked from commit
5dbe040374)下载附件