DataTables / DataTables/Plugins

Common js integration

Open
#122 5 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

In bootstrap plugin (and others), we can find this code (https://github.com/DataTables/Plugins/blob/master/integration/bootstrap/3/dataTables.bootstrap.js#L177):

 // Node/CommonJS
factory( require('jquery'), require('datatables') );

"jquery" module is easy to get (https://www.npmjs.org/package/jquery), but where do the hell the module "datatables" comes from, as DataTables is not compatible, nor available at all in CommonJS ?

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 at integration/bootstrap/3/dataTables.bootstrap.js around line 177 and inspect the CommonJS factory call, then compare the referenced jquery and datatables modules with their npm availability. Done means the supported CommonJS integration and the source of the datatables module are clearly established or the integration issue is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.