Skip to content

Commit

Permalink
fix: TS 5.5 compatibility (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jun 13, 2024
1 parent 80d34f4 commit e562620
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export const tanstackBuildConfig = (options) => {
exclude: options.exclude,
tsconfigPath: options.tsconfigPath,
compilerOptions: {
// @ts-expect-error
module: 'esnext',
module: 99, // ESNext
declarationMap: false,
},
beforeWriteFile: (filePath, content) => {
Expand All @@ -47,8 +46,7 @@ export const tanstackBuildConfig = (options) => {
exclude: options.exclude,
tsconfigPath: options.tsconfigPath,
compilerOptions: {
// @ts-expect-error
module: 'commonjs',
module: 1, // CommonJS
declarationMap: false,
},
beforeWriteFile: (filePath, content) => {
Expand Down

0 comments on commit e562620

Please sign in to comment.