Skip to content

Commit e562620

Browse files
fix: TS 5.5 compatibility (#97)
1 parent 80d34f4 commit e562620

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/build/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export const tanstackBuildConfig = (options) => {
2727
exclude: options.exclude,
2828
tsconfigPath: options.tsconfigPath,
2929
compilerOptions: {
30-
// @ts-expect-error
31-
module: 'esnext',
30+
module: 99, // ESNext
3231
declarationMap: false,
3332
},
3433
beforeWriteFile: (filePath, content) => {
@@ -47,8 +46,7 @@ export const tanstackBuildConfig = (options) => {
4746
exclude: options.exclude,
4847
tsconfigPath: options.tsconfigPath,
4948
compilerOptions: {
50-
// @ts-expect-error
51-
module: 'commonjs',
49+
module: 1, // CommonJS
5250
declarationMap: false,
5351
},
5452
beforeWriteFile: (filePath, content) => {

0 commit comments

Comments
 (0)