style: sort imports (#746)

This commit is contained in:
Stephen Zhou
2024-05-11 14:20:56 +08:00
committed by GitHub
parent 2cea2dfaf9
commit 6cc3b4de9f
69 changed files with 275 additions and 178 deletions

View File

@@ -1,6 +1,6 @@
import type { ErrorPayload, HMRPayload, Update } from 'vite'
import type { ViteHotContext } from 'vite/types/hot'
import type { InferCustomEventPayload } from 'vite/types/customEvent'
import type { ViteHotContext } from 'vite/types/hot'
// Vite v3 doesn't export overlay
// import { ErrorOverlay, overlayId } from 'vite/src/client/overlay'

View File

@@ -1,4 +1,5 @@
import fs from 'fs-extra'
import { getManifest } from '../src/manifest'
import { isFirefox, log, r } from './utils'

View File

@@ -1,7 +1,9 @@
// generate stub index.html files for dev entry
import { execSync } from 'node:child_process'
import fs from 'fs-extra'
import chokidar from 'chokidar'
import fs from 'fs-extra'
import { isDev, isFirefox, log, r } from './utils'
/**

View File

@@ -1,6 +1,7 @@
import { dirname, resolve } from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'
import { bgCyan, black } from 'kolorist'
export const port = Number.parseInt(process.env.PORT || '') || 3303