File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { isBuiltin } from 'node:module'
1515import path from 'node:path'
1616
1717import { parse } from '@babel/parser'
18- import traverseModule from '@babel/traverse'
18+ import { default as traverse } from '@babel/traverse'
1919import * as t from '@babel/types'
2020import MagicString from 'magic-string'
2121
@@ -25,8 +25,6 @@ import MagicString from 'magic-string'
2525// - @babel/types@7.28.4
2626// - magic-string@0.30.19
2727
28- const traverse = traverseModule . default
29-
3028/**
3129 * Parse JavaScript code into AST.
3230 */
Original file line number Diff line number Diff line change @@ -20,13 +20,12 @@ import path from 'node:path'
2020import { fileURLToPath } from 'node:url'
2121
2222import { parse } from '@babel/parser'
23- import traverseModule from '@babel/traverse'
23+ import { default as traverse } from '@babel/traverse'
2424import * as t from '@babel/types'
2525
2626import { getDefaultLogger } from '#socketsecurity/lib/logger'
2727
2828const logger = getDefaultLogger ( )
29- const traverse = traverseModule . default
3029
3130const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
3231const rootPath = path . join ( __dirname , '..' , '..' )
You can’t perform that action at this time.
0 commit comments