mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
0ebda3c33e
`hygiene` pass had a bug related to globally defined variables like `Object` or `undefined`. This pr make hygiene to utilize use-bind conflict to resolve global objects correctly. Closes #605. block_scoping pass had a bug with closure in for statement with let or const. This pr fixes it by extracting a loop body as a variable. Closes #604.
16 lines
280 B
Plaintext
16 lines
280 B
Plaintext
{
|
|
"jsc": {
|
|
"target": "es2015",
|
|
"parser": {
|
|
"syntax": "ecmascript",
|
|
"jsx": true,
|
|
"dynamicImport": true,
|
|
"classProperty": true,
|
|
"exportNamespaceFrom": true,
|
|
"exportDefaultFrom": true
|
|
}
|
|
},
|
|
"module": {
|
|
"type": "commonjs"
|
|
}
|
|
} |