Skip to content

Commit f95ab11

Browse files
committed
rspack 1.4.8
1 parent 30aafa1 commit f95ab11

File tree

6 files changed

+121
-80
lines changed

6 files changed

+121
-80
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"@next/third-parties": "workspace:*",
117117
"@opentelemetry/api": "1.4.1",
118118
"@picocss/pico": "1.5.10",
119-
"@rspack/core": "npm:@rspack-canary/core@1.4.7-canary-d1d58750-20250714093351",
119+
"@rspack/core": "1.4.8",
120120
"@rspack/plugin-react-refresh": "1.2.0",
121121
"@slack/web-api": "7.9.1",
122122
"@swc/cli": "0.1.55",

packages/next-rspack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"types": "index.d.ts",
99
"dependencies": {
10-
"@rspack/core": "npm:@rspack-canary/core@1.4.7-canary-d1d58750-20250714093351",
10+
"@rspack/core": "1.4.8",
1111
"@rspack/plugin-react-refresh": "1.2.0",
1212
"react-refresh": "0.12.0"
1313
}

packages/next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
"@next/swc": "15.4.0-canary.129",
171171
"@opentelemetry/api": "1.6.0",
172172
"@playwright/test": "1.51.1",
173-
"@rspack/core": "npm:@rspack-canary/core@1.4.7-canary-d1d58750-20250714093351",
173+
"@rspack/core": "1.4.8",
174174
"@storybook/addon-a11y": "8.6.0",
175175
"@storybook/addon-essentials": "8.6.0",
176176
"@storybook/addon-interactions": "8.6.0",

packages/next/src/build/webpack-config.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,13 +2216,6 @@ export default async function getBaseWebpackConfig(
22162216
: undefined,
22172217
}
22182218

2219-
if (isRspack) {
2220-
// @ts-ignore
2221-
webpack5Config.experiments.cache = {
2222-
type: 'persistent',
2223-
}
2224-
}
2225-
22262219
webpack5Config.module!.parser = {
22272220
javascript: {
22282221
url: 'relative',
@@ -2357,6 +2350,18 @@ export default async function getBaseWebpackConfig(
23572350

23582351
webpack5Config.cache = cache
23592352

2353+
if (isRspack) {
2354+
// @ts-ignore
2355+
webpack5Config.experiments.cache = {
2356+
type: 'persistent',
2357+
buildDependencies: cache.buildDependencies.config,
2358+
storage: {
2359+
type: 'filesystem',
2360+
directory: cache.cacheDirectory,
2361+
},
2362+
}
2363+
}
2364+
23602365
if (process.env.NEXT_WEBPACK_LOGGING) {
23612366
const infra = process.env.NEXT_WEBPACK_LOGGING.includes('infrastructure')
23622367
const profileClient =

0 commit comments

Comments
 (0)