From d9c275175c9853e81527de3ad27fd90a32dbd01f Mon Sep 17 00:00:00 2001 From: Hristo Deshev Date: Thu, 3 Nov 2016 13:23:37 +0200 Subject: [PATCH] Fix bundle-entry-points by importing globals first. Avoiding a crash if the import happens too soon. --- tns-core-modules/bundle-entry-points.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tns-core-modules/bundle-entry-points.ts b/tns-core-modules/bundle-entry-points.ts index 376caef3a..aadbe3c12 100644 --- a/tns-core-modules/bundle-entry-points.ts +++ b/tns-core-modules/bundle-entry-points.ts @@ -1,4 +1,6 @@ if (global.TNS_WEBPACK) { + require("globals"); + // Register "dynamically" loaded module that need to be resolved by the // XML/component builders.