Files
tsgo/testdata/tests/cases/compiler/commonjsShorthandDestructuringDefaultImportExport.ts
90c540a248 Fix CommonJS rewrites in shorthand destructuring defaults (#4111)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-06-02 20:33:19 +00:00

13 lines
245 B
TypeScript

// @target: es2015
// @module: commonjs
// @noTypesAndSymbols: true
// @filename: /a.ts
import { imported } from "./b";
export const exported = 2;
let a, b;
({ a = imported, b = exported } = {});
// @filename: /b.ts
export const imported = 1;