diff --git a/runtime/JavaScript/package.json b/runtime/JavaScript/package.json index 6744ebb4a8..a9bca3edae 100644 --- a/runtime/JavaScript/package.json +++ b/runtime/JavaScript/package.json @@ -57,7 +57,7 @@ "require": "./dist/antlr4.node.cjs", "default": "./dist/antlr4.node.mjs" }, - "browser": { + "default": { "types": "./src/antlr4/index.d.ts", "import": "./dist/antlr4.web.mjs", "require": "./dist/antlr4.web.cjs",