Does babel have a browser api?

scenario: a system at the front end opens a window for developers to enter code, which runs directly in the browser through new Function

new Function ("payload"," global", passiveEvent.format) (data, window.globalData)

but if you write es6 syntax directly, some browsers do not support it. Now you can think of a way to convert it to es5, through api before running this code. Does babel provide such a browser api

?
Jun.17,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ba3f-40838.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ba3f-40838.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?