@meteorjs/rspack 0.0.52 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rspack.config.js +7 -7
package/package.json
CHANGED
package/rspack.config.js
CHANGED
|
@@ -27,16 +27,16 @@ function safeRequire(moduleName) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
// Persistent filesystem cache strategy
|
|
30
|
-
function createCacheStrategy(mode) {
|
|
30
|
+
function createCacheStrategy(mode, side) {
|
|
31
31
|
return {
|
|
32
32
|
cache: true,
|
|
33
33
|
experiments: {
|
|
34
34
|
cache: {
|
|
35
|
-
version: `swc-${mode}`,
|
|
36
|
-
type:
|
|
35
|
+
version: `swc-${mode}${(side && `-${side}`) || ""}`,
|
|
36
|
+
type: "persistent",
|
|
37
37
|
storage: {
|
|
38
|
-
type:
|
|
39
|
-
directory:
|
|
38
|
+
type: "filesystem",
|
|
39
|
+
directory: `node_modules/.cache/rspack${(side && `/${side}`) || ""}`,
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
42
|
},
|
|
@@ -369,7 +369,7 @@ module.exports = async function (inMeteor = {}, argv = {}) {
|
|
|
369
369
|
},
|
|
370
370
|
},
|
|
371
371
|
}),
|
|
372
|
-
experiments: { css: true }
|
|
372
|
+
...merge(createCacheStrategy(mode, "client"), { experiments: { css: true } })
|
|
373
373
|
};
|
|
374
374
|
|
|
375
375
|
|
|
@@ -449,7 +449,7 @@ module.exports = async function (inMeteor = {}, argv = {}) {
|
|
|
449
449
|
watchOptions,
|
|
450
450
|
devtool: isDevEnvironment || isNative || isTest ? 'source-map' : 'hidden-source-map',
|
|
451
451
|
...((isDevEnvironment || (isTest && !isTestEager) || isNative) &&
|
|
452
|
-
createCacheStrategy(mode)),
|
|
452
|
+
createCacheStrategy(mode, "server")),
|
|
453
453
|
};
|
|
454
454
|
|
|
455
455
|
// Load and apply project-level overrides for the selected build
|