serverless-layers icon indicating copy to clipboard operation
serverless-layers copied to clipboard

devDependecies removed before package builded

Open mokone91 opened this issue 1 year ago • 1 comments

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

mokone91 avatar Sep 08 '22 16:09 mokone91

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.

agutoli avatar Sep 18 '22 22:09 agutoli