fix: update js-yaml imports for ESM

This commit is contained in:
Tunglies
2026-07-28 16:21:06 +08:00
parent dca6fdcae6
commit 95bd5ceed9
5 changed files with 5 additions and 5 deletions
@@ -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,
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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,