Skip to content

Support ESM explicitly in package.json #601

@snake-poison

Description

@snake-poison

Confirmation

  • I can confirm this is a feature request for the Vue component instead of ECharts itself.

Details

Looks like the space and standards are moving towards ESM, it'd be cool if this library embraced that by switching to a package.json config that included these lines:

"type": "module",
  "exports": {
    ".": {
      "require": "./dist/index.cjs.js",
      "import": "./dist/index.esm.js",
      "types": "./dist/index.d.ts"
    }
  },

As it stands I'm running into issues using this library as a native module.

Additional context about this issue:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions