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
Problems with require.cache #16
Comments
I've done this because it failed reloading loaders when in watch mode and a loader has changed. It can fail if you rely on Multi process compiling is on roadmap and this will make these loaders fail too. Why exactly do your code fail? You can stay locked at 0.5.8 until we have a solution. I'm on vacation for a week by now, sorry. |
My module var MyClass = new Class("MyClass", {
Extends: require("./MySuperClass.class.js"),
init: function () {}
}); In order to compute all inherited properties I have to save every descriptor in a registry. Now the registry can't save those descriptors because it is created from scratch for every new class. I think it's ok that Currently |
Hmm.. i should undo this change and make multi process building as opt-in (per loader) feature. Webpack should throw an warning or an error if a loader is changed. |
I'm glad that I could convince you 😆 |
Since version 0.5.10 webpack requires every loader in a new "context" by removing all modules from cache and readding them after the loader has been executed.
I think it's very delicate to mess around with
require.cache
because this can lead to totally unexpected behavior. Is there are an important reason why you've introduced this?Currently I have to lock webpack at version 0.5.8 because it breaks my code.
The text was updated successfully, but these errors were encountered: