Skip to content

Commit

Permalink
fix: site isCustomElement config
Browse files Browse the repository at this point in the history
  • Loading branch information
PengYYYYY committed Jun 13, 2022
1 parent d7d0390 commit f7e801f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions site/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ const testConfig = {
},
};

const isCustomElement = (tag) => tag.startsWith('td-') || tag.startsWith('tdesign-theme');

export default ({ mode }) => {
return defineConfig({
base: publicPathMap[mode],
Expand Down Expand Up @@ -60,12 +62,12 @@ export default ({ mode }) => {
ssr: false,
template: {
compilerOptions: {
isCustomElement: (tag) => tag.startsWith('td-'),
isCustomElement,
},
},
}),
vueJsx({
isCustomElement: (tag) => tag.startsWith('td-'),
isCustomElement,
}),
tDocPlugin(),
VitePWA(pwaConfig),
Expand Down

0 comments on commit f7e801f

Please sign in to comment.