Skip to content

Commit 2232500

Browse files
committed
fix: utilize acorn import as distinct from local variable
1 parent 28c5db0 commit 2232500

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,17 @@ Object.defineProperty(acornJsx, "tokTypes", {
9393
export default acornJsx;
9494

9595
function plugin(options, Parser) {
96-
const acorn = Parser.acorn || acorn;
96+
const acrn = Parser.acorn || acorn;
9797
const acornJsx = getJsxTokens(acorn);
98-
const tt = acorn.tokTypes;
98+
const tt = acrn.tokTypes;
9999
const tok = acornJsx.tokTypes;
100-
const tokContexts = acorn.tokContexts;
100+
const tokContexts = acrn.tokContexts;
101101
const tc_oTag = acornJsx.tokContexts.tc_oTag;
102102
const tc_cTag = acornJsx.tokContexts.tc_cTag;
103103
const tc_expr = acornJsx.tokContexts.tc_expr;
104-
const isNewLine = acorn.isNewLine;
105-
const isIdentifierStart = acorn.isIdentifierStart;
106-
const isIdentifierChar = acorn.isIdentifierChar;
104+
const isNewLine = acrn.isNewLine;
105+
const isIdentifierStart = acrn.isIdentifierStart;
106+
const isIdentifierChar = acrn.isIdentifierChar;
107107

108108
return class extends Parser {
109109
// Expose actual `tokTypes` and `tokContexts` to other plugins.

0 commit comments

Comments
 (0)