mint-ui icon indicating copy to clipboard operation
mint-ui copied to clipboard

[Feature Request] How to use babel-plugin-component in vue-cli3

Open wzc0x0 opened this issue 6 years ago • 6 comments

Existing Component

Component Name

babel-plugin-component

Description

The babel version is 7 in vue-cli3 , but your document is lower , please modify

wzc0x0 avatar Aug 28 '18 04:08 wzc0x0

module.exports = { presets: [ '@vue/app' ], plugins: [ ["component", { "libraryName": "mint-ui", "style": true }] ] }

wzc0x0 avatar Aug 28 '18 04:08 wzc0x0

thank you so much 😊

ZengTianShengZ avatar Sep 13 '18 05:09 ZengTianShengZ

babel.config.js配置如下 image

main.js image

然而这样却报错请问是什么原因 image 求高手帮忙解答!!!! 求高手帮忙解答!!!!

xian107 avatar Sep 19 '18 03:09 xian107

@xian107 配错了,很明显啊。参照 @wzc0x0

ZengTianShengZ avatar Sep 21 '18 02:09 ZengTianShengZ

@ZengTianShengZ 哪里配置错了

xian107 avatar Sep 21 '18 02:09 xian107

@xian107 .plugins[0][1] 必须是 object || false || undefined 你的配置是个array

shushillyA avatar Mar 05 '19 08:03 shushillyA