Skip to content

Commit 42e7241

Browse files
committed
refactor: Replace tsx with tsimp
This is to evaluate whether flaky windows tests would stabilize with tsimp #709
1 parent 156a02c commit 42e7241

File tree

4 files changed

+100
-488
lines changed

4 files changed

+100
-488
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,4 @@ dist
110110
# Temporary files
111111
/tmp/
112112
/test/tmp/
113+
.tsimp/

ava.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
let tsimp = "tsimp/import";
2+
// In Node versions prior to v20.6, we must use "tsimp/loader"
3+
// tsimp = "tsimp/loader"" // TODO
14
const nodeArguments = [
2-
"--import=tsx/esm",
5+
`--import=${tsimp}`,
36
"--no-warnings=ExperimentalWarning",
47
];
58

0 commit comments

Comments
 (0)