mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +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.
6 lines
93 B
TypeScript
6 lines
93 B
TypeScript
|
|
import { MyError } from './my-error';
|
|
|
|
export function example() {
|
|
throw new MyError()
|
|
} |