Skip to content

petrhanak/webpack-treeshaking-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minimalistic demo of webpack 2 tree shaking

git clone https://github.com/petrhanak/webpack-treeshaking-demo.git
yarn install
yarn run build

without minification


/***/ function(module, exports, __webpack_require__) {

"use strict";
/* harmony export (immutable) */ exports["a"] = foo;
/* unused harmony export bar */
function foo() {
  return 'foo'
}

function bar() {
  return 'bar'
}


/***/ }

minified and reformatted


([function (e, t, n) {
  "use strict";
  function r() {
    return "foo"
  }

  t.a = r
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published