@meteorjs/rspack 0.0.42 → 0.0.44
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 +14 -2
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/,
|
|
@@ -149,7 +161,7 @@ export default function (inMeteor = {}, argv = {}) {
|
|
|
149
161
|
const runPath = Meteor.runPath;
|
|
150
162
|
|
|
151
163
|
// Determine banner
|
|
152
|
-
const bannerOutput = JSON.parse(Meteor.bannerOutput || '');
|
|
164
|
+
const bannerOutput = JSON.parse(Meteor.bannerOutput || process.env.RSPACK_BANNER || '""');
|
|
153
165
|
|
|
154
166
|
// Determine output directories
|
|
155
167
|
const clientOutputDir = path.resolve(process.cwd(), 'public');
|