Open indutny opened 7 years ago
It is supported as of webpack-common-shake@1.3.0
.
Oh, actually the thing that it supported is more limited:
// a
exports.a = require('./b').b;
// b
exports.b = 1;
If exports.a
is unused - exports.b
will be removed too.
Recognizing recursive pattern as in the issue description is harder, will keep this issue just in case.
Instead of bailing out on code like this:
We should recognize recursive pattern and store uses in
a.js
.