diff --git a/platform/src/components/aws/function.ts b/platform/src/components/aws/function.ts index 9fc3206ab..0b158f437 100644 --- a/platform/src/components/aws/function.ts +++ b/platform/src/components/aws/function.ts @@ -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; /** * Configure additional esbuild loaders for other file extensions. This is useful