Loading additional modules before the lambda function module Yes using devtool: 'source-map' works, include require('source-map-support').install() you'll have pretty stacktraces. Check out webpack-node-externalsįor an easy way to externalize all node modules. Or if you simply want to improve build performance. This is useful when working with modules that have binary dependencies, are incompatible with ExternalsĮxternals specified in your webpack config will be properly packaged into the deployment. Your config, or add the offending modules to externals. Note: Some node modules don't play nicely with in this case, you can omit it from New webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), Heres a sample : var webpack = require('webpack') This plugin allows you to completely customize how your code is optimized by specifying your own webpack config. "configPath": "path/relative/to/project-path"
![npm serverless-plugin-tracing npm serverless-plugin-tracing](https://www.sentry.dev/_assets2/static/ce5c49afbc38f7a3630b1c41efe17edc/b69a9/strapi-trace.png)
The configPath is relative to the project root.
NPM SERVERLESS PLUGIN TRACING INSTALL
Npm install serverless-webpack-plugin webpack -save-dev Install the plugin and webpack in the root of your Serverless Project:.This Severless Plugin is absolutely recommended for every project including Lambdas with Node.js. Smaller Lambda sizes also helps you develop faster because you can upload them faster. Reducing the file size of your AWS Lambda Functions allows AWS to provision them more quickly, speeding up the response Webpack to optimize your Serverless Node.js Functions on deployment.
![npm serverless-plugin-tracing npm serverless-plugin-tracing](https://miro.medium.com/max/1024/0*26cyywirp_dQBUh3.png)
![npm serverless-plugin-tracing npm serverless-plugin-tracing](https://www.proud2becloud.com/wp-content/uploads/2020/08/copertine-blog_46-46-720x630.png)
Forked from serverless-optimizer-plugin this plugin uses