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

Set type: module in package.json #1

Merged
merged 1 commit into from
Jun 20, 2021
Merged

Conversation

Avnerus
Copy link
Contributor

@Avnerus Avnerus commented Jun 19, 2021

Hi!
Adding "type": "module" to package.json instructs Node applications to load the package as an ES-Module. It is now supported by default since Node 10 reached its end of life.
This makes it easier to write test applications that use three-volumetric-4dviews as pure ES Modules. Especially useful since three.js switched to native ES6 modules in r127, and cannot be loaded into node without some serious transpilation. Three.JS also uses "type": "module", for example here.
Thank you!
/Avner

@jbaicoianu jbaicoianu merged commit 5445522 into jbaicoianu:main Jun 20, 2021
@jbaicoianu
Copy link
Owner

Thanks @Avnerus - agreed that this change is needed, thanks for the pull request!

@Avnerus
Copy link
Contributor Author

Avnerus commented Jun 21, 2021

Thank you! Could you also publish to npm?

@jbaicoianu
Copy link
Owner

@Avnerus 1.0.2 has been now published to npm, if you see any other issues with this release just let me know. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants