mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
fix: require devtools-elements.js with the extension mentioned explicitly (#6079)
This is a workaround for the issue with `@ngtools/webpack@6.1.0-rc.2`, described here: https://github.com/NativeScript/nativescript-dev-webpack/issues/607#issuecomment-405209925
This commit is contained in:
@ -42,7 +42,7 @@ let fragmentId = -1;
|
|||||||
export let moduleLoaded: boolean;
|
export let moduleLoaded: boolean;
|
||||||
|
|
||||||
if (global && global.__inspector) {
|
if (global && global.__inspector) {
|
||||||
const devtools = require("tns-core-modules/debugger/devtools-elements");
|
const devtools = require("tns-core-modules/debugger/devtools-elements.js");
|
||||||
devtools.attachDOMInspectorEventCallbacks(global.__inspector);
|
devtools.attachDOMInspectorEventCallbacks(global.__inspector);
|
||||||
devtools.attachDOMInspectorCommandCallbacks(global.__inspector);
|
devtools.attachDOMInspectorCommandCallbacks(global.__inspector);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user