diff --git a/examples/vite-vue3/package.json b/examples/vite-vue3/package.json index 81a4a4a0..40ac9bf8 100644 --- a/examples/vite-vue3/package.json +++ b/examples/vite-vue3/package.json @@ -4,7 +4,8 @@ "private": true, "scripts": { "dev": "cross-env DEBUG=unplugin-vue-components:* vite", - "build": "cross-env DEBUG=unplugin-vue-components:* vite build" + "build": "cross-env DEBUG=unplugin-vue-components:* vite build", + "preview": "cross-env DEBUG=unplugin-vue-components:* vite preview" }, "dependencies": { "vant": "^4.6.2" diff --git a/examples/vite-vue3/vite.config.ts b/examples/vite-vue3/vite.config.ts index 4b7a1d7c..9e676841 100644 --- a/examples/vite-vue3/vite.config.ts +++ b/examples/vite-vue3/vite.config.ts @@ -26,7 +26,7 @@ const config: UserConfig = { directoryAsNamespace: true, dts: true, globalNamespaces: ['global'], - include: [/\.vue$/, /\.md$/], + include: [/\.vue($|\?)/, /\.md($|\?)/], resolvers: [ (name) => { if (name === 'MyCustom')