* use getters to define live export bindings * fix scoping in export* helper * Object.defineProperty cannot be used in ES3 target * Accept changed baselines * Use function expression, not arrow function * Update importStarHelper to match export helper in binding-making * Fix whitespace * Adjust whitespace in edited helpers * Use new helper for setting bindings, use unscoped __exportStar helper for exports so helpers get reused more * Accept updated baselines * Use __createBinding for individual reexports when target is es3 * Remove unneeded type assertion * Singeline the helpers * Add check for createBinding helper, accept updated baselines with shortened helper Co-authored-by: Michael Rawlings <mirawlings@ebay.com>
13 lines
235 B
TypeScript
13 lines
235 B
TypeScript
// @esModuleInterop: true
|
|
// @target: es3,es5
|
|
// @filename: fs.d.ts
|
|
export const x: number;
|
|
// @filename: mjts.ts
|
|
import * as fs from "./fs";
|
|
|
|
fs;
|
|
|
|
export * from "./fs";
|
|
export {x} from "./fs";
|
|
export {x as y} from "./fs";
|