Closed leon closed 5 days ago
tried setting External: []string{ "*" },
but then when I run sst dev it fails with
Error evaluating config: exit status 1\nnode:internal/modules/esm/get_format:160\n throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);\n ^\n\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension \".ts\"
completely removing Externals and replacing with Packages: esbuild.PackagesExternal,
seems to have solved it.
both eval/.mjs and platform/eval/.mjs look good
will create PR
When writing custom plugins for esbuild or including other packages in your sst.config.ts it should not bundle them into the
eval-*.mjs
file.https://github.com/sst/ion/blob/dev/pkg/js/js.go#L39
Maybe we should set External to * or use
Packages: esbuild.PackagesExternal
?