Updated the JavaScript parser to @babel/parser
7.12. This fixes several bugs and supports some new syntax.
The "module attributes" proposal supported on 2.1 has been significantly changed and also renamed to "import assertions".
import foo from "./foo.json" assert { type: "json" };
let happy = "happy";
export { happy as "😃" };
class C {
static #x = 42;
static y;
static {
try {
this.y = doSomethingWith(this.#x);
} catch {
this.y = "unknown";
}
}
}