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

Provide some kind of guidance for using haste system with webpack #178

Closed
barbu110 opened this issue Sep 2, 2016 · 4 comments
Closed

Provide some kind of guidance for using haste system with webpack #178

barbu110 opened this issue Sep 2, 2016 · 4 comments

Comments

@barbu110
Copy link

barbu110 commented Sep 2, 2016

I am aware of the description of the repo, those who use this will have a hard time, but I would be grateful if somebody would give a couple of minutes to explain me (and probably others) how to use the Haste module system with webpack.

So I see it's quite simple to use it with gulp, basically, you just generate the modules map and use the Babel API to rewrite the requires, essentially skiping the .babelrc.

  1. But how should I do this in a webpack environment?
  2. When should I generate the modules map?

Thank you!

@zpao
Copy link
Member

zpao commented Sep 6, 2016

You're welcome to figure that out on your own but as this is a system designed specifically for us to use and it works - we're not going to invest resources in figuring something else out right now. We compile to commonjs for npm for everybody (including us) to use.

Sorry that's not a great answer but we just don't have the time to figure spend on this.

@zpao zpao closed this as completed Sep 6, 2016
@barbu110
Copy link
Author

barbu110 commented Sep 6, 2016

It would take as much as 5 minutes for someone like you (who this software even in the middle of night) to write a piece of code that would run

@zpao
Copy link
Member

zpao commented Sep 6, 2016

I appreciate that you think so highly of me but it would take longer than 5 minutes for sure. I don't know how webpack works and would need to figure out how to inject a module resolver. And then I would need to find every file on disk and read it to get the providesModule declaration and build a map, assuming that's even how webpack works.

I have no need to do this so I won't be spending any more time on the matter. Good luck.

@jrwm
Copy link

jrwm commented Jan 26, 2017

@barbu110 Have you resolved it on your own? I am very interested in a solution ;)

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

3 participants