Changelog: swc v1.1.25

Reduced dependencies#

  • npmlog is replaced with progress
  • request is replaced with node-fetch

The tree of dependency is now

@swc/[email protected] /Users/kdy1/projects/node-swc
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ””โ”€โ”ฌ [email protected]
โ””โ”€โ”ฌ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected] deduped
โ”‚ โ””โ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”€ [email protected] deduped
โ””โ”€โ”€ [email protected]

Removed random panic (#672)#

swc internally maintain positions information in a struct named SourceMap. Previously, it had a bug that different files have overlapping spans when new_source_file is called concurrently. It was fixed by introducing an atomic variable.

Fixed source map of async generator (#669)#

swc previously had a bug which generated invalid source map for the code below.

function* foo() {
try {
return yield call();
} finally {
}
}