-
Notifications
You must be signed in to change notification settings - Fork 61
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
Seems like livereactload is making paths absolute #123
Comments
Sorry for late delay, not been able to look at GH over week. This definitely looks like a bug. Which LiveReactload version causes this issue? |
Thanks for following this up. I'm using |
I just tried this on my own computer and it seems that this might be a
@sassanh can you confirm this on your side? |
@milankinen Thanks for your attention. I described the problem incomplete and incorrect. I'm so sorry about that. 1.Create
2.Create
3.Create
4.Compile these files this way:
5.Serve the files, I use python: I exposed
This absolute path does not exist in the compiled file without If you change Sorry for long comment and sorry again for incomplete and incorrect description I provided earlier. P.S. Currently I've solved the issue for myself by compiling all files into a single bundle and simulating lazy loads in dev environment and using multiple bundles only in production environment where I don't compile files with |
Wow, exceptionally well documented bug report! Thank you very much @sassanh! It really seems that the bug is inside LiveReactload. With these informations, I think I'm able to to do the fix without any problems. |
Glad to hear that. I try to document bugs for others the way I want them documented for myself :D |
I don't know if it's related to this issue, I don't know if it's specific to my setup too. When I use livereactload with
Another thing that seems weird and may be related is that my bundle is around 7.5MB without livereactload but with livereactload the size reduces to around 6MB. I just thought maybe these are also related to this thread. Let me know if I should create another issues for these and if I should provide additional information :) |
Thanks! I created another issue for these source map issues: #127 |
OK! Thanks! |
Is there any news on this issue? Or anyway to assist? |
@arcticShadow Check out PR #138 . It might help these problems. If not, please reply in the PR since I think it's related. |
Released |
Suppose that I run this:
Now
a.js
can requireb.js
by callingrequire('/scripts/components/b.js')
. But if I add -p livereactload to the above that require will fail. Reading the compiled code I triedrequire('/Users/x/y/z/w/scripts/components/b.js')
(the absolute path in my filesystem) and it worked. It seems likelivereactload
is somehow making paths absolute in compiled file. Is it possible to avoid this?The text was updated successfully, but these errors were encountered: