mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor: HMR and webpack improvements (#7462)
* chore: update project * refactor: clear module-name cache on orientation * feat: add custom component in qualifiers app * feat: enable HMR for custom components * refactor: remove redundant check * chore: clean console.log
This commit is contained in:
committed by
GitHub
parent
d8ef044469
commit
8756b3da16
@@ -153,7 +153,7 @@ export function test_loadWithAttributes() {
|
||||
}
|
||||
|
||||
export function test_parse_ShouldNotCrashWithoutExports() {
|
||||
const xml = global.loadModule("xml-declaration/mainPage.xml");
|
||||
const xml = global.loadModule("xml-declaration/mainPage.xml", true);
|
||||
|
||||
var v: view.View = builder.parse(xml);
|
||||
TKUnit.assert(v instanceof view.View, "Expected result: View; Actual result: " + v + ";");
|
||||
@@ -831,7 +831,7 @@ export function test_NonExistingElementInTemplateError() {
|
||||
}
|
||||
|
||||
export function test_EventInTemplate() {
|
||||
var pageCode = global.loadModule("xml-declaration/template-builder-tests/event-in-template");
|
||||
var pageCode = global.loadModule("xml-declaration/template-builder-tests/event-in-template", true);
|
||||
var notified = false;
|
||||
pageCode.test = (args) => {
|
||||
notified = true;
|
||||
@@ -854,7 +854,7 @@ export function test_EventInTemplate() {
|
||||
}
|
||||
|
||||
export function test_EventInCodelessFragment() {
|
||||
var pageCode = global.loadModule("./xml-declaration/template-builder-tests/event-in-codeless-fragment");
|
||||
var pageCode = global.loadModule("./xml-declaration/template-builder-tests/event-in-codeless-fragment", true);
|
||||
|
||||
var notified = false;
|
||||
pageCode.setCallback((args) => {
|
||||
|
||||
Reference in New Issue
Block a user