Skip to content

module: Improves Top-Level await error in cjs

Top-Level await is supported in ESM and not in cjs. The default error the message is confusing. I provided a clearer one and opened this PR with a lot of help from @MylesBorins.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading