chore: add prefix of node core modules (#11440)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { existsSync, readFileSync } from 'fs';
|
||||
import { fileURLToPath, pathToFileURL } from 'url';
|
||||
import { join, dirname, isAbsolute } from 'path';
|
||||
import { existsSync, readFileSync } from 'node:fs';
|
||||
import { fileURLToPath, pathToFileURL } from 'node:url';
|
||||
import { join, dirname, isAbsolute } from 'node:path';
|
||||
|
||||
function findRootDir(dir: string): string {
|
||||
if (existsSync(join(dir, 'vant.config.mjs'))) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { existsSync } from 'fs';
|
||||
import { join, isAbsolute } from 'path';
|
||||
import { existsSync } from 'node:fs';
|
||||
import { join, isAbsolute } from 'node:path';
|
||||
import { getVantConfig } from '../common/index.js';
|
||||
import { STYLE_DIR, SRC_DIR } from './constant.js';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import fse from 'fs-extra';
|
||||
import { sep, join } from 'path';
|
||||
import { sep, join } from 'node:path';
|
||||
import { SRC_DIR, getVantConfig } from './constant.js';
|
||||
import { InlineConfig, loadConfigFromFile, mergeConfig } from 'vite';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user