Skip to content

Commit

Permalink
fix: add custom element config (#2684)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored Nov 22, 2023
1 parent 7a14a0d commit 23fcdce
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/nutui-taro-demo/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
},
Expand Down

0 comments on commit 23fcdce

Please sign in to comment.