File tree 1 file changed +1
-8
lines changed
packages/vite/src/node/plugins
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ export async function transformWithEsbuild(
81
81
// these fields would affect the compilation result
82
82
// https://esbuild.github.io/content-types/#tsconfig-json
83
83
const meaningfulFields : Array < keyof TSCompilerOptions > = [
84
+ 'target' ,
84
85
'jsxFactory' ,
85
86
'jsxFragmentFactory' ,
86
87
'useDefineForClassFields' ,
@@ -98,17 +99,9 @@ export async function transformWithEsbuild(
98
99
compilerOptionsForFile [ field ] = loadedCompilerOptions [ field ]
99
100
}
100
101
}
101
-
102
- // align with TypeScript 4.3
103
- // https://github.com/microsoft/TypeScript/pull/42663
104
- if ( loadedCompilerOptions . target ?. toLowerCase ( ) === 'esnext' ) {
105
- compilerOptionsForFile . useDefineForClassFields =
106
- loadedCompilerOptions . useDefineForClassFields ?? true
107
- }
108
102
}
109
103
110
104
tsconfigRaw = {
111
- ...tsconfigRaw ,
112
105
compilerOptions : {
113
106
...compilerOptionsForFile ,
114
107
...tsconfigRaw ?. compilerOptions
You can’t perform that action at this time.
0 commit comments