Skip to content

Commit

Permalink
follow updates of typings of acorn
Browse files Browse the repository at this point in the history
  • Loading branch information
hmsk committed Jan 19, 2024
1 parent d9e6fd8 commit bbd0a4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/assetsInjector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const injectAssets = (compiledESM: string) => {

const ast = parse(compiledESM, { ecmaVersion: 2015, sourceType: 'module' })
let helperFunctionName: string
walk(
walk<Node[]>(
ast,
(node, state) => {
if (isLiteral(node)) {
Expand Down Expand Up @@ -106,7 +106,7 @@ export const injectAssets = (compiledESM: string) => {
}
},
undefined,
null,
undefined,
)

if (taggedPaths.length > 0) {
Expand Down

0 comments on commit bbd0a4d

Please sign in to comment.