Skip to content

Commit

Permalink
fix: use node when using --import
Browse files Browse the repository at this point in the history
Fixes #2157
  • Loading branch information
remy committed Jan 16, 2024
1 parent 6fd8ce7 commit d3ee86e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/config/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ const defaults = {
watchOptions: {},
};

if ((process.env.NODE_OPTIONS || '').includes('--loader')) {
const nodeOptions = process.env.NODE_OPTIONS || ''; // ?

if (/--(loader|import)\b/.test(nodeOptions)) {
delete defaults.execMap.ts;
}

Expand Down

0 comments on commit d3ee86e

Please sign in to comment.