@dr.pogodin/react-utils 1.50.1 → 1.50.2
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/bin/build.js +12 -1
- package/package.json +1 -1
package/bin/build.js
CHANGED
|
@@ -328,8 +328,19 @@ void (async () => {
|
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
330
|
if (args.buildType === 'app-development' || args.buildType === 'app-production') {
|
|
331
|
+
let buildType;
|
|
332
|
+
switch (args.buildType) {
|
|
333
|
+
case 'app-development':
|
|
334
|
+
buildType = 'development';
|
|
335
|
+
break;
|
|
336
|
+
case 'app-production':
|
|
337
|
+
buildType = 'production';
|
|
338
|
+
break;
|
|
339
|
+
default:
|
|
340
|
+
throw Error('Unexpected build mode');
|
|
341
|
+
}
|
|
331
342
|
await buildWithBabelForServerSide({
|
|
332
|
-
buildType
|
|
343
|
+
buildType,
|
|
333
344
|
outDir: buildDir,
|
|
334
345
|
srcDir: sourceDir
|
|
335
346
|
});
|
package/package.json
CHANGED