mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: require relative path within tns-core-modules
This commit is contained in:
@@ -46,7 +46,7 @@ let fragmentId = -1;
|
||||
export let moduleLoaded: boolean;
|
||||
|
||||
if (global && global.__inspector) {
|
||||
const devtools = require("tns-core-modules/debugger/devtools-elements");
|
||||
const devtools = require("../../debugger/devtools-elements");
|
||||
devtools.attachDOMInspectorEventCallbacks(global.__inspector);
|
||||
devtools.attachDOMInspectorCommandCallbacks(global.__inspector);
|
||||
}
|
||||
@@ -754,7 +754,7 @@ function ensureFragmentClass() {
|
||||
}
|
||||
|
||||
// this require will apply the FragmentClass implementation
|
||||
require("ui/frame/fragment");
|
||||
require("./fragment");
|
||||
|
||||
if (!fragmentClass) {
|
||||
throw new Error("Failed to initialize the extended androidx.fragment.app.Fragment class");
|
||||
|
||||
Reference in New Issue
Block a user