@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rspack.config.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteorjs/rspack",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "description": "Configuration logic for using Rspack in Meteor projects",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
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: 'commonjs',
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: 'commonjs',
478
+ libraryTarget: 'commonjs2',
479
479
  chunkFilename: `${chunksContext}/[id]${isProd ? '.[chunkhash]' : ''}.js`,
480
480
  assetModuleFilename: `${assetsContext}/[hash][ext][query]`,
481
481
  ...(isProd && { clean: { keep: keepOutsideBuild() } }),