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

Incorrect module path with es6_global #139

Closed
ghost opened this issue Dec 8, 2017 · 4 comments
Closed

Incorrect module path with es6_global #139

ghost opened this issue Dec 8, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Dec 8, 2017

I am trying to design a development workflow leveraging the fact that browsers are starting to support es6 modules. The idea would be not to use a bundler during development, relying on bsb -make-world -w and browser refreshes.

I use es6_global package spec in order to have full paths so that the browser can resolve modules correctly.
It actually works wonders and is a joy to use.

However it breaks down with reason-react which injects a dependency on react in a way that relies on nodejs module resolution algorithm.

Is there a way to resolve the relative path to react when using es6_global ?

@chenglou
Copy link
Member

@meshu I'd love that too, but that'd be a reactjs issue right? facebook/react#11503

@ghost
Copy link
Author

ghost commented Dec 15, 2017

Absolutely, this is now clear to me.
Forgive my naivety, I am still in the process of knowing how it all fits together.
Thank you for your work on this, I genuinely feel like this ecosystem hits a sweet spot between language design beauty and pragmatism for UI development.

@chenglou
Copy link
Member

Np! Welcome =)

Keeping this issue open til we get es6 exports from reactjs

@chenglou
Copy link
Member

eh, cc @acdlite

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

No branches or pull requests

2 participants