Skip to content

Commit

Permalink
docs: fix build issue in vite config (#316)
Browse files Browse the repository at this point in the history
Updated Vite configuration to properly handle .vue files from @nolebase/ui.
Resolves "Unknown file extension '.vue'" error during Vitepress build process.
  • Loading branch information
Alice39s authored Oct 9, 2024
1 parent 8007e68 commit b04dabe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,15 @@ export default defineConfig(() => {
optimizeDeps: {
exclude: [ // [!code ++]
'@nolebase/vitepress-plugin-enhanced-readabilities/client', // [!code ++]
'vitepress' // [!code ++]
'vitepress', // [!code ++]
'@nolebase/ui', // [!code ++]
], // [!code ++]
},
ssr: { // [!code ++]
noExternal: [ // [!code ++]
// If there are other packages that need to be processed by Vite, you can add them here. // [!code hl]
'@nolebase/vitepress-plugin-enhanced-readabilities', // [!code ++]
'@nolebase/ui', // [!code ++]
], // [!code ++]
}, // [!code ++]
plugins: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,15 @@ export default defineConfig({
optimizeDeps: {
exclude: [ // [!code ++]
'@nolebase/vitepress-plugin-enhanced-readabilities/client', // [!code ++]
'vitepress', // [!code ++]
'@nolebase/ui', // [!code ++]
], // [!code ++]
},
ssr: { // [!code ++]
noExternal: [ // [!code ++]
// 如果还有别的依赖需要添加的话,并排填写和配置到这里即可 // [!code hl]
'@nolebase/vitepress-plugin-enhanced-readabilities', // [!code ++]
'@nolebase/ui', // [!code ++]
], // [!code ++]
}, // [!code ++]
}, // [!code ++]
Expand Down

0 comments on commit b04dabe

Please sign in to comment.