@meteorjs/rspack 0.0.42 → 0.0.43
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 +13 -1
package/package.json
CHANGED
package/rspack.config.js
CHANGED
|
@@ -71,8 +71,20 @@ function createSwcConfig({
|
|
|
71
71
|
externalHelpers,
|
|
72
72
|
},
|
|
73
73
|
};
|
|
74
|
+
|
|
75
|
+
// Swcrc config not customizable
|
|
76
|
+
const omitPaths = [
|
|
77
|
+
'jsc.target',
|
|
78
|
+
];
|
|
79
|
+
// Define warning function
|
|
80
|
+
const warningFn = path => {
|
|
81
|
+
console.warn(
|
|
82
|
+
`[.swcrc] Ignored custom "${path}" — reserved for Meteor-Rspack integration.`,
|
|
83
|
+
);
|
|
84
|
+
};
|
|
74
85
|
const customConfig = getMeteorAppSwcConfig() || {};
|
|
75
|
-
const
|
|
86
|
+
const cleanedCustomConfig = cleanOmittedPaths(customConfig, { omitPaths, warningFn });
|
|
87
|
+
const swcConfig = merge(defaultConfig, cleanedCustomConfig);
|
|
76
88
|
return {
|
|
77
89
|
test: /\.(?:[mc]?js|jsx|[mc]?ts|tsx)$/i,
|
|
78
90
|
exclude: /node_modules|\.meteor\/local/,
|