mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -6,8 +6,8 @@ module.exports = function (source, map) {
|
||||
const imports = modules.map(convertSlashesInPath)
|
||||
.map(m => `require("${m}");`).join("\n");
|
||||
const augmentedSource = `
|
||||
let applicationCheckPlatform = require("@nativescript/core/application");
|
||||
if (applicationCheckPlatform.android && !global["__snapshot"]) {
|
||||
const isAndroid = require("@nativescript/core").isAndroid;
|
||||
if (isAndroid && !global["__snapshot"]) {
|
||||
${imports}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user