Skip to content

Commit c649f24

Browse files
committed
fix: module import
1 parent b661f95 commit c649f24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { basename, extname } from 'node:path'
22
import type { PluginOption } from 'vite'
33
import MagicString from 'magic-string'
4-
import walk from 'acorn-walk'
4+
import { simple } from 'acorn-walk'
55
import { SourceMapConsumer } from 'source-map'
66
import type { RawSourceMap } from 'source-map'
77
import { getConsoleStyle, transformFileTypes } from './utils'
@@ -20,7 +20,7 @@ function VitePluginTurboConsole(): PluginOption {
2020
locations: true,
2121
})
2222

23-
walk.simple(ast, {
23+
simple(ast, {
2424
CallExpression: (node: any) => {
2525
const { callee, arguments: args, loc, start, end } = node
2626
if (callee.type === 'MemberExpression'

0 commit comments

Comments
 (0)