diff --git a/packages/runtime/plugin-testing/package.json b/packages/runtime/plugin-testing/package.json index 00b6cc68c45d..2b56bedbad5f 100644 --- a/packages/runtime/plugin-testing/package.json +++ b/packages/runtime/plugin-testing/package.json @@ -137,7 +137,7 @@ "@testing-library/react": "^13.4.0", "@types/testing-library__jest-dom": "^5.14.3", "babel-jest": "^29.5.0", - "enhanced-resolve": "5.12.0", + "enhanced-resolve": "5.17.1", "identity-obj-proxy": "^3.0.0", "jest": "^29", "jest-environment-jsdom": "^29.5.0", diff --git a/packages/solutions/module-tools/package.json b/packages/solutions/module-tools/package.json index ba8356191b47..11df2730b076 100644 --- a/packages/solutions/module-tools/package.json +++ b/packages/solutions/module-tools/package.json @@ -76,7 +76,7 @@ "@rollup/pluginutils": "4.1.1", "@swc/helpers": "0.5.13", "convert-source-map": "1.8.0", - "enhanced-resolve": "5.12.0", + "enhanced-resolve": "5.17.1", "esbuild": "0.19.2", "magic-string": "0.30.12", "postcss": "^8.4.35", diff --git a/packages/solutions/module-tools/src/builder/esbuild/resolve.ts b/packages/solutions/module-tools/src/builder/esbuild/resolve.ts index 6b67fe303870..9d7896cefcdb 100644 --- a/packages/solutions/module-tools/src/builder/esbuild/resolve.ts +++ b/packages/solutions/module-tools/src/builder/esbuild/resolve.ts @@ -29,7 +29,7 @@ function createEnhancedResolve(options: ResolverOptions): { } const resolveOptions = { aliasFields: options.platform === 'browser' ? ['browser'] : [], - FileSystem: new CachedInputFileSystem(fs, 4000), + FileSystem: new CachedInputFileSystem(fs as any, 4000), mainFields: options.mainFields, mainFiles: ['index'], extensions: options.extensions, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4e4aa30c5cc5..31d973e915b4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2598,8 +2598,8 @@ importers: specifier: ^29.5.0 version: 29.5.0(@babel/core@7.26.0) enhanced-resolve: - specifier: 5.12.0 - version: 5.12.0 + specifier: 5.17.1 + version: 5.17.1 identity-obj-proxy: specifier: ^3.0.0 version: 3.0.0 @@ -3588,8 +3588,8 @@ importers: specifier: 1.8.0 version: 1.8.0 enhanced-resolve: - specifier: 5.12.0 - version: 5.12.0 + specifier: 5.17.1 + version: 5.17.1 esbuild: specifier: 0.19.2 version: 0.19.2 @@ -4213,8 +4213,8 @@ importers: specifier: ^14 version: 14.18.35 enhanced-resolve: - specifier: 5.12.0 - version: 5.12.0 + specifier: 5.17.1 + version: 5.17.1 esbuild: specifier: 0.17.19 version: 0.17.19 @@ -4573,8 +4573,8 @@ importers: specifier: ^7.0.3 version: 7.0.5 enhanced-resolve: - specifier: 5.12.0 - version: 5.12.0 + specifier: 5.17.1 + version: 5.17.1 fs-extra: specifier: ^10.0.0 version: 10.1.0 @@ -38978,7 +38978,7 @@ snapshots: tsconfig-paths-webpack-plugin@4.1.0: dependencies: chalk: 4.1.2 - enhanced-resolve: 5.12.0 + enhanced-resolve: 5.17.1 tsconfig-paths: 4.2.0 tsconfig-paths@3.14.1: diff --git a/scripts/jest-config/package.json b/scripts/jest-config/package.json index b3ef9a86fb75..5aaea3d05ced 100644 --- a/scripts/jest-config/package.json +++ b/scripts/jest-config/package.json @@ -8,7 +8,7 @@ "@swc/jest": "^0.2.22", "@types/jest": "^29", "@types/node": "^14", - "enhanced-resolve": "5.12.0", + "enhanced-resolve": "5.17.1", "esbuild": "0.17.19", "jest": "^29" } diff --git a/tests/package.json b/tests/package.json index d15a2b529f30..6c1b71c0a282 100644 --- a/tests/package.json +++ b/tests/package.json @@ -27,7 +27,7 @@ "@types/jest": "^29", "@types/node": "^14", "cross-spawn": "^7.0.3", - "enhanced-resolve": "5.12.0", + "enhanced-resolve": "5.17.1", "fs-extra": "^10.0.0", "get-port": "5.0.0", "jest": "^29",