Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Why use module.exports over export #83

Closed
aaroncolaco opened this issue Feb 9, 2018 · 3 comments
Closed

Why use module.exports over export #83

aaroncolaco opened this issue Feb 9, 2018 · 3 comments

Comments

@aaroncolaco
Copy link

aaroncolaco commented Feb 9, 2018

In app.ts is there a reason to use

module.exports = {} 

over Typescript's

export {}
@MPankajArun
Copy link

Well, “exports” itself is never returned! It is just a reference to module.exports; a convenience variable to help module authors write less code.

@peterblazejewicz
Copy link
Collaborator

@aaroncolaco
I've added PR with TS2.7 and ECMA script modules support enabled: #85

@aaroncolaco
Copy link
Author

@peterblazejewicz awesome! Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants