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.
The behavior changed and I think the new behavior is not correct.
I think useDefineForClassFields should be derived from tsconfig.compilerOptions.target and not from build.target.
related esbuild's behavior
Before esbuild 0.15.8, esbuild derived useDefineForClassFields from build.target and not from tsconfig.compilerOptions.target. But from 0.15.8, it seems the behavior changed.
When target = 'es2021' + tsconfig.compilerOptions.target = 'esnext', I think the new behavior is correct.
When target = 'esnext' + tsconfig.compilerOptions.target = 'es2021', I think the behavior might not be correct.