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
Align require with node's require #4
Comments
I'm not quite sure about Imagine this code: var modulePath = require.resolve("myModule/lib/test.js");
delete require.cache[modulePath]; |
I think the most useful thing is to return the "id" (a number) from While compiling I replace the require.resolve call with a module id and the already existing cache object is exposed as |
done |
Update binCases/statsCases after merge from origin
For compatibility reasons modules-webpack's require should provide the same API as node's require. Especially the
cache
-object can be very useful (e.g. for unit tests).The text was updated successfully, but these errors were encountered: