Created
February 21, 2018 22:38
-
-
Save 3stacks/684425242b8ed249c053e1dd7601f327 to your computer and use it in GitHub Desktop.
javascript bundling in 2018 webpack bundle example part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(module, exports, __webpack_require__) { | |
"use strict"; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
exports.someMaths = someMaths; | |
var _someFile = __webpack_require__(1); | |
var _someFile2 = _interopRequireDefault(_someFile); | |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj}; } | |
function someMaths() { | |
console.log(_someFile2.default); | |
console.log(5 * _someFile2.default); | |
console.log(10 * _someFile2.default); | |
} | |
}), (function(module, exports, __webpack_require__) { | |
"use strict"; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
exports.default = 10; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment