Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
tree-shaking webpack index.bundle.js
/* 0 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (immutable) */ __webpack_exports__["a"] = foo;
/* unused harmony export bar */
function foo() {
console.log('foo called');
}
function bar() {
console.log('bar called');
}
/***/ }),
/* 1 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__(0);
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils__["a" /* foo */])();
/***/ })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment