mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(webpack): improved svelte HMR (#9497)
* update svelte config to use svelte-loader * handle null config * fix: worker support in .svelte files & update snapshots * fix after merge Co-authored-by: halfnelson <dpershouse@gmail.com> Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
This commit is contained in:
@@ -28,7 +28,7 @@ let loaded = false;
|
||||
let isIn1 = false;
|
||||
|
||||
function updateVcToggleText() {
|
||||
vcToggle.text = `Container is${reusableItem.reusable ? ' ' : ' NOT '}Reusable`
|
||||
vcToggle.text = `Container is${reusableItem.reusable ? ' ' : ' NOT '}Reusable`;
|
||||
}
|
||||
|
||||
export function pageLoaded(args) {
|
||||
@@ -82,7 +82,7 @@ export function makeReusable(args: EventData) {
|
||||
}
|
||||
(args.object as any).___reusableRan = true;
|
||||
(args.object as any).reusable = true;
|
||||
if(args.object === reusableItem) {
|
||||
if (args.object === reusableItem) {
|
||||
updateVcToggleText();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user