mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-11 03:37:57 +00:00
fix(web): scope legacy browser target to production build only
The top-level esbuild.target also applied to dev/test transforms, which broke vitest suites that use top-level await (Chromium 83 / ES2020 does not support it). Only build.target and optimizeDeps.esbuildOptions.target need the legacy target; remove the global esbuild.target override.
This commit is contained in:
parent
e869a4d365
commit
81f7e3943f
1 changed files with 0 additions and 3 deletions
|
|
@ -15,9 +15,6 @@ export default defineConfig({
|
|||
target: LEGACY_BROWSER_TARGETS,
|
||||
cssTarget: LEGACY_BROWSER_TARGETS,
|
||||
},
|
||||
esbuild: {
|
||||
target: LEGACY_BROWSER_TARGETS,
|
||||
},
|
||||
optimizeDeps: {
|
||||
esbuildOptions: {
|
||||
target: LEGACY_BROWSER_TARGETS,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue