[rollupjs的刷头要求dom7_modular

问题描述 投票:0回答:1

[当我尝试在汇总中使用swiper时,我得到了:

(!) Missing global variable name
Use output.globals to specify browser global variable names 
corresponding to external modules
dom7/dist/dom7.modular (guessing 'dom7_modular')
created public/build/bundle.js in 1.6s

和在控制台中

main.js:8 Uncaught ReferenceError: dom7_modular is not defined
at main.js:8

对此有任何想法吗?

swiper rollupjs
1个回答
0
投票
resolve({ browser: true, dedupe: ['svelte'], extensions: ['.svelte','.js'] }),
我只向汇总配置中的扩展名添加了.js,就完成了
© www.soinside.com 2019 - 2024. All rights reserved.