Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Document ignored_node_modules option in netlify.toml

未关闭
#4,684 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
45/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
停滞
领域
documentation

调研方向

阅读基于文件的配置文档以及其中引用的入口点 src/lib/functions/config.js,以确认 ignored_node_modules 的处理方式。完成的标准是 [functions] 文档包含此选项,不过 issue 指出文档仓库并非开源项目。

由索引模型根据 Issue 内容生成。

描述

area: docs area: functions type: feature
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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

netlify/cli 的其他 Issue

查看 netlify/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。