FormidableLabs / component-playground

A component for rendering React components with editable source and live preview
MIT License
1.19k stars 108 forks source link

webpack build over 1MB? #59

Open Vagary opened 8 years ago

Vagary commented 8 years ago

before i import it

> webpack  --progress --profile --colors --production

3115ms build modules
11ms seal
18ms optimize
16ms hashing
52ms create chunk assets
5749ms additional chunk assets
1ms optimize chunk assets
1ms optimize assets
17ms emit
Hash: 52be11111c7829c756b7
Version: webpack 1.12.14
Time: 9010ms
  Asset    Size  Chunks             Chunk Names
main.js  *253 kB*       0  [emitted]  main
   [0] multi main 52 bytes {0} [built]
       factory:0ms building:3ms = 3ms
    + 286 hidden modules

after i import it

> webpack  --progress --profile --colors --production

6446ms build modules
18ms seal
22ms optimize
32ms hashing
74ms create chunk assets
22070ms additional chunk assets
1ms optimize chunk assets
1ms optimize assets
86ms emit
Hash: ec8fa799601ba0b5d3a3
Version: webpack 1.12.14
Time: 28784ms
  Asset     Size  Chunks             Chunk Names
main.js  *1.26 MB*       0  [emitted]  main
   [0] multi main 52 bytes {0} [built]
       factory:1ms building:2ms = 3ms
    + 584 hidden modules
carlosvillu commented 8 years ago

That is because https://github.com/Daniel15/babel-standalone