Prepare these two files.
package.json
{
"dependencies": {
"lit-html": "^1.1.0"
},
"browserslist": [
"IE 11"
]
}
index.js
import {html, render} from "lit-html"
const foo = () => {}
Then, build them with parcel.
parcel build index.js
A part of result is
"use strict";var t=require("lit-html"),i=function(){};
The arrow function is compiled to standard function expression. This is the expected behavior.
However, there are some arrow functions in the result.
t=t=>(...s)=>{const
This is part of lit-html module.
Can parcel compile to ES5 including dependent modules?