Omi Chowdhury
11/05/2021, 4:25 AMinvokeError [1636085771837] started /Users/omi/workspaces/libs/lambda-utils/index.ts:1
import LogUtils, { CoveLogger, ChildLogger } from '@fragment/log-utils';
^^^^^^
SyntaxError: Cannot use import statement outside a module
I’ve tried to dig into this a bit, this is the generated import in `.build`:
var import_lambda_utils = __toModule(require("@fragment/lambda-utils"));
So for some reason esbuild is thinking that module doesn’t need to be bundled and transpiledOmi Chowdhury
11/05/2021, 4:26 AMOmi Chowdhury
11/05/2021, 5:00 AM@fragment/lambda-utils
in my root package.json file, which mean that it got added to the list of externals sent to esbuild