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

Commit 51bb8fe

Browse files
committed
Remove redundant __requireOverride
1 parent 71422f5 commit 51bb8fe

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

Diff for: vendor-platform.android.ts.template

-22
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
// Resolve JavaScript classes that extend a Java class, and need to resolve
2-
// their JavaScript module from a bundled script. For example:
3-
// NativeScriptApplication, NativeScriptActivity, etc.
4-
//
5-
// This module gets bundled together with the rest of the app code and the
6-
// `require` calls get resolved to the correct bundling import call.
7-
//
8-
// At runtime the module gets loaded *before* the rest of the app code, so code
9-
// placed here needs to be careful about its dependencies.
10-
111
require("application");
122
require("ui/frame");
133
require("ui/frame/activity");
14-
15-
if (global.TNS_WEBPACK) {
16-
global.__requireOverride = function (name, dir) {
17-
if (name === "./tns_modules/application/application.js") {
18-
return require("application");
19-
} else if (name === "./tns_modules/ui/frame/frame.js") {
20-
return require("ui/frame");
21-
} else if (name === "./tns_modules/ui/frame/activity.js") {
22-
return require("ui/frame/activity");
23-
}
24-
};
25-
}

0 commit comments

Comments
 (0)