ACPixel
02/12/2022, 4:29 AMchrome-aws-lambda
uses __dirname
in it's code, which doesn't work when in esm. Not sure if there's an easy way around this, or if I should just have the one function not use ESM or something, either way any help would be greatly appreciated! 🙂Derek Kershner
02/12/2022, 4:57 AMimport { dirname } from 'path';
import { fileURLToPath } from 'url';
const __dirname = dirname(fileURLToPath(import.meta.url));
ACPixel
02/12/2022, 5:25 AM