Skip to content

Initialization fails with Webpack #1255

@rdicroce

Description

@rdicroce

I'm trying to use tablesorter with Webpack, but when I load the resulting JS in a browser, I get "ReferenceError: jQuery is not defined".

I'm not 100% sure, but I think the problem is the IIFEs that register tablesorter as a jQuery plugin. The function definitions use '$' as the jQuery variable name, but when the function is invoked, the provided argument is 'jQuery'. Which works if jQuery is loaded on the page by a normal script tag, but not when using a module loader.

The jQuery/$ mish-mash was copypasta'd into all the widgets as well, so they all need fixing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions