Skip to content

Add .js extension for artifacts import (ESM compatability) #5040

Open
@gilgardosh

Description

@gilgardosh

Issue workflow progress

Progress of the issue based on the
Contributor Workflow

Make sure to fork this template and run yarn generate in the terminal.

Please make sure Mesh package versions under package.json matches yours.

  • 2. A failing test has been provided
  • 3. A local solution has been provided
  • 4. A pull request is pending review

Describe the bug

Bundling a package with Mesh artifacts as ESM results in error, since the hardcoded paths in the artifacts are missing .js extension

To Reproduce Steps to reproduce the behavior:

  1. Create a basic Mesh example with local sources (e.g the json-schema-example)
  2. Generate artifact
  3. Create ESM bundle
  4. Try to run the bundled artifact

Expected behavior

Bundled artifacts should fully support ESM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions