瀏覽代碼

perf(web): remove the module preload polyfill

The preload links stay; browsers that ignore them fetch vendor when index imports it.
imccyu 1 月之前
父節點
當前提交
ef249da2e9
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      apps/web/vite.config.ts

+ 1 - 0
apps/web/vite.config.ts

@@ -93,6 +93,7 @@ export default defineConfig({
   plugins: [rejectStandaloneServe(), react()],
   plugins: [rejectStandaloneServe(), react()],
   build: {
   build: {
     sourcemap: true,
     sourcemap: true,
+    modulePreload: { polyfill: false },
     rollupOptions: {
     rollupOptions: {
       output: {
       output: {
         // Output layout: the two main chunks stay at assets/ root; lazy
         // Output layout: the two main chunks stay at assets/ root; lazy