File tree Expand file tree Collapse file tree
preset-built-in/src/plugins Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,10 +142,11 @@ export default class Config {
142142 }
143143
144144 async requireConfigs ( configFiles : string [ ] ) : Promise < any [ ] > {
145- const models = await Promise . all ( configFiles . map ( f => {
145+ const models = await Promise . all ( configFiles . map ( ( f ) => {
146146 // 使用 pathToFileURL 确保在 Windows 下路径格式正确
147147 const fileUrl = pathToFileURL ( f ) . href ;
148- return import ( fileUrl ) ;
148+ // 避免命中模块缓存
149+ return import ( `${ fileUrl } ?t=${ Date . now ( ) } ` ) ;
149150 } ) ) ;
150151 return models . map ( m => compatESModuleRequire ( m ) ) ;
151152 }
Original file line number Diff line number Diff line change 77 "author" : " qlin" ,
88 "license" : " MIT" ,
99 "scripts" : {
10- "build " : " FES_ENV=prod fes build" ,
10+ "prod " : " FES_ENV=prod fes build" ,
1111 "dev" : " fes dev"
1212 },
1313 "dependencies" : {
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export default defineBuildConfig({
66 define : {
77 __DEV__ : false ,
88 } ,
9+ publicPath : './' ,
910 title : '海贼王' ,
1011 router : {
1112 mode : 'hash' ,
@@ -71,6 +72,8 @@ export default defineBuildConfig({
7172 plugins : [
7273 tailwindcss ( ) ,
7374 ] ,
75+ server : {
76+ } ,
7477 } ,
7578 // enums: {
7679 // status: [
Original file line number Diff line number Diff line change 77 "author" : " harrywan" ,
88 "license" : " MIT" ,
99 "scripts" : {
10- "build" : " fes build" ,
1110 "prod" : " FES_ENV=prod fes build" ,
1211 "analyze" : " ANALYZE=1 fes build" ,
1312 "dev" : " fes dev" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 77 "author" : " harrywan" ,
88 "license" : " MIT" ,
99 "scripts" : {
10- "build" : " fes build" ,
1110 "prod" : " FES_ENV=prod fes build" ,
1211 "analyze" : " ANALYZE=1 fes build" ,
1312 "dev" : " fes dev" ,
Original file line number Diff line number Diff line change @@ -11,5 +11,10 @@ export default defineConfig({
1111 onSuccess ( ) {
1212 copySync ( 'public' , 'dist' ) ;
1313 } ,
14+ outExtension ( { format } ) {
15+ return {
16+ js : format === 'esm' ? '.mjs' : '.cjs' ,
17+ } ;
18+ } ,
1419 format : [ 'esm' ] ,
1520} ) ;
Original file line number Diff line number Diff line change 66 "description" : " fes项目模版" ,
77 "author" : " harrywan" ,
88 "license" : " MIT" ,
9- "homepage" : " https://github.com/WeBankFinTech/fes.js#readme" ,
10- "bugs" : {
11- "url" : " https://github.com/WeBankFinTech/fes.js/issues"
12- },
13- "keywords" : [
14- " 管理端" ,
15- " fes" ,
16- " fast" ,
17- " easy" ,
18- " strong"
19- ],
20- "files" : [
21- " .eslintrc.js" ,
22- " .fes.js" ,
23- " .fes.prod.js" ,
24- " .gitignore" ,
25- " /config" ,
26- " /src" ,
27- " README.md" ,
28- " mock.js" ,
29- " package.json" ,
30- " tsconfig.json"
31- ],
329 "scripts" : {
33- "build" : " fes build" ,
3410 "prod" : " FES_ENV=prod fes build" ,
3511 "analyze" : " ANALYZE=1 fes build" ,
36- "dev" : " fes dev" ,
37- "test" : " fes test"
12+ "dev" : " fes dev"
3813 },
3914 "publishConfig" : {
4015 "access" : " public"
Original file line number Diff line number Diff line change 55 "private" : true ,
66 "description" : " fes项目模版" ,
77 "author" : " harrywan" ,
8- "license" : " MIT" ,
9- "homepage" : " https://github.com/WeBankFinTech/fes.js#readme" ,
10- "repository" : {
11- "type" : " git" ,
12- "url" : " git+https://github.com/WeBankFinTech/fes.js.git" ,
13- "directory" : " packages/plugin-qiankun"
14- },
15- "bugs" : {
16- "url" : " https://github.com/WeBankFinTech/fes.js/issues"
17- },
18- "keywords" : [
19- " 管理端" ,
20- " fes" ,
21- " fast" ,
22- " easy" ,
23- " strong"
24- ],
25- "files" : [
26- " .eslintrc.js" ,
27- " .fes.js" ,
28- " .fes.prod.js" ,
29- " .gitignore" ,
30- " /config" ,
31- " README.md" ,
32- " mock.js" ,
33- " package.json" ,
34- " tsconfig.json"
35- ],
368 "scripts" : {
37- "build" : " fes build" ,
389 "prod" : " FES_ENV=prod fes build" ,
3910 "analyze" : " ANALYZE=1 fes build" ,
40- "dev" : " fes dev" ,
41- "test" : " fes test"
11+ "dev" : " fes dev"
4212 },
4313 "publishConfig" : {
4414 "access" : " public"
Original file line number Diff line number Diff line change 66 "description" : " fes项目模版" ,
77 "author" : " harrywan" ,
88 "license" : " MIT" ,
9- "homepage" : " https://github.com/WeBankFinTech/fes.js#readme" ,
10- "bugs" : {
11- "url" : " https://github.com/WeBankFinTech/fes.js/issues"
12- },
13- "keywords" : [
14- " 管理端" ,
15- " fes" ,
16- " fast" ,
17- " easy" ,
18- " strong"
19- ],
20- "files" : [
21- " .eslintrc.js" ,
22- " .fes.js" ,
23- " .fes.prod.js" ,
24- " .gitignore" ,
25- " /config" ,
26- " /src" ,
27- " README.md" ,
28- " mock.js" ,
29- " package.json" ,
30- " tsconfig.json"
31- ],
329 "scripts" : {
33- "build" : " fes build" ,
3410 "prod" : " FES_ENV=prod fes build" ,
3511 "analyze" : " ANALYZE=1 fes build" ,
3612 "dev" : " fes dev" ,
You can’t perform that action at this time.
0 commit comments