DataTables / DataTables/Plugins

Proposal: Add ESM-compatible plugin exports for modern environments

Open
#614 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hi and thanks for this collection of plugins.

Would you consider supporting ES Module (ESM) usage in modern environments like Vite, Symfony AssetMapper, or import maps?

I’d suggest a non-breaking addition:

  • Keep current files unchanged
  • Add ESM-friendly variants (e.g. ellipsis.esm.js) using export default
  • Add "exports" in package.json to expose them to ESM-aware CDNs (esm.sh, skypack, etc.)

If you agree, I can contribute a PR with initial support.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing package.json and the existing plugin files, including the proposed ellipsis.esm.js example. Check how the current files are exposed and whether the requested ESM variants and exports can cover the plugin collection without changing existing files. Done means ESM-aware environments can import the added variants through the package exports while current usage remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.