Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
024db790
Commit
024db790
authored
Jul 23, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
29aa26ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
vite.config.js
+2
-3
No files found.
vite.config.js
View file @
024db790
// vite.config.
js
// vite.config.
mjs(保持内容不变,仅改扩展名)
import
{
defineConfig
}
from
'vite'
;
import
{
defineConfig
}
from
'vite'
;
import
vue
from
'@vitejs/plugin-vue'
;
import
vue
from
'@vitejs/plugin-vue'
;
import
path
from
'path'
;
import
path
from
'path'
;
...
@@ -8,7 +8,6 @@ export default defineConfig({
...
@@ -8,7 +8,6 @@ export default defineConfig({
vue
({
vue
({
template
:
{
template
:
{
compilerOptions
:
{
compilerOptions
:
{
// 解决模板解析问题
isCustomElement
:
(
tag
)
=>
tag
.
startsWith
(
'uni-'
)
isCustomElement
:
(
tag
)
=>
tag
.
startsWith
(
'uni-'
)
}
}
}
}
...
@@ -31,7 +30,7 @@ export default defineConfig({
...
@@ -31,7 +30,7 @@ export default defineConfig({
},
},
build
:
{
build
:
{
commonjsOptions
:
{
commonjsOptions
:
{
transformMixedEsModules
:
true
// 解决 CommonJS/ESM 混合问题
transformMixedEsModules
:
true
}
}
}
}
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment