This standalone build uses @babel/preset-env, @babel/polyfill, and whatwg-fetch to create an experience that mirrors modern browsers. It does not include presets for flow, react, and typescript.
- @babel/standalone = 5-6 mb minified
- my-babel-standalone = 1.5 mb minified
Currently, it's being used in the latest builds of modern-hta.
var es5 = transform('class $ { }')
function transform (code) {
return Babel.transform(code, {
presets: ['env'],
plugins: [
'proposal-function-bind',
'proposal-optional-chaining'
]
}).code.replace(/^"use strict";\s+/, '')
}