-
-
Notifications
You must be signed in to change notification settings - Fork 763
Closed
Description
const browserslist = require("browserslist");
console.log(browserslist(["op_mob 59"], {mobileToDesktop: true}));fails with
Uncaught Error [BrowserslistError]: Unknown version 59 of op_mob
at Function.select (.../node_modules/browserslist/index.js:1101:17)
at .../node_modules/browserslist/index.js:336:33
at Array.reduce (<anonymous>)
at resolve (.../node_modules/browserslist/index.js:318:18)
at browserslist (.../node_modules/browserslist/index.js:443:21)
console.log(browserslist(browserslist(['op_mob 46']))); // == [ 'op_mob 46' ]
console.log(browserslist(browserslist(['op_mob 47']))); // Error
This has come up because Parcel first does browserslist(["> 0.25%"]) with the query read from some npm package.json, and then passing the result to Babel which calls browserslist again (parcel-bundler/parcel#5164 (comment))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels