mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
feat(hmr): preserve navigation history on applying changes (#7146)
This commit is contained in:
@ -28,6 +28,11 @@ export function convertString(value: any): any {
|
||||
return result;
|
||||
}
|
||||
|
||||
export function getModuleName(path: string): string {
|
||||
let moduleName = path.replace("./", "");
|
||||
return moduleName.substring(0, moduleName.lastIndexOf("."));
|
||||
}
|
||||
|
||||
export module layout {
|
||||
const MODE_SHIFT = 30;
|
||||
const MODE_MASK = 0x3 << MODE_SHIFT;
|
||||
@ -148,4 +153,4 @@ export function hasDuplicates(arr: Array<any>): boolean {
|
||||
|
||||
export function eliminateDuplicates(arr: Array<any>): Array<any> {
|
||||
return Array.from(new Set(arr));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user