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

Export ES Module format with .mjs extension, #276

Merged
merged 1 commit into from
Sep 19, 2019
Merged

Conversation

tomalec
Copy link
Contributor

@tomalec tomalec commented Aug 26, 2019

as given lack of "type": "module" in package.json, and .js extension Node tries to resolve import "mock-socket/dist/mock-socket.es.js" as CommonJS, and throws Syntax errors on export

as given lack of `"type": "module"` in `package.json`, and `.js` extension  Node tries to resolve `import "mock-socket/dist/mock-socket.es.js"` as CommonJS
@thoov thoov merged commit 87cc9ee into thoov:master Sep 19, 2019
@tomalec
Copy link
Contributor Author

tomalec commented Sep 19, 2019

Thanks for merging! :)

@tomalec
Copy link
Contributor Author

tomalec commented Oct 1, 2019

@thoov Could you publish npm version with this change, so it could be npm installed?

@thoov
Copy link
Owner

thoov commented Oct 9, 2019

@tomalec It has been released in 9.0.1

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.

None yet

2 participants