refactor(dev): 将 $__DEV__ 重命名为 __DEV__
This commit is contained in:
@@ -14,7 +14,7 @@ const router = createRouter({
|
||||
strict: true,
|
||||
});
|
||||
if (import.meta.hot) handleHotUpdate(router);
|
||||
if ($__DEV__) Object.assign(globalThis, { router });
|
||||
if (__DEV__) Object.assign(globalThis, { router });
|
||||
router.onError((error) => {
|
||||
console.debug('🚨 [router error]:', error);
|
||||
});
|
||||
|
Reference in New Issue
Block a user