Skip to content

Commit d27b61d

Browse files
authored
fix(lambda-tiler): lerc needs to be external to allow wasm import (#3153)
#### Motivation Fixes: > (Error: ENOENT: no such file or directory, open '/var/task/lerc-wasm.wasm') #### Modification LERC needs to be next to where the lerc-wasm.wasm file is located by bundling the lerc file it breaks the path for lerc. #### Checklist _If not applicable, provide explanation of why._ - [ ] Tests updated - [ ] Docs updated - [ ] Issue linked in Title
1 parent 78e0f76 commit d27b61d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/lambda-tiler/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"outdir": "dist/",
4141
"external": [
4242
"pino-pretty",
43-
"sharp"
43+
"sharp",
44+
"lerc"
4445
]
4546
},
4647
"scripts": {

0 commit comments

Comments
 (0)