languageservices icon indicating copy to clipboard operation
languageservices copied to clipboard

Published ESM code has imports without file extensions

Open ascorbic opened this issue 1 year ago • 0 comments

Describe the bug The compiled packages that are published on npm include ESM-compiled files with internal imports without the .js file extension. This is invalid, and is causing errors when trying to use the packages with Vite.

To Reproduce

See the published code

Expected behavior Imports are in the form export { Expr } from "./ast.js", not export { Expr } from "./ast"

Screenshots If applicable, add screenshots to help explain your problem.

Package/Area

  • [x] Expressions
  • [x] Workflow Parser
  • [x] Language Service
  • [x] Language Server

Package Version v1.x.y

Additional context Add any other context about the problem here.

ascorbic avatar Sep 26 '24 12:09 ascorbic