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