An ESX transformer as implementation reference.
# required only with polyfill "import" (default)
npm i --save @ungap/esxtoken
# required to transform ESX
npm i --save-dev @ungap/babel-plugin-transform-esx
// babel.config.json
{
"plugins": [["@ungap/transform-esx", { "polyfill": "import" }]]
}
Where the "polyfill"
option can be one of false
, "import"
(default), or "inline"
.