You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
This might be more webpack related than serverless-webpack related. If so, feel free to close this.
Is it possible to include a specific import to all generated lambda-functions?
I have to include 'source-map-support/register' into all functions in order to get source maps working.
This (in my oppinion) creates a lot of unnecessary imports and can lead to problems if I forget to import it in a particular file.
Or is there any other better solution to make sourcemaps work?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi @mcongy , you can use the source-map-support webpack plugin and just configure it for the babel loader.
"plugins": [
"source-map-support"
]
Just make sure that you have the source-map-support module in your dependencies and the babel-plugin-source-map-support in your devDependencies. It will automatically add it.
Additionally #397 is in progress right now and will allow adding arbitrary modules to the webpack entries. This will be a second approach for anyting else than source-map-support.
This is a Feature Proposal
Description
Hello,
This might be more webpack related than serverless-webpack related. If so, feel free to close this.
Is it possible to include a specific import to all generated lambda-functions?
I have to include 'source-map-support/register' into all functions in order to get source maps working.
This (in my oppinion) creates a lot of unnecessary imports and can lead to problems if I forget to import it in a particular file.
Or is there any other better solution to make sourcemaps work?
Thanks!
The text was updated successfully, but these errors were encountered: