mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 07:02:28 +03:00
23aebacade
swc_bundler: - Use two-context system properly. - Remove old logic. - keywords: Handle assignment pattern property. - keywords: Handle shorthand property. - keywords: Handle identifiers in declarations. swc_ecma_transforms_typescript: - Do not remove import if there's non-type usage. (Related to denoland/deno#8978) swc_ecma_transforms_optimization: - dce: Handle new expression correctly.
12 lines
235 B
TypeScript
12 lines
235 B
TypeScript
const mod = function() {
|
|
const a = "hello world";
|
|
const __instanceof = a;
|
|
return {
|
|
instanceof: __instanceof
|
|
};
|
|
}();
|
|
const y = mod;
|
|
const __instanceof = mod.instanceof;
|
|
const x = __instanceof;
|
|
console.log(x, y);
|