Skip to content

Commit

Permalink
fix overriden defineMeta import local name
Browse files Browse the repository at this point in the history
  • Loading branch information
xeho91 committed Dec 13, 2024
1 parent b7d5f5b commit f34bbc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function replaceDefineMetaArgument(params: Params): ESTreeAST.ObjectExpre
!declaration ||
declaration.init?.type !== 'CallExpression' ||
declaration?.init?.callee.type !== 'Identifier' ||
declaration?.init?.callee.name !== 'defineMeta'
declaration?.init?.callee.name !== params.nodes.compiled.defineMetaImport.local.name
) {
throw new NoDestructuredDefineMetaCallError({
defineMetaVariableDeclarator: declaration,
Expand Down

0 comments on commit f34bbc2

Please sign in to comment.