From 3c77c9a2b6c5361d362f57ec1fd032bc6c6c466a Mon Sep 17 00:00:00 2001 From: winixt Date: Mon, 8 Sep 2025 17:25:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/builder-webpack/package.json | 2 +- .../examples/webpack-main/.fes.js | 8 --- .../examples/webpack-main/tsconfig.json | 61 ++++++++----------- packages/plugin-qiankun/package.json | 2 +- pnpm-lock.yaml | 41 +++---------- 5 files changed, 37 insertions(+), 77 deletions(-) diff --git a/packages/builder-webpack/package.json b/packages/builder-webpack/package.json index c96d6d43..7ca0788a 100644 --- a/packages/builder-webpack/package.json +++ b/packages/builder-webpack/package.json @@ -47,7 +47,7 @@ "@vue/babel-plugin-jsx": "^1.5.0", "ajv": "^8.12.0", "autoprefixer": "^10.4.14", - "babel-loader": "^9.1.2", + "babel-loader": "^10.0.0", "cli-highlight": "^2.1.11", "cliui": "^8.0.1", "connect-history-api-fallback": "^2.0.0", diff --git a/packages/plugin-qiankun/examples/webpack-main/.fes.js b/packages/plugin-qiankun/examples/webpack-main/.fes.js index 43c17eb3..ffde9c4d 100644 --- a/packages/plugin-qiankun/examples/webpack-main/.fes.js +++ b/packages/plugin-qiankun/examples/webpack-main/.fes.js @@ -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 { access: { roles: { diff --git a/packages/plugin-qiankun/examples/webpack-main/tsconfig.json b/packages/plugin-qiankun/examples/webpack-main/tsconfig.json index ea930c0b..f2b75459 100644 --- a/packages/plugin-qiankun/examples/webpack-main/tsconfig.json +++ b/packages/plugin-qiankun/examples/webpack-main/tsconfig.json @@ -1,37 +1,28 @@ { - "compilerOptions": { - "outDir": "build/dist", - "module": "esnext", - "target": "esnext", - "lib": ["esnext", "dom"], - "sourceMap": true, - "baseUrl": ".", - "jsx": "preserve", - "allowSyntheticDefaultImports": true, - "moduleResolution": "node", - "forceConsistentCasingInFileNames": true, - "noImplicitReturns": true, - "suppressImplicitAnyIndexErrors": true, - "noUnusedLocals": true, - "allowJs": true, - "skipLibCheck": true, - "experimentalDecorators": true, - "strict": true, - "paths": { - "@/*": ["./src/*"], - "@@/*": ["./src/.fes/*"] - } - }, - "include": [ - "src/**/*", - "tests/**/*", - "test/**/*", - "__test__/**/*", - "typings/**/*", - "config/**/*", - ".eslintrc.js", - ".stylelintrc.js", - ".prettierrc.js" - ], - "exclude": ["node_modules", "build", "dist", "scripts", "src/.fes/*", "webpack", "jest"] + "compilerOptions": { + "target": "esnext", + "jsx": "preserve", + "lib": ["esnext", "dom"], + "experimentalDecorators": true, + "baseUrl": ".", + "module": "esnext", + "moduleResolution": "node", + "paths": { + "@/*": ["./src/*"], + "@@/*": ["./src/.fes/*"] + }, + "allowJs": true, + "strict": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "outDir": "build/dist", + "sourceMap": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "skipLibCheck": true + }, + "include": [ + "src/**/*" + ] + } diff --git a/packages/plugin-qiankun/package.json b/packages/plugin-qiankun/package.json index ce36ea63..70a300b0 100644 --- a/packages/plugin-qiankun/package.json +++ b/packages/plugin-qiankun/package.json @@ -44,7 +44,7 @@ "@fesjs/utils": "workspace:*", "address": "^1.1.2", "lodash-es": "^4.17.21", - "qiankun": "^2.7.0", + "qiankun": "^2.10.16", "vite-plugin-qiankun": "^1.0.15" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 34539544..32875cad 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -208,8 +208,8 @@ importers: specifier: ^10.4.14 version: 10.4.21(postcss@8.5.6) babel-loader: - specifier: ^9.1.2 - version: 9.2.1(@babel/core@7.28.3)(webpack@5.101.3(@swc/core@1.13.5)(esbuild@0.25.9)) + specifier: ^10.0.0 + version: 10.0.0(@babel/core@7.28.3)(webpack@5.101.3(@swc/core@1.13.5)(esbuild@0.25.9)) cli-highlight: specifier: ^2.1.11 version: 2.1.11 @@ -555,7 +555,7 @@ importers: specifier: ^4.17.21 version: 4.17.21 qiankun: - specifier: ^2.7.0 + specifier: ^2.10.16 version: 2.10.16 vite-plugin-qiankun: specifier: ^1.0.15 @@ -3239,12 +3239,12 @@ packages: resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} engines: {node: '>= 0.4'} - babel-loader@9.2.1: - resolution: {integrity: sha512-fqe8naHt46e0yIdkjUZYqddSXfej3AHajX+CSO5X7oy0EmPc6o5Xh+RClNoHjnieWz9AW4kZxW9yyFMhVB1QLA==} - engines: {node: '>= 14.15.0'} + babel-loader@10.0.0: + resolution: {integrity: sha512-z8jt+EdS61AMw22nSfoNJAZ0vrtmhPRVi6ghL3rCeRZI8cdNYFiV5xeV3HbE7rlZZNmGH8BVccwWt8/ED0QOHA==} + engines: {node: ^18.20.0 || ^20.10.0 || >=22.0.0} peerDependencies: '@babel/core': ^7.12.0 - webpack: '>=5' + webpack: '>=5.61.0' babel-plugin-polyfill-corejs2@0.4.14: resolution: {integrity: sha512-Co2Y9wX854ts6U8gAAPXfn0GmAyctHuK8n0Yhfjd6t30g7yvKjspvvOo9yG+z52PZRgFErt7Ka2pYnXCjLKEpg==} @@ -3556,9 +3556,6 @@ packages: engines: {node: '>= 12'} hasBin: true - common-path-prefix@3.0.0: - resolution: {integrity: sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==} - commondir@1.0.1: resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} @@ -4538,10 +4535,6 @@ packages: resolution: {integrity: sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==} 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: resolution: {integrity: sha512-UC2I2+nx1ZuOBclWVNdcnbDR5dlrOdVb7xNjmT/lHE+LsgztWks3dG7boJ37yTS/venXw84B/mAW9uHVoC5QRg==} @@ -6320,10 +6313,6 @@ packages: resolution: {integrity: sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==} engines: {node: '>=6'} - pkg-dir@7.0.0: - resolution: {integrity: sha512-Ie9z/WINcxxLp27BKOCHGde4ITq9UklYKDzVo1nhk5sqGEXU3FpkwP5GM2voTGJkGd9B3Otl+Q4uwSOeSUtOBA==} - engines: {node: '>=14.16'} - pkg-types@1.3.1: resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==} @@ -10953,11 +10942,10 @@ snapshots: dependencies: 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: '@babel/core': 7.28.3 - find-cache-dir: 4.0.0 - schema-utils: 4.3.2 + find-up: 5.0.0 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): @@ -11309,8 +11297,6 @@ snapshots: - '@types/node' - typescript - common-path-prefix@3.0.0: {} - commondir@1.0.1: {} compare-func@2.0.0: @@ -12535,11 +12521,6 @@ snapshots: make-dir: 2.1.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: dependencies: findup-sync: 4.0.0 @@ -14454,10 +14435,6 @@ snapshots: dependencies: find-up: 3.0.0 - pkg-dir@7.0.0: - dependencies: - find-up: 6.3.0 - pkg-types@1.3.1: dependencies: confbox: 0.1.8