ini icon indicating copy to clipboard operation
ini copied to clipboard

[BUG] Library forces CommonJS

Open vzolin opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior

I use to-level await in one of my projects. After installing this library typescript stops considering the "module" parameter in package.json and considers the whole project as CommonJS.

Expected Behavior

Should not affect top-level code

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Environment

  • npm:
  • Node:
  • OS:
  • platform:

vzolin avatar Mar 06 '25 00:03 vzolin

Since no responses here, if you are stuck, here's a simple TypeScript substitute ;)

vitaly-t avatar Jun 19 '25 09:06 vitaly-t