Skip to content

Commit

Permalink
Add detail for scoped dependency names and ignoredDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
andybee authored and ryanblock committed Mar 26, 2024
1 parent 2d3314b commit 348aaca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/docs/en/reference/configuration/function-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Use the `@arc` pragma to disable Architect features for a specific function:
env false
ignoreDependencies
some-special-dependency
'@scoped/dependency'
shared false
views false
```
Expand All @@ -50,7 +51,7 @@ Note: even with `env` set to false, your function still has access to credential

### `ignoreDependencies`

Disable specific dependencies from being installed in Lambdas that rely on [automated dependency treeshaking](/docs/en/guides/developer-experience/dependency-management#automated-dependency-treeshaking). This setting is currently only supported in Node.js Lambdas.
Disable specific dependencies from being installed in Lambdas that rely on [automated dependency treeshaking](/docs/en/guides/developer-experience/dependency-management#automated-dependency-treeshaking). When a dependency has a scope (preceded by '@'), place the name inside quotes. This setting is currently only supported in Node.js Lambdas.

The alternate spelling of `ignoredDependencies` may also be used, although `ignoreDependencies` is preferred.

Expand Down

0 comments on commit 348aaca

Please sign in to comment.