-
Notifications
You must be signed in to change notification settings - Fork 186
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
Cannot require dist/geotiff.js #23
Comments
I can confirm this issue, I'll investigate |
Okay, it seems obvious that the browserified build cannot simply be loaded by node. Have you tried to load the source module itself? (ie: I'm trying to find an idiomatic way to deliver a built version for vanilla JS and had hoped that browserify would satisfy both node and browsers. Another option is to include the babel translation of every module alongside the browserify build. |
Okay, I prepared a new version (v0.4.1) in which I tried to fix this issue. Now the whole tree is run though babel and saved in the Please try the new version and tell me if this works out for you. |
Hi!
We're having problems to use the distribution version of
geotiff
. Looks like the compiled versions in thedist
directory doesn't work withmodule.exports
syntax anymore.If I
require
those files, node returns just empty object and for example theparse
is not available.How to reproduce
Open node console and try to require file under
dist
Same thing happens with the minified version.
Versions
Geotiff:
0.3.6
Node:
5.10.1
,6.10.0
and7.7.4
The text was updated successfully, but these errors were encountered: