Skip to content

Commit ef14178

Browse files
committed
fix warning with webcomponents
1 parent 120cc27 commit ef14178

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

vite.config.js

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ import vue from '@vitejs/plugin-vue';
22
import vueJsx from '@vitejs/plugin-vue-jsx';
33

44
export default {
5-
plugins: [vue(), vueJsx()],
5+
plugins: [
6+
vue({
7+
template: {
8+
compilerOptions: {
9+
isCustomElement: tag => /^x-/.test(tag)
10+
}
11+
}
12+
}),
13+
vueJsx()
14+
],
615
base: './',
7-
vueCompilerOptions: {
8-
isCustomElement: tag => /^x-/.test(tag)
9-
}
1016
};

0 commit comments

Comments
 (0)