Skip to content

Commit

Permalink
fix(vite-vue3): update include regex to support production build (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
leedawn authored and sxzz committed Aug 30, 2023
1 parent b9fc5f7 commit 965907b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/vite-vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-vue3/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const config: UserConfig = {
directoryAsNamespace: true,
dts: true,
globalNamespaces: ['global'],
include: [/\.vue$/, /\.md$/],
include: [/\.vue($|\?)/, /\.md($|\?)/],
resolvers: [
(name) => {
if (name === 'MyCustom')
Expand Down

0 comments on commit 965907b

Please sign in to comment.