We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71aff6e commit 03f24f2Copy full SHA for 03f24f2
packages/plugin-vue/src/index.ts
@@ -131,7 +131,7 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
131
block = descriptor.template!
132
} else if (query.type === 'style') {
133
block = descriptor.styles[query.index!]
134
- } else if (query.index) {
+ } else if (query.index != null) {
135
block = descriptor.customBlocks[query.index]
136
}
137
if (block) {
packages/plugin-vue/src/utils/query.ts
@@ -14,7 +14,7 @@ export function parseVueRequest(id: string) {
14
if (query.vue != null) {
15
query.vue = true
16
17
- if (query.index) {
+ if (query.index != null) {
18
query.index = Number(query.index)
19
20
return {
0 commit comments