chore: use node prefix

This commit is contained in:
alex8088 2022-09-17 23:47:48 +08:00
parent 4e53a28650
commit c6bade23b5
4 changed files with 7 additions and 7 deletions

View file

@ -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,

View file

@ -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 => {

View file

@ -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 {

View file

@ -1,4 +1,4 @@
import type { ChildProcessWithoutNullStreams } from 'child_process'
import type { ChildProcessWithoutNullStreams } from 'node:child_process'
import {
type UserConfig as ViteConfig,
type ViteDevServer,