-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fable 3 nodejsbundle sample upgrade #2
Comments
It seems like MangelMaxime/fulma-demo#43 may be pointing in the right direction, however i'm not sure if it's something that should be used here or not |
Hello @delneg, I think that for now, the "guide" is this PR: MangelMaxime/fulma-demo#43 Well, you found it ^^ And can't help much more as I didn't play yet with Fable 3. |
I've started work in https://github.com/delneg/fable3-samples/commits/fix/update-nodejsbundle-fable3 |
Thanks a lot for helping to upgrade the samples @delneg! I left a comment here: delneg@ee4b322#r45061746 In any case, if you're blocked at any point, don't worry too much, just send a WIP PR or mention me in the commit and I'll try to fix that sample 👍 |
After I did some investigation & updated the webpack.config.js according to your comments, it seems there's a problem with Fable.Fetch package.
|
I've tried converting the sample to use Fable.SimpleHttp, but got stuck with another error -
with the following code:
Looks like a lot of changes in Fable 3 :) Edit: After tinkering with Fable.SimpleHttp for a bit, i've discovered that it has problems with finding XMLHttpRequest running on Node. |
Sorry for the late reply @delneg. I will try to update this sample myself. |
Thanks
yes, it would be nice to have it documented or throw an error because right now it seems like that's some "hidden knowledge" |
After the merge of |
Sorry @delneg, didn't have time yet to look into this. But I'm thinking now maybe we don't need this sample as it's not very common to bundle node.js apps, and we can just remove it. What do you think? |
That's true, but I think the problem can be hiding something else (possible, some bug in Fable or the way JS code is processed (bundled) |
At work, I had to ask my self the question about bundling or not our server/node.js App. After some reading online it seems like it is more common than we think as it's allow to minify the body, remove comments, etc. All this make the parsing of the server code faster and so the startup time etc. I have working at work, I can try to take a look at the nodejsbundle sample. |
Thanks for sharing your experience @MangelMaxime. That makes sense, I'm also working in a node.js app, IIRC we looked into bundling but had issues with some dependencies and at the end we're publishing it as it, but it'd be super helpful if you could have a look at the sample 🙏 |
I've started looking into nodejsbundle sample, and stumbled into several problems / questions:
Such a guide would be very helpful to update webpack.config.js specifically
The text was updated successfully, but these errors were encountered: