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:
Stanimira Vlaeva
2018-07-18 11:38:22 +01:00
committed by GitHub
parent d53c6b3863
commit 8813e9bc57

View File

@ -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);
} }