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

Commit 242317b

Browse files
committed
CLI doesn't pass any platform, so check if there is any
1 parent 58da6e5 commit 242317b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundle-config-loader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const loader: loader.Loader = function (source, map) {
5656

5757
let sourceModule = "tns-core-modules";
5858

59-
if (platform !== "ios" && platform !== "android") {
59+
if (platform && platform !== "ios" && platform !== "android") {
6060
sourceModule = `nativescript-platform-${platform}`;
6161
}
6262

0 commit comments

Comments
 (0)