From ad7bba9a874133984ba8398611b9c035fd2f14ff Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 30 Jun 2022 18:13:00 +0200 Subject: [PATCH] feat(polyfills): idea ; use polyfill above 66 because without legacy it fails < 60 --- vite.config.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index da4c34eda64..e2e46d4cfee 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -20,7 +20,7 @@ if (shouldBuildLegacy()) { 'defaults', 'Chrome >= 50', 'Edge >= 14', - 'Firefox >= 50', + 'Firefox >= 66', // import not supported between [60,66] 'Opera >= 40', 'Safari >= 8', 'iOS >= 8', @@ -44,8 +44,7 @@ if (shouldBuildLegacy()) { export default defineConfig({ resolve: { alias: { '@utils': '/shared/utils.ts' } }, build: { - sourcemap: true, - polyfillDynamicImport: true + sourcemap: true }, plugins });