Skip to content

Commit 4e7f212

Browse files
committed
fix: missing dts on build issues
When components do not have any script tags on them, dts skips them on building and without warning. So, I've added back component naming on all components to make this work and uniform. I've submitted an issue to vite-plugin-dts about this.
1 parent 67e581d commit 4e7f212

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+424
-26
lines changed

apps/playground/index.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="">
33
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + Vue + TS</title>
4+
<meta charset="utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
7+
<link rel="icon" href="/favicon.ico" />
8+
<title>bootstrap-vue</title>
89
</head>
910
<body>
11+
<noscript>
12+
<strong>
13+
We're sorry but this doesn't work properly without JavaScript enabled. Please enable it to
14+
continue.
15+
</strong>
16+
</noscript>
1017
<div id="app"></div>
1118
<script type="module" src="/src/main.ts"></script>
1219
</body>

apps/playground/public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/bootstrap-vue-3/index.html

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/bootstrap-vue-3/src/components/BAccordion/BAccordion.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,7 @@ if (!props.free) {
3535

3636
<script lang="ts">
3737
export const injectionKey: InjectionKey<string> = Symbol()
38+
export default {
39+
name: 'BAccordion',
40+
}
3841
</script>

packages/bootstrap-vue-3/src/components/BAccordion/BAccordionItem.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,9 @@ const props = withDefaults(defineProps<BAccordionItemProps>(), {visible: false})
4747
const computedId = useId(props.id, 'accordion_item')
4848
const parent = inject(injectionKey, '')
4949
</script>
50+
51+
<script lang="ts">
52+
export default {
53+
name: 'BAccordionItem',
54+
}
55+
</script>

packages/bootstrap-vue-3/src/components/BAlert.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,9 @@ watch(countDown, (newValue) => {
125125
}
126126
})
127127
</script>
128+
129+
<script lang="ts">
130+
export default {
131+
name: 'BAlert',
132+
}
133+
</script>

0 commit comments

Comments
 (0)