agutoli / serverless-layers

Serverless.js plugin implementing AWS Lambda Layers, reducing lambda size, warm-up, and deployment time.
MIT License
229 stars 54 forks source link

devDependecies removed before package builded #117

Closed mokone91 closed 1 year ago

mokone91 commented 2 years ago

Hi! I use serverless-webpack plugin, when i deploy app it throws Cannot find module 'webpack-node-externals' because plugin skip dev modules

agutoli commented 1 year ago

Why would you need webpack-node-externals in the bundle inside the lambda? I reckon that's exactly right, it must ignore dev dependencies to make the bundle smaller. If you are trying to do something specific that requires that module, would make sense to move from devDependencies to dependencies.