Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
docs: add docs for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Oct 11, 2024
1 parent a62909b commit 0080c0d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions platform/src/components/aws/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,26 @@ export interface FunctionArgs {
* cold starts.
*/
nodejs?: Input<{
/**
* Point to a plugins.mjs file with a list of esbuild plugins.
*
* @example
* ```js
* {
* nodejs: {
* plugins: "./plugins.mjs"
* }
* }
* ```
*
* @example
* ```js
* import { somePlugin } from "some-plugin"
* export default [
* somePlugin()
* ]
* ```
*/
plugins?: Input<string>;
/**
* Configure additional esbuild loaders for other file extensions. This is useful
Expand Down

0 comments on commit 0080c0d

Please sign in to comment.