mirror of
https://github.com/swc-project/swc.git
synced 2025-01-03 11:01:52 +03:00
17f17e82e6
swc_bundler: - Add a testing system for constant inliner. swc_ecma_transforms_optimization: - const_propagation: Handle export specifiers. - const_propagation: Handle inlining of variables whose initializer is inlined. - dce: Allow dropping identifiers used in `exported` part of export specifiers.
7 lines
85 B
JavaScript
7 lines
85 B
JavaScript
class A {
|
|
}
|
|
console.log(1, A);
|
|
console.log(3, A);
|
|
console.log(2, A);
|
|
console.log(1);
|