src/index
(entry point) imports mod1
module from src/lib
- a text value.
src/lib/index.js
includes exports (export * from "./filenamn"
) from three other modules:
src/lib/mod1
- exports a text variable. Its the only mod being used insrc/index
.src/lib/mod2
- exports a text variable.src/lib/mod3
- ImportobjectExtend
fromnode_modules/common-micro-libs
and then exports an object.
Run: webpack -p
The final bundle should have only included src/lib/mod1
.
The final bundle included the entire node_modules/common-micro-libs
library. Why?
Need help understanding.