File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @tanstack/vite-config ' : patch
3+ ---
4+
5+ fix: esm module 99 and cjs module 100
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export const tanstackViteConfig = (options: Options): UserConfig => {
5757 exclude : options . exclude ,
5858 tsconfigPath : options . tsconfigPath ,
5959 compilerOptions : {
60- module : 199 , // NodeNext
60+ module : 99 , // ESNext
6161 declarationMap : false ,
6262 } ,
6363 beforeWriteFile : ( filePath , content ) => {
@@ -83,7 +83,7 @@ export const tanstackViteConfig = (options: Options): UserConfig => {
8383 exclude : options . exclude ,
8484 tsconfigPath : options . tsconfigPath ,
8585 compilerOptions : {
86- module : 199 , // NodeNext
86+ module : 100 , // CommonJS - Node16
8787 declarationMap : false ,
8888 } ,
8989 beforeWriteFile : ( filePath , content ) => {
You can’t perform that action at this time.
0 commit comments