第六十二章-Vite配置-optimizeDeps.exclude

1.说明

Vite配置-optimizedeps-exclude说明

原文:

类型: string[]

在预构建中强制排除的依赖项。

2.配置Vite

vite.config.ts

// ...

export default ({ command, mode }: ConfigEnv): UserConfig => {
  // ...

  return {
    // ...
    optimizeDeps: {
      // ...
      exclude: ['vue-demi'],
    },
  };
};

上一章

第六十一章-Vite配置-optimizeDeps.include

下一章

第六十三章-http-server

# vben  vite 

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×