mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 12:12:16 +03:00
a3105428ba
swc: - Use `hygiene_with_config` instead. (#1279) - Allow enabling source map with `.swcrc`. (#1309) swc_ecma_transforms_base: - `hygiene`: Add an option to preserve class names. (#1279) swc_ecma_transforms_compat: - `block_scoping`: Allow using `break` in switch cases. (#1415)
11 lines
164 B
TypeScript
11 lines
164 B
TypeScript
export class Foo {
|
|
|
|
nested() {
|
|
class Foo {
|
|
static foo = 'foo';
|
|
static bar = Foo.foo;
|
|
}
|
|
|
|
return new Foo()
|
|
}
|
|
} |