Recently, I developed a React component and want to publish it.
In this package,
"dependencies": {
"react": "^0.14.6",
"react-dom": "^0.14.6",
"react-timer-mixin": "^0.13.3"
}
When I build the package by webpack
command, I will get a bundle containing react, react-dom and react-timer-mixin
.
It seems wrong for this practice...
Thus, my question is how to build package without dependencies for publishing.
*I think the chuck-vendor method to separate main bundle and dependencies is for multiple bundle file. But my requirement is for building the lib.