Skip to content

Commit abcf76c

Browse files
committed
add comment for import-in-the-middle dependency
1 parent 6d428c7 commit abcf76c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lambda-layer/packages/layer/install-externals.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
set -euf -o pipefail
44

55
# Space separated list of external NPM packages
6+
7+
# import-in-the-middle's hook.mjs is used as a module loader for ESM-based handlers and must be available at runtime,
8+
# so we have to install it a standalone package separate from the bundled layer.
69
EXTERNAL_PACKAGES=( "import-in-the-middle" )
710

811
for EXTERNAL_PACKAGE in "${EXTERNAL_PACKAGES[@]}"

0 commit comments

Comments
 (0)