liady / webpack-node-externals

Easily exclude node modules in Webpack
MIT License
1.3k stars 62 forks source link

Is it only relevant for node target libraries ? #114

Open Benclearx opened 3 years ago

Benclearx commented 3 years ago

Hey, building a FE npm library that is published and used by me on another React project. Since I have all dependencies already in node modules of main project I tried to use this lib to exclude all node modules from my package. I end up getting an error when tried to consume my package. Is it possible to exclude node modules from FE package ? or somehow tell my bundled js file to look for modules in node modules of the main project (like it is possible in BE packages ?)

Thanks