You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -217,6 +218,21 @@ async function prepareEsbuildScanner(
217
218
const{ plugins =[], ...esbuildOptions}=
218
219
config.optimizeDeps?.esbuildOptions??{}
219
220
221
+
// The plugin pipeline automatically loads the closest tsconfig.json.
222
+
// But esbuild doesn't support reading tsconfig.json if the plugin has resolved the path (https://github.com/evanw/esbuild/issues/2265).
223
+
// Due to syntax incompatibilities between the experimental decorators in TypeScript and TC39 decorators,
224
+
// we cannot simply set `"experimentalDecorators": true` or `false`. (https://github.com/vitejs/vite/pull/15206#discussion_r1417414715)
225
+
// Therefore, we use the closest tsconfig.json from the root to make it work in most cases.
0 commit comments