-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.0.1
Environment
vue 3.3.4 、vite 4.4.9
Reproduction link
Steps to reproduce
##通过rollup-plugin-external-globals 来排除依赖
export default defineConfig({
build: {
rollupOptions: {
plugins: [externalGlobals({ lodash: "_" })],
},
},
});
<script src="https://unpkg.com/lodash@4.17.21/lodash.min.js"></script>
What is expected?
我希望lodash 能让我通过cdn引入 微前端中子应用无需打包进去
What is actually happening?
通过rollup-plugin-visualizer依赖分析lodash 还是被打包进去