@meteorjs/rspack 0.0.16 → 0.0.17
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
|
@@ -156,7 +156,7 @@ export default function (inMeteor = {}, argv = {}) {
|
|
|
156
156
|
// Set watch options
|
|
157
157
|
const watchOptions = {
|
|
158
158
|
...defaultWatchOptions,
|
|
159
|
-
...isTestEager && {
|
|
159
|
+
...isTest && isTestEager && {
|
|
160
160
|
ignored: [
|
|
161
161
|
...defaultWatchOptions.ignored,
|
|
162
162
|
'**/_build/**',
|
|
@@ -296,7 +296,7 @@ export default function (inMeteor = {}, argv = {}) {
|
|
|
296
296
|
name: serverNameConfig,
|
|
297
297
|
target: 'node',
|
|
298
298
|
mode,
|
|
299
|
-
entry: isTestEager
|
|
299
|
+
entry: isTest && isTestEager
|
|
300
300
|
? "node_modules/@meteorjs/rspack/entries/eager-tests.js"
|
|
301
301
|
: path.resolve(process.cwd(), buildContext, entryPath),
|
|
302
302
|
output: {
|
|
@@ -325,7 +325,7 @@ export default function (inMeteor = {}, argv = {}) {
|
|
|
325
325
|
externals,
|
|
326
326
|
plugins: [
|
|
327
327
|
new DefinePlugin(
|
|
328
|
-
isTestModule || isTestEager
|
|
328
|
+
isTest && (isTestModule || isTestEager)
|
|
329
329
|
? {
|
|
330
330
|
"Meteor.isTest": JSON.stringify(isTest),
|
|
331
331
|
"Meteor.isDevelopment": JSON.stringify(isDev),
|