Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Feb 12, 2021
1 parent 7ec6f2c commit 82a529a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/babel-highlight/src/index.js
@@ -1,5 +1,4 @@
import _jsTokens from "js-tokens";
const jsTokens = _jsTokens.default;
import jsTokens from "js-tokens";

import {
isStrictReservedWord,
Expand Down Expand Up @@ -183,8 +182,8 @@ if (process.env.BABEL_8_BREAKING) {

tokenize = function* (text: string) {
let match;
while ((match = jsTokens.exec(text))) {
const token = _jsTokens.matchToToken(match);
while ((match = jsTokens.default.exec(text))) {
const token = jsTokens.matchToToken(match);

yield {
type: getTokenType(token, match.index, text),
Expand Down

0 comments on commit 82a529a

Please sign in to comment.