Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 2e94056

Browse files
committed
fix: return right value from shouldSnapshot
1 parent 3591fc6 commit 2e94056

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: lib/utils.js

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ function getCompilationContext(projectDir, env) {
3737
function shouldSnapshot(config) {
3838
const platformSupportsSnapshot = isAndroid(config.platform);
3939
const osSupportsSnapshot = os.type() !== "Windows_NT";
40+
41+
return config.bundle && config.release && platformSupportsSnapshot && osSupportsSnapshot;
4042
}
4143

4244
function setProcessInitDirectory(dir) {

0 commit comments

Comments
 (0)