Skip to content

Commit e87dc93

Browse files
committed
fix: update windows-rpd tsconfig
1 parent 9b11825 commit e87dc93

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed
Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
{
2-
// Even though this module doesn't contain any TypeScript, it's still
2+
// Even though this Coder module doesn't contain any TypeScript, it's still
33
// incredibly helpful to include a custom tsconfig file here to ensure that
44
// the raw, unprocessed JavaScript we send doesn't use features that are too
55
// modern, to maximize browser compatibility
66
"extends": ["../../../../tsconfig.json"],
77
"compilerOptions": {
8-
"target": "ES6",
9-
"module": "ES6"
8+
// Not using ES6, because ES2018 gives some features that make testing a
9+
// little bit easier. That's still a large net that catches most of our
10+
// target audience, though
11+
"target": "ES2018",
12+
13+
// Have to still use ESNext module for the testing setup; otherwise the
14+
// tests will break from the `import.meta` references.
15+
"module": "ESNext",
16+
17+
"paths": {
18+
// 2025-04-16 - This seems to be a Bun-specific bug, where extending the
19+
// tsconfig file causes all paths from the base tsconfig file to be
20+
// forgotten. Node and the VSCode IDE recognize the path no problem, but
21+
// without this, the tests will fail.
22+
"~test": ["../../../../test/test.ts"]
23+
}
1024
}
1125
}

0 commit comments

Comments
 (0)