-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
// root.js
const { foo } = require('./bundle.js');
// bundle.js
module.exports = {
foo: require('./foo.js'),
bar: require('./bar.js'),
}
In this case bar is not exported, but required and minifier can't eliminate this code.
Compiled code looks like this
/***/ (function(module, exports, __webpack_require__) {
module.exports = {
"bar": ((__webpack_require__(4)),null),
foo: __webpack_require__(5)
};
/***/ }),
Metadata
Metadata
Assignees
Labels
No labels