-
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
Running without babel #53
Comments
Hi @rowanwins Thank you for reporting this issue. It seems like this is a tough spot, and I'm not sure if there is a suitable workaround right now other than to use babel. I was not aware of that but I learned in #50 that the The options I see are:
I would love to help out, but unfortunately, I'm completely bogged down in other projects, so I cannot work on a solution at the moment. |
Yeah no worries @constantinius Probably the best thing I can think of would be reconfiguring the build process, perhaps creating one node-focused webpack config, and one browser-focused webpack config. I can potentially take a look into that at some stage so you may see a pull request although like you my time is limited :) |
Hi @constantinius and @rowanwins . You may have already thought of it, but I'd like to offer this hacky code as a potential workaround :-)
|
That is actually a pretty good idea, thanks @DanielJDufour. This particular source might work for smaller files, but on the other hand, you could just copy the relevant |
Hi, I'm not a regular user of babel, but I still don't understand why we need to import babel once the package is built ... I probably misunderstood the purpose of Babel here but, isn't it about polyfill and should not appear as a dependency when using the built version ? Also, note that since NodeJS 13.2.0+ import / export are properly handled by NodeJS and |
If we have to keep babel for any raison, maybe it would be better to define it as a peerDependency in the |
I believe that a lot has changed since I introduced babel back in the days. Both browser, node and tooling landscapes have significantly improved. I think a very scrutinizing look should be cast upon all the (dev-) dependencies, as I believe many are outdated. Regarding babel in particular: I'm a bit surprised to hear that it is actually still part of the runtime libs. I think there was a PR/discussion once that introduced it, but I thought it was averted. Seems like I was wrong. @PacoDu you seem to be familiar with node packages, so I would be glad for you insight how you package such a library without dropping support for versions of node still in use. Do you have experience with that? |
@constantinius I have some knowledge about node package but I always try to keep every thing up to date without thinking about backward compatibility. But I can take some time to take a look at geotiff.js package.json and build configuration, which versions of NodeJS do you want to support ? (NodeJS LTS is currently v12) |
That is very much appreciated, thank you very much! I guess we should take v12 as our lower end. |
Hey there,
Just a heads up that I'm experiencing some issues running
1.0.0-beta.3
in node in a non-babel project.I'm doing something basic like
And it throws
Have also tried requiring
geotiff.bundle.js
but that left me withI'm running on node v9
Cheers
Rowan
The text was updated successfully, but these errors were encountered: