Skip to content

Commit

Permalink
vue: Mark components with dashes as custom elements
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed May 14, 2022
1 parent ec31d7e commit e7b5152
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vue/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ const resolvePath = (str: string) => resolve(__dirname, str);

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
plugins: [
vue({
template: {
compilerOptions: { isCustomElement: (tag) => tag.includes('-') },
},
}),
],
build: {
lib: {
entry: resolvePath('src/lib/index.ts'),
Expand Down

1 comment on commit e7b5152

@vercel
Copy link

@vercel vercel bot commented on e7b5152 May 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

giscus-component – ./

giscus-component-git-main-giscus.vercel.app
giscus-component.vercel.app
giscus-component-giscus.vercel.app

Please sign in to comment.