Closed lockieluke closed 11 months ago
Specifically, it doesn't work with cjs by default where the compiler isn't handling top level await.
This project is ESM first, and was designed initially to work with ESM which includes standard support for top level await, I'm looking to avoid making changes to support cjs in that core code.
I've added an additional rollup for cjs now, and included this in the exports definition for the package.json file. I am hoping that esbuild picks up on this where the output is going to be cjs anyway...
The default export includes a rollup/commonjs version of the module available.
Closing this issue with the assumption that it covers this use case.
Please re-open the issue if you continue to run into issues here.
Prerequisites
Version (i.e. v2.x.x)
1.0.1-alpha.192
Node.js version (i.e. 18.x, or N/A)
20.1.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10, or N/A)
13.4
Description
It doesn't compile in a esbuild project
Steps to Reproduce
This is the error it gives:
esbuild config:
Expected Behavior
No response