mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-14 21:20:48 +08:00
fix: update js-yaml imports for ESM
This commit is contained in:
@@ -36,7 +36,7 @@ import {
|
||||
cancelIdleCallback,
|
||||
requestIdleCallback,
|
||||
} from 'foxact/request-idle-callback'
|
||||
import yaml from 'js-yaml'
|
||||
import * as yaml from 'js-yaml'
|
||||
import {
|
||||
startTransition,
|
||||
useCallback,
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
styled,
|
||||
} from '@mui/material'
|
||||
import { useLockFn } from 'ahooks'
|
||||
import yaml from 'js-yaml'
|
||||
import * as yaml from 'js-yaml'
|
||||
import {
|
||||
startTransition,
|
||||
useCallback,
|
||||
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
styled,
|
||||
} from '@mui/material'
|
||||
import { useLockFn } from 'ahooks'
|
||||
import yaml from 'js-yaml'
|
||||
import * as yaml from 'js-yaml'
|
||||
import {
|
||||
startTransition,
|
||||
useCallback,
|
||||
|
||||
@@ -33,7 +33,7 @@ import {
|
||||
Typography,
|
||||
useTheme,
|
||||
} from '@mui/material'
|
||||
import yaml from 'js-yaml'
|
||||
import * as yaml from 'js-yaml'
|
||||
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import {
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
} from '@mui/material'
|
||||
import { invoke } from '@tauri-apps/api/core'
|
||||
import { useLockFn } from 'ahooks'
|
||||
import yaml from 'js-yaml'
|
||||
import * as yaml from 'js-yaml'
|
||||
import type { Ref } from 'react'
|
||||
import {
|
||||
useCallback,
|
||||
|
||||
Reference in New Issue
Block a user