forked from alangpierce/sucrase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configurable: true to Object.defineProperty to allow overwriting …
…duplicate exports. (alangpierce#698) Consider the following valid code ```typescript // lib1.ts export const a = '1'; // lib2.ts export const a = '2' // index.ts export * from 'lib1.ts' export * from 'lib2.ts' export { a } from 'lib2.ts' ``` Currently tsc and babel compile this fine but sucrase fails with ``` TypeError: Cannot redefine property: a at Function.defineProperty (<anonymous>) ``` Co-authored-by: cpitt <[email protected]>
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters