diff --git a/package.json b/package.json index 6056203..ed267f6 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "browser": "./dist/index.browser.js", "import": "./dist/index.js", "require": "./dist/index.cjs", - "browser": "./dist/index.browser.js", "default": "./dist/index.js" }, "./themes/*": { diff --git a/src/index.ts b/src/index.ts index c53dc78..a530774 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import { Token} from "./types"; +import { Token } from "./types"; import { languages } from "./langs"; export function tokenize(code: string, language: string): Token[] {