@meteorjs/rspack 0.0.32 → 0.0.33
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 +5 -4
package/package.json
CHANGED
package/rspack.config.js
CHANGED
|
@@ -125,6 +125,7 @@ export default function (inMeteor = {}, argv = {}) {
|
|
|
125
125
|
const isTestEager = !!Meteor.isTestEager;
|
|
126
126
|
const isTestFullApp = !!Meteor.isTestFullApp;
|
|
127
127
|
const swcExternalHelpers = !!Meteor.swcExternalHelpers;
|
|
128
|
+
const isNative = !!Meteor.isNative;
|
|
128
129
|
const mode = isProd ? 'production' : 'development';
|
|
129
130
|
|
|
130
131
|
const isTypescriptEnabled = Meteor.isTypescriptEnabled || false;
|
|
@@ -203,7 +204,7 @@ export default function (inMeteor = {}, argv = {}) {
|
|
|
203
204
|
console.log('[i] Meteor flags:', Meteor);
|
|
204
205
|
}
|
|
205
206
|
|
|
206
|
-
const isDevEnvironment = isRun && isDev && !isTest;
|
|
207
|
+
const isDevEnvironment = isRun && isDev && !isTest && !isNative;
|
|
207
208
|
const swcConfigRule = createSwcConfig({
|
|
208
209
|
isTypescriptEnabled,
|
|
209
210
|
isJsxEnabled,
|
|
@@ -325,7 +326,7 @@ export default function (inMeteor = {}, argv = {}) {
|
|
|
325
326
|
Meteor.HtmlRspackPlugin(),
|
|
326
327
|
],
|
|
327
328
|
watchOptions,
|
|
328
|
-
devtool: isDevEnvironment || isTest ? 'source-map' : 'hidden-source-map',
|
|
329
|
+
devtool: isDevEnvironment || isNative || isTest ? 'source-map' : 'hidden-source-map',
|
|
329
330
|
...(isDevEnvironment && {
|
|
330
331
|
devServer: {
|
|
331
332
|
static: { directory: clientOutputDir, publicPath: '/__rspack__/' },
|
|
@@ -406,8 +407,8 @@ export default function (inMeteor = {}, argv = {}) {
|
|
|
406
407
|
isTestModule && requireExternalsPlugin,
|
|
407
408
|
],
|
|
408
409
|
watchOptions,
|
|
409
|
-
devtool: isDevEnvironment || isTest ? 'source-map' : 'hidden-source-map',
|
|
410
|
-
...((isDevEnvironment || (isTest && !isTestEager)) &&
|
|
410
|
+
devtool: isDevEnvironment || isNative || isTest ? 'source-map' : 'hidden-source-map',
|
|
411
|
+
...((isDevEnvironment || (isTest && !isTestEager) || isNative) &&
|
|
411
412
|
createCacheStrategy(mode)),
|
|
412
413
|
};
|
|
413
414
|
|