Skip to content

Instantly share code, notes, and snippets.

@johnstew
Created February 2, 2017 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnstew/c9e1e6ce544626edbd774cd395f92e8d to your computer and use it in GitHub Desktop.
Save johnstew/c9e1e6ce544626edbd774cd395f92e8d to your computer and use it in GitHub Desktop.
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