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

Ship module version #44

Closed
LarsDenBakker opened this issue Sep 23, 2018 · 2 comments
Closed

Ship module version #44

LarsDenBakker opened this issue Sep 23, 2018 · 2 comments

Comments

@LarsDenBakker
Copy link
Collaborator

I'm using native es modules, which are supported by all modern browsers now. Is it possible to publish an es module version of your code. So basically your source code without the type annotations. :)

This was referenced Sep 23, 2018
@willmcpo
Copy link
Owner

willmcpo commented Oct 5, 2018

@LarsDenBakker due to #50 , can you import the module version by specifying the path to bodyScrollLock.es6.js?

eg import bsl from 'body-scroll-lock/bodyScrollLock.es6.js' ?

@LarsDenBakker
Copy link
Collaborator Author

That can work too. I'm surprised that the module field overwrites main when the consumer doesn't want the module variant.

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