serverless-heaven / serverless-webpack

Serverless plugin to bundle your lambdas with Webpack
MIT License
1.72k stars 417 forks source link

Add support for Serverless v4 #1959

Closed j0k3r closed 1 month ago

j0k3r commented 1 month ago

As of now, we can't jump straight to v4 in dev deps because some tests still require the v3 version (because we are mocking some stuff and the v4 only ship a binary).

The short solution is just to allow 4 in peer deps. But we prefer to have a running test that ensure a package is properly generated with deps inside.

As we can't use the internal tooling @serverless/test anymore in v4 (the project might be dead and no tests are running on the v4 official repo 😳, anyway) we are using the binary directly to package the example project. We were forced to use an access key from serverless dashboard and some aws valid credentials. But it now works ✅

Fix https://github.com/serverless-heaven/serverless-webpack/issues/1923