Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Almost ts module #1287

Closed
unional opened this issue Nov 13, 2015 · 2 comments
Closed

Almost ts module #1287

unional opened this issue Nov 13, 2015 · 2 comments

Comments

@unional
Copy link
Contributor

unional commented Nov 13, 2015

I followed https://github.com/jspm/jspm-cli/blob/master/docs/publishing-packages.md to expose typescript only module and almost get it to work.

The modules I created are:

The named export works but the default export does not. The simplest way to fix it is to edit the generated js file to export default (or change it to es6 import/export would also work).

Can then endpoint hook able to change the generated js file automatically?

Or there can be another way to make it work?

Another reason that I post this as it might be helpful to 0.17 release.

Cheers,

@guybedford
Copy link
Member

Perhaps the suggestion in microsoft/TypeScript#5285 (comment) is relevant here?

@unional
Copy link
Contributor Author

unional commented Nov 15, 2015

It is jspm thing. The generated js I mean is the [email protected] file under jspm_packages/github/unional/.

Anyway the #1291 would be a good enough workaround for now, I think.

Closing this for now until need it again. :)

@unional unional closed this as completed Nov 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants