From 23fcdce3b1a79e446e9b49be195b049aa5bc6116 Mon Sep 17 00:00:00 2001 From: Eiinu Date: Wed, 22 Nov 2023 18:04:24 +0800 Subject: [PATCH] fix: add custom element config (#2684) --- packages/nutui-taro-demo/config/index.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/nutui-taro-demo/config/index.js b/packages/nutui-taro-demo/config/index.js index 4ad40e0fd0..95846cb3fd 100644 --- a/packages/nutui-taro-demo/config/index.js +++ b/packages/nutui-taro-demo/config/index.js @@ -11,7 +11,20 @@ const config = { }, sourceRoot: 'src', outputRoot: 'dist', - plugins: ['@tarojs/plugin-html'], + plugins: [ + '@tarojs/plugin-html', + [ + '@tarojs/plugin-framework-vue3', + { + vueLoaderOption: { + compilerOptions: { + isCustomElement: (tag) => tag.includes('taro-scroll-view-core'), + whitespace: 'preserve' + } + } + } + ] + ], alias: { '@/packages': path.resolve(__dirname, '../../../src/packages') },