Skip to content

Commit d60156b

Browse files
sapphi-redhaoqunjiang
authored andcommitted
chore: use node prefix
1 parent b668430 commit d60156b

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ declare module 'vue/compiler-sfc' {
55
}
66
}
77

8-
import { createRequire } from 'module'
8+
import { createRequire } from 'node:module'
99
import type * as _compiler from 'vue/compiler-sfc'
1010

1111
export function resolveCompiler(root: string): typeof _compiler {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fs from 'fs'
1+
import fs from 'node:fs'
22
import { createFilter } from 'vite'
33
import type { Plugin, ViteDevServer } from 'vite'
44
import type {

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path'
1+
import path from 'node:path'
22
import type { SFCBlock, SFCDescriptor } from 'vue/compiler-sfc'
33
import type { PluginContext, TransformPluginContext } from 'rollup'
44
import type { RawSourceMap } from 'source-map'

src/template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { PluginContext, TransformPluginContext } from 'rollup'
55
import { getResolvedScript } from './script'
66
import { createRollupError } from './utils/error'
77
import type { ResolvedOptions } from '.'
8-
import path from 'path'
8+
import path from 'node:path'
99
import slash from 'slash'
1010
import { HMR_RUNTIME_ID } from './utils/hmrRuntime'
1111

src/utils/descriptorCache.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import fs from 'fs'
2-
import path from 'path'
3-
import { createHash } from 'crypto'
1+
import fs from 'node:fs'
2+
import path from 'node:path'
3+
import { createHash } from 'node:crypto'
44
import slash from 'slash'
55
import type { SFCDescriptor } from 'vue/compiler-sfc'
66
import type { ResolvedOptions, VueQuery } from '..'

0 commit comments

Comments
 (0)