@meteorjs/rspack 0.0.58 → 0.0.59
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 +2 -2
package/package.json
CHANGED
package/rspack.config.js
CHANGED
|
@@ -374,7 +374,7 @@ module.exports = async function (inMeteor = {}, argv = {}) {
|
|
|
374
374
|
if (isMainChunk) return `../${buildContext}/${outputPath}`;
|
|
375
375
|
return chunkSuffix;
|
|
376
376
|
},
|
|
377
|
-
libraryTarget: '
|
|
377
|
+
libraryTarget: 'commonjs2',
|
|
378
378
|
publicPath: '/',
|
|
379
379
|
chunkFilename: `${chunksContext}/[id]${isProd ? '.[chunkhash]' : ''}.js`,
|
|
380
380
|
assetModuleFilename: `${assetsContext}/[hash][ext][query]`,
|
|
@@ -475,7 +475,7 @@ module.exports = async function (inMeteor = {}, argv = {}) {
|
|
|
475
475
|
output: {
|
|
476
476
|
path: serverOutputDir,
|
|
477
477
|
filename: () => `../${buildContext}/${outputPath}`,
|
|
478
|
-
libraryTarget: '
|
|
478
|
+
libraryTarget: 'commonjs2',
|
|
479
479
|
chunkFilename: `${chunksContext}/[id]${isProd ? '.[chunkhash]' : ''}.js`,
|
|
480
480
|
assetModuleFilename: `${assetsContext}/[hash][ext][query]`,
|
|
481
481
|
...(isProd && { clean: { keep: keepOutsideBuild() } }),
|