Including node_modules in the minification

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
aws, javascript, node.js

Research direction

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.

Written by the indexing model from the issue text.

Description

Hello. Thanks for sharing this sample project.
I came from this article 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/<function-name>/node_modules"

✘ [ERROR] No loader is configured for ".lock" files: src/<function-name>/yarn.lock

If you can help out, I would really appreciate it!

Dominant language
JavaScript
Stars
27
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.