babel / babel/website

REPL: cannot specify rhino as a target

Open
#2,843 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
777
Forks
1.4k
Avg merge
16h 45m
Merged PRs (30d)
3

Description

Am trying to use https://babeljs.io/repl to compile some javascript for the rhino target, but no matter how I try to specify the target, I keep getting an error message like `BABEL] /repl.js: Unknown browser query `*****`. Maybe you are using old Browserslist or made typo in query. (While processing: "base$0")`

Tried:
- `rhino`
- `rhino 1.7.14`
- `{rhino: '1.7.14'}`
- `{"rhino": "1.7.14"}`
- etc

But always the same error message.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure in the Babel REPL at babeljs.io/repl with the listed Rhino target forms, then trace how the REPL passes targets to Browserslist. Done means Rhino target input is handled without the reported unknown-browser-query error, with the resulting compilation behavior verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.