New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In alpha-13
, the code executed is not the one transpiled by Webpack / Babel
#787
Comments
thank you @verekia for filing the issue! that's interesting.
I think I'm guessing could you create a small repository so I can debug this issue? |
Here it is @dnalborczyk , in its most minimal form! https://github.com/verekia/serverless-offline-alpha-webpack-bug |
True, what I meant is that |
similar issue is happening to me as well with configuration that works on latest 5.x.x, doesn't work on 6 latest alpha. running sls offline does generate bundled code in seems like |
thank you @verekia Looking into the issue. |
Thank you for the quick fix! Looking forward to the release. |
Confirming that the fix works in both the demo repository and in my own project. Thank you. |
This one fixes not only the webpack+babel integration, but typescript as well. However when I tried to run the project that has custom authorizers configured (so one function refers to another using the second as an authorizer), second is still loaded from the Reusing the solution from e301a2d fixes this custom authorizer problem as well. I've created a PR for that: |
Stilll an issue with It would be nice to see any configuration changes that could sollve this, the documentation simply refers to using serverless-webpack |
On
alpha-13
, the code executed doesn't seem to be the one transpiled by Babel via Webpack (serverless-webpack plugin). The.webpack
folder contains the correct compiled sources, andserverless offline
does compile them, but it seems like what's being executed is the original file :The exact same code works with
5.10.1
.The text was updated successfully, but these errors were encountered: