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

Commit d3d155d

Browse files
authored
refactor: Add additional check for android before adding android imports (#668)
* Add additional check for android before adding android imports
1 parent e15fec7 commit d3d155d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: android-app-components-loader.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ module.exports = function (source) {
66
const imports = modules.map(convertSlashesInPath)
77
.map(m => `require("${m}");`).join("\n");
88
const augmentedSource = `
9-
if (!global["__snapshot"]) {
9+
let applicationCheckPlatform = require("tns-core-modules/application");
10+
if (applicationCheckPlatform.android && !global["__snapshot"]) {
1011
${imports}
1112
}
1213

0 commit comments

Comments
 (0)