Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. // index.js
  2. import { foo } from './module-tree-shaking.js';
  3. foo();
  4.  
  5. // module-tree-shaking.js
  6. export const foo = function foo() {
  7. bar();
  8. };
  9.  
  10. export const bar = function bar() {
  11. console.log('bar');
  12. };
  13.  
  14. // result
  15. webpackJsonp([1, 2], {
  16. GO9H: function(n, e, t) {
  17. "use strict";
  18. t.d(e, "a", function() {
  19. return o
  20. });
  21. var o = function() {
  22. c()
  23. },
  24. c = function() {
  25. console.log("bar")
  26. }
  27. },
  28. lVK7: function(n, e, t) {
  29. "use strict";
  30. Object.defineProperty(e, "__esModule", {
  31. value: !0
  32. });
  33. var o = t("GO9H");
  34. t.i(o.a)()
  35. }
  36. }, ["lVK7"]);
  37. //# sourceMappingURL=app.4d3f37edbaf954d8f825.prod.js.map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement