aws-samples / aws-samples/lambda-nodejs-esbuild
Including node_modules in the minification
- 主要言語
- JavaScript
- スター
- 27
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hello. Thanks for sharing this sample project.
I came from this [article](https://aws.amazon.com/blogs/compute/optimizing-node-js-dependencies-in-aws-lambda/) and need to use my code for a Lambda@Edge (`viewer-request`), limited to 1MB size.
When I try to run the build command, I got these issue:
```
✘ [ERROR] Could not resolve "./src//node_modules"
✘ [ERROR] No loader is configured for ".lock" files: src//yarn.lock
```
If you can help out, I would really appreciate it!
コントリビューションガイド
調査の方向性
Reproduce the build command using the layout shown in the errors, especially src//node_modules and yarn.lock. Determine why those paths are included in minification, then verify that the resulting Lambda@Edge viewer-request bundle excludes unnecessary files and remains under the 1 MB limit.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, javascript, node.js
- 領域
- build-system, cloud
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100