Skip to content

Commit 067ab46

Browse files
committed
feat(vue): add swiper- custom elements
1 parent ea4f3dd commit 067ab46

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

create/templates/generate-vite-config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ module.exports = (options) => {
1212
const frameworkPlugin = {
1313
core: [`import framework7 from 'rollup-plugin-framework7';`, 'framework7({ emitCss: false }),'],
1414
react: [`import react from '@vitejs/plugin-react';`, 'react(),'],
15-
vue: [`import vue from '@vitejs/plugin-vue';`, 'vue(),'],
15+
vue: [
16+
`import vue from '@vitejs/plugin-vue';`,
17+
`vue({ template: { compilerOptions: { isCustomElement: (tag) => tag.includes('swiper-') } } }),,`,
18+
],
1619
svelte: [``, 'svelte(),'],
1720
};
1821

0 commit comments

Comments
 (0)