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

change browser entry for rawsocket.js #394

Merged
merged 1 commit into from
Oct 24, 2018

Conversation

joggienl
Copy link
Contributor

If you use autobahn-js with rollup and rollup-plugin-node-resolve cannot
resolve the path to "lib/transport/rawsocket.js". This leads to the error
that "net" cannot be imported (which is correct, it is not available
because it is a core node module).

rollup-plugin-node-resolve uses the Node Resolution Algorithm to resolve
packages (https://nodejs.org/api/modules.html#modules_all_together).
This means that the path of the file should either start with './' or
'/' to be found.

If you use autobahn-js with rollup and rollup-plugin-node-resolve cannot
resolve the path to "lib/transport/rawsocket.js". This leads to the error
that "net" cannot be imported (which is correct, it is not available
because it is a core node module).

rollup-plugin-node-resolve uses the Node Resolution Algorithm to resolve
packages (https://nodejs.org/api/modules.html#modules_all_together).
This means that the path of the file should either start with './' or
'/' to be found.
@oberstet oberstet merged commit 79488d4 into crossbario:master Oct 24, 2018
@oberstet
Copy link
Contributor

thanks for contributing, and in particular for the explanation / links of the "why"!

@joggienl
Copy link
Contributor Author

Well, thanks for accepting 😄

@joggienl joggienl deleted the fix-browser-entry-path branch October 25, 2018 07:57
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