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:
Alexander Vakrilov
2019-07-08 11:11:14 +03:00
committed by GitHub
parent d8ef044469
commit 8756b3da16
77 changed files with 349 additions and 168 deletions

View File

@@ -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) => {