Document ignored_node_modules option in netlify.toml
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 45/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
调研方向
阅读基于文件的配置文档以及其中引用的入口点 src/lib/functions/config.js,以确认 ignored_node_modules 的处理方式。完成的标准是 [functions] 文档包含此选项,不过 issue 指出文档仓库并非开源项目。
由索引模型根据 Issue 内容生成。
描述
Which problem is this feature request solving?
I spent a day trying to figure out how to exclude a module from a function bundle that was over 50MB. Puppeteer doesn't leave much room and the aws-sdk v3 (despite it's tree-shaken smaller size than v2) tipped the scale and the function could not deploy.
I found out Lambdas have aws-sdk included by default so I wanted to exclude the redundant module from the bundle. I searched through the documentation, Netlify forums and poked around in the Netlify CLI source code. However, it wasn't until I found this config on zip-it-and-ship-it that I realized what to search for in the CLI source code. I found it here.
This option (as well as a number of other newer options like [dev] envFiles) are undocumented.
Describe the solution you'd like
Update the following documentation to include ignored_node_modules under the [functions] heading.
https://docs.netlify.com/configure-builds/file-based-configuration/
As far as I can tell, the docs are not open source so I can't even make a PR to fix them.
Pull request (optional)
- I can submit a pull request.
- 主要语言
- TypeScript
- 星标
- 1.9k
- 派生
- 478
- 平均合并
- 1 天 18 小时
- 30 天内合并 PR
- 37
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
netlify/cli 的其他 Issue
-
netlify dev returns 403 for static files in subdirectories on Windows (backslash in rewritten path)可能已有人在做 @Ramnath0521 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
`client-ip` is not an IP address when `x-forwarded-for` holds a list or a port可能已有人在做 @Dev-next-gen 于 11 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
`netlify dev` with `--cwd` from outside the project: every function 500s with "module is not defined in ES module scope" (`detectZisiBuilder` passes a string to `readPackageUp`)可能已有人在做 @bsplatt92 于 52 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area: command: deploy area: docs type: feature
难度 1/5 1 小时以内 新手友好度 88/100
netlify/cli#1984 · 19 条评论 · 3 个 reaction ·
维护者通常 1 天内回复
-
type: bug
难度 4/5 3-5 天 新手友好度 15/100
维护者通常 1 天内回复
相似的 Issue
-
Flaky: mongodb-memory-server 'Port already in use' when another process starts a mongod concurrently未关闭area:testing bug effort:S priority:P2
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
lens:agent lens:process process
难度 2/5 1-3 小时 新手友好度 82/100
thebristolsound/birdbrain#1772 ·
维护者通常 1 天内回复
-
bug priority:low ready-for-dev
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
Automattic/data-liberation-agent#685 ·
维护者通常 1 天内回复
-
Business
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复