mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-10-13 18:22:13 +08:00
chore: 优化部分问题
This commit is contained in:
parent
ed26dfb39b
commit
3c77c9a2b6
@ -47,7 +47,7 @@
|
|||||||
"@vue/babel-plugin-jsx": "^1.5.0",
|
"@vue/babel-plugin-jsx": "^1.5.0",
|
||||||
"ajv": "^8.12.0",
|
"ajv": "^8.12.0",
|
||||||
"autoprefixer": "^10.4.14",
|
"autoprefixer": "^10.4.14",
|
||||||
"babel-loader": "^9.1.2",
|
"babel-loader": "^10.0.0",
|
||||||
"cli-highlight": "^2.1.11",
|
"cli-highlight": "^2.1.11",
|
||||||
"cliui": "^8.0.1",
|
"cliui": "^8.0.1",
|
||||||
"connect-history-api-fallback": "^2.0.0",
|
"connect-history-api-fallback": "^2.0.0",
|
||||||
|
@ -1,11 +1,3 @@
|
|||||||
// .fes.js 只负责管理编译时配置,只能使用plain Object
|
|
||||||
import { createRequire } from 'node:module';
|
|
||||||
|
|
||||||
export function esmResolve(specifier) {
|
|
||||||
const esmRequire = createRequire(import.meta.url);
|
|
||||||
return esmRequire.resolve(specifier);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
access: {
|
access: {
|
||||||
roles: {
|
roles: {
|
||||||
|
@ -1,37 +1,28 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "build/dist",
|
"target": "esnext",
|
||||||
"module": "esnext",
|
"jsx": "preserve",
|
||||||
"target": "esnext",
|
"lib": ["esnext", "dom"],
|
||||||
"lib": ["esnext", "dom"],
|
"experimentalDecorators": true,
|
||||||
"sourceMap": true,
|
"baseUrl": ".",
|
||||||
"baseUrl": ".",
|
"module": "esnext",
|
||||||
"jsx": "preserve",
|
"moduleResolution": "node",
|
||||||
"allowSyntheticDefaultImports": true,
|
"paths": {
|
||||||
"moduleResolution": "node",
|
"@/*": ["./src/*"],
|
||||||
"forceConsistentCasingInFileNames": true,
|
"@@/*": ["./src/.fes/*"]
|
||||||
"noImplicitReturns": true,
|
},
|
||||||
"suppressImplicitAnyIndexErrors": true,
|
"allowJs": true,
|
||||||
"noUnusedLocals": true,
|
"strict": true,
|
||||||
"allowJs": true,
|
"noImplicitReturns": true,
|
||||||
"skipLibCheck": true,
|
"noUnusedLocals": true,
|
||||||
"experimentalDecorators": true,
|
"outDir": "build/dist",
|
||||||
"strict": true,
|
"sourceMap": true,
|
||||||
"paths": {
|
"allowSyntheticDefaultImports": true,
|
||||||
"@/*": ["./src/*"],
|
"forceConsistentCasingInFileNames": true,
|
||||||
"@@/*": ["./src/.fes/*"]
|
"skipLibCheck": true
|
||||||
}
|
},
|
||||||
},
|
"include": [
|
||||||
"include": [
|
"src/**/*"
|
||||||
"src/**/*",
|
]
|
||||||
"tests/**/*",
|
|
||||||
"test/**/*",
|
|
||||||
"__test__/**/*",
|
|
||||||
"typings/**/*",
|
|
||||||
"config/**/*",
|
|
||||||
".eslintrc.js",
|
|
||||||
".stylelintrc.js",
|
|
||||||
".prettierrc.js"
|
|
||||||
],
|
|
||||||
"exclude": ["node_modules", "build", "dist", "scripts", "src/.fes/*", "webpack", "jest"]
|
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
"@fesjs/utils": "workspace:*",
|
"@fesjs/utils": "workspace:*",
|
||||||
"address": "^1.1.2",
|
"address": "^1.1.2",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"qiankun": "^2.7.0",
|
"qiankun": "^2.10.16",
|
||||||
"vite-plugin-qiankun": "^1.0.15"
|
"vite-plugin-qiankun": "^1.0.15"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
41
pnpm-lock.yaml
generated
41
pnpm-lock.yaml
generated
@ -208,8 +208,8 @@ importers:
|
|||||||
specifier: ^10.4.14
|
specifier: ^10.4.14
|
||||||
version: 10.4.21(postcss@8.5.6)
|
version: 10.4.21(postcss@8.5.6)
|
||||||
babel-loader:
|
babel-loader:
|
||||||
specifier: ^9.1.2
|
specifier: ^10.0.0
|
||||||
version: 9.2.1(@babel/core@7.28.3)(webpack@5.101.3(@swc/core@1.13.5)(esbuild@0.25.9))
|
version: 10.0.0(@babel/core@7.28.3)(webpack@5.101.3(@swc/core@1.13.5)(esbuild@0.25.9))
|
||||||
cli-highlight:
|
cli-highlight:
|
||||||
specifier: ^2.1.11
|
specifier: ^2.1.11
|
||||||
version: 2.1.11
|
version: 2.1.11
|
||||||
@ -555,7 +555,7 @@ importers:
|
|||||||
specifier: ^4.17.21
|
specifier: ^4.17.21
|
||||||
version: 4.17.21
|
version: 4.17.21
|
||||||
qiankun:
|
qiankun:
|
||||||
specifier: ^2.7.0
|
specifier: ^2.10.16
|
||||||
version: 2.10.16
|
version: 2.10.16
|
||||||
vite-plugin-qiankun:
|
vite-plugin-qiankun:
|
||||||
specifier: ^1.0.15
|
specifier: ^1.0.15
|
||||||
@ -3239,12 +3239,12 @@ packages:
|
|||||||
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
|
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
babel-loader@9.2.1:
|
babel-loader@10.0.0:
|
||||||
resolution: {integrity: sha512-fqe8naHt46e0yIdkjUZYqddSXfej3AHajX+CSO5X7oy0EmPc6o5Xh+RClNoHjnieWz9AW4kZxW9yyFMhVB1QLA==}
|
resolution: {integrity: sha512-z8jt+EdS61AMw22nSfoNJAZ0vrtmhPRVi6ghL3rCeRZI8cdNYFiV5xeV3HbE7rlZZNmGH8BVccwWt8/ED0QOHA==}
|
||||||
engines: {node: '>= 14.15.0'}
|
engines: {node: ^18.20.0 || ^20.10.0 || >=22.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@babel/core': ^7.12.0
|
'@babel/core': ^7.12.0
|
||||||
webpack: '>=5'
|
webpack: '>=5.61.0'
|
||||||
|
|
||||||
babel-plugin-polyfill-corejs2@0.4.14:
|
babel-plugin-polyfill-corejs2@0.4.14:
|
||||||
resolution: {integrity: sha512-Co2Y9wX854ts6U8gAAPXfn0GmAyctHuK8n0Yhfjd6t30g7yvKjspvvOo9yG+z52PZRgFErt7Ka2pYnXCjLKEpg==}
|
resolution: {integrity: sha512-Co2Y9wX854ts6U8gAAPXfn0GmAyctHuK8n0Yhfjd6t30g7yvKjspvvOo9yG+z52PZRgFErt7Ka2pYnXCjLKEpg==}
|
||||||
@ -3556,9 +3556,6 @@ packages:
|
|||||||
engines: {node: '>= 12'}
|
engines: {node: '>= 12'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
common-path-prefix@3.0.0:
|
|
||||||
resolution: {integrity: sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==}
|
|
||||||
|
|
||||||
commondir@1.0.1:
|
commondir@1.0.1:
|
||||||
resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==}
|
resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==}
|
||||||
|
|
||||||
@ -4538,10 +4535,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==}
|
resolution: {integrity: sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==}
|
||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
|
|
||||||
find-cache-dir@4.0.0:
|
|
||||||
resolution: {integrity: sha512-9ZonPT4ZAK4a+1pUPVPZJapbi7O5qbbJPdYw/NOQWZZbVLdDTYM3A4R9z/DpAM08IDaFGsvPgiGZ82WEwUDWjg==}
|
|
||||||
engines: {node: '>=14.16'}
|
|
||||||
|
|
||||||
find-node-modules@2.1.3:
|
find-node-modules@2.1.3:
|
||||||
resolution: {integrity: sha512-UC2I2+nx1ZuOBclWVNdcnbDR5dlrOdVb7xNjmT/lHE+LsgztWks3dG7boJ37yTS/venXw84B/mAW9uHVoC5QRg==}
|
resolution: {integrity: sha512-UC2I2+nx1ZuOBclWVNdcnbDR5dlrOdVb7xNjmT/lHE+LsgztWks3dG7boJ37yTS/venXw84B/mAW9uHVoC5QRg==}
|
||||||
|
|
||||||
@ -6320,10 +6313,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==}
|
resolution: {integrity: sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==}
|
||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
|
|
||||||
pkg-dir@7.0.0:
|
|
||||||
resolution: {integrity: sha512-Ie9z/WINcxxLp27BKOCHGde4ITq9UklYKDzVo1nhk5sqGEXU3FpkwP5GM2voTGJkGd9B3Otl+Q4uwSOeSUtOBA==}
|
|
||||||
engines: {node: '>=14.16'}
|
|
||||||
|
|
||||||
pkg-types@1.3.1:
|
pkg-types@1.3.1:
|
||||||
resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}
|
resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}
|
||||||
|
|
||||||
@ -10953,11 +10942,10 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
possible-typed-array-names: 1.1.0
|
possible-typed-array-names: 1.1.0
|
||||||
|
|
||||||
babel-loader@9.2.1(@babel/core@7.28.3)(webpack@5.101.3(@swc/core@1.13.5)(esbuild@0.25.9)):
|
babel-loader@10.0.0(@babel/core@7.28.3)(webpack@5.101.3(@swc/core@1.13.5)(esbuild@0.25.9)):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/core': 7.28.3
|
'@babel/core': 7.28.3
|
||||||
find-cache-dir: 4.0.0
|
find-up: 5.0.0
|
||||||
schema-utils: 4.3.2
|
|
||||||
webpack: 5.101.3(@swc/core@1.13.5)(esbuild@0.25.9)
|
webpack: 5.101.3(@swc/core@1.13.5)(esbuild@0.25.9)
|
||||||
|
|
||||||
babel-plugin-polyfill-corejs2@0.4.14(@babel/core@7.28.3):
|
babel-plugin-polyfill-corejs2@0.4.14(@babel/core@7.28.3):
|
||||||
@ -11309,8 +11297,6 @@ snapshots:
|
|||||||
- '@types/node'
|
- '@types/node'
|
||||||
- typescript
|
- typescript
|
||||||
|
|
||||||
common-path-prefix@3.0.0: {}
|
|
||||||
|
|
||||||
commondir@1.0.1: {}
|
commondir@1.0.1: {}
|
||||||
|
|
||||||
compare-func@2.0.0:
|
compare-func@2.0.0:
|
||||||
@ -12535,11 +12521,6 @@ snapshots:
|
|||||||
make-dir: 2.1.0
|
make-dir: 2.1.0
|
||||||
pkg-dir: 3.0.0
|
pkg-dir: 3.0.0
|
||||||
|
|
||||||
find-cache-dir@4.0.0:
|
|
||||||
dependencies:
|
|
||||||
common-path-prefix: 3.0.0
|
|
||||||
pkg-dir: 7.0.0
|
|
||||||
|
|
||||||
find-node-modules@2.1.3:
|
find-node-modules@2.1.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
findup-sync: 4.0.0
|
findup-sync: 4.0.0
|
||||||
@ -14454,10 +14435,6 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
find-up: 3.0.0
|
find-up: 3.0.0
|
||||||
|
|
||||||
pkg-dir@7.0.0:
|
|
||||||
dependencies:
|
|
||||||
find-up: 6.3.0
|
|
||||||
|
|
||||||
pkg-types@1.3.1:
|
pkg-types@1.3.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
confbox: 0.1.8
|
confbox: 0.1.8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user