-
Notifications
You must be signed in to change notification settings - Fork 27
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
Remove the generation step #42
Comments
PR welcome if anyone comes around. |
yes, it may be time to think about it |
Can we please get #41 merged in the meantime? |
Looks like the generation step is completely failing for me because of shelljs:
Might be because my temp directory is on a different drive. Executing Replacing the entirety of
I can put this in a PR if this works for you guys - it's my bandaid solution, but looks like it works properly to me. |
Can this be implemented? |
Yes sure. #42 (comment) |
@MoOx What would happen if we just moved the generation step from post install to build |
@MoOx Ok, so from what I can see, you want to read the local db. Would you be happy if i submitted a pr that performed the generation step when the file is required? |
We should just remove it and don't care about browserify and stuff. We might add a solution for browserify and friends to accept some hardcoded data. |
(because this step was basically to avoid dynamic require() call so browserify can handle it). |
Oh i see, ok, how would you suggest going about this? |
For now just try to remove this generation step and try to access directly require files when needed? |
The problem that I'm hitting is with jspm and cssnext (which relies on this). So anyway the postInstall step is not being run. So when cssnext wants to use the api, this project internally accesses the features.js file. Which hasn't yet been created. So at some point we actually need to get the features file. Unless what you're saying is to modify this project so that it directly requires the features file from db? |
That's what I am saying :) |
Closed by #47 |
It was used to provide compat for browserify, but this cause more problem than it solves.
Removing this will fix #29 #32 #36 #39 #40.
And bundler like webpack might be able to handle the dynamic require.
The text was updated successfully, but these errors were encountered: