Skip to content

Commit

Permalink
delete ast-parse file
Browse files Browse the repository at this point in the history
  • Loading branch information
khanayan123 committed Dec 4, 2023
1 parent 4cf896e commit f07a66c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
6 changes: 3 additions & 3 deletions hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ if (NODE_MAJOR >= 20) {
}

if (NODE_MAJOR >= 16) {
astParse = require('./lib/ast-parse.js')
getEsmExports = require('./lib/get-esm-exports.js')
} else {
astParse = undefined
getEsmExports = undefined
}

function hasIitm (url) {
Expand Down Expand Up @@ -165,7 +165,7 @@ register(${JSON.stringify(realUrl)}, namespace, set, ${JSON.stringify(specifiers
return parentGetSource(url, context, parentGetSource)
}
try {
const outPut = astParse(fileContents, url)
const outPut = getEsmExports(fileContents, true, url)
fileContents = outPut.code
exportAlias = outPut.exportAlias
} catch (parseError) {
Expand Down
9 changes: 0 additions & 9 deletions lib/ast-parse.js

This file was deleted.

0 comments on commit f07a66c

Please sign in to comment.