chore: use node prefix
This commit is contained in:
parent
4e53a28650
commit
c6bade23b5
|
@ -1,5 +1,5 @@
|
|||
import * as path from 'path'
|
||||
import * as fs from 'fs'
|
||||
import path from 'node:path'
|
||||
import fs from 'node:fs'
|
||||
import colors from 'picocolors'
|
||||
import {
|
||||
UserConfig as ViteConfig,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import path from 'node:path'
|
||||
import fs from 'node:fs'
|
||||
import { type ChildProcessWithoutNullStreams, spawn } from 'child_process'
|
||||
import { type ChildProcessWithoutNullStreams, spawn } from 'node:child_process'
|
||||
import { type Logger } from 'vite'
|
||||
|
||||
const ensureElectronEntryFile = (root = process.cwd()): void => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import path from 'path'
|
||||
import * as fs from 'fs'
|
||||
import path from 'node:path'
|
||||
import fs from 'node:fs'
|
||||
import colors from 'picocolors'
|
||||
import { builtinModules, createRequire } from 'module'
|
||||
import { builtinModules, createRequire } from 'node:module'
|
||||
import { Plugin, mergeConfig, normalizePath } from 'vite'
|
||||
|
||||
export interface ElectronPluginOptions {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { ChildProcessWithoutNullStreams } from 'child_process'
|
||||
import type { ChildProcessWithoutNullStreams } from 'node:child_process'
|
||||
import {
|
||||
type UserConfig as ViteConfig,
|
||||
type ViteDevServer,
|
||||
|
|
Loading…
Reference in a new issue