@meteorjs/rspack 0.0.43 → 0.0.45
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 +3 -3
package/package.json
CHANGED
package/rspack.config.js
CHANGED
|
@@ -161,7 +161,7 @@ export default function (inMeteor = {}, argv = {}) {
|
|
|
161
161
|
const runPath = Meteor.runPath;
|
|
162
162
|
|
|
163
163
|
// Determine banner
|
|
164
|
-
const bannerOutput = JSON.parse(Meteor.bannerOutput || '');
|
|
164
|
+
const bannerOutput = JSON.parse(Meteor.bannerOutput || process.env.RSPACK_BANNER || '""');
|
|
165
165
|
|
|
166
166
|
// Determine output directories
|
|
167
167
|
const clientOutputDir = path.resolve(process.cwd(), 'public');
|
|
@@ -217,7 +217,7 @@ export default function (inMeteor = {}, argv = {}) {
|
|
|
217
217
|
console.log('[i] Meteor flags:', Meteor);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
const enableSwcExternalHelpers =
|
|
220
|
+
const enableSwcExternalHelpers = !!swcExternalHelpers;
|
|
221
221
|
const isDevEnvironment = isRun && isDev && !isTest && !isNative;
|
|
222
222
|
const swcConfigRule = createSwcConfig({
|
|
223
223
|
isTypescriptEnabled,
|
|
@@ -272,7 +272,7 @@ export default function (inMeteor = {}, argv = {}) {
|
|
|
272
272
|
const doctorPluginConfig = isBundleVisualizerEnabled && rsdoctorModule?.RsdoctorRspackPlugin
|
|
273
273
|
? [
|
|
274
274
|
new rsdoctorModule.RsdoctorRspackPlugin({
|
|
275
|
-
port: isClient
|
|
275
|
+
port: isClient
|
|
276
276
|
? (parseInt(Meteor.rsdoctorClientPort || '8888', 10))
|
|
277
277
|
: (parseInt(Meteor.rsdoctorServerPort || '8889', 10)),
|
|
278
278
|
}),
|