diff --git a/src/build/index.js b/src/build/index.js index 8946d155..719e7110 100644 --- a/src/build/index.js +++ b/src/build/index.js @@ -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) => { @@ -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) => {