Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hdgClass is not defined when library is bundled with rollup #886

Open
rejhgadellaabsl opened this issue May 23, 2023 · 0 comments
Open

hdgClass is not defined when library is bundled with rollup #886

rejhgadellaabsl opened this issue May 23, 2023 · 0 comments

Comments

@rejhgadellaabsl
Copy link

rejhgadellaabsl commented May 23, 2023

What is the current behavior?

When the library is bundled with a tool like rollup like so:

import 'jquery-ui-multiselect-widget';
import 'jquery-ui-multiselect-widget/src/jquery.multiselect.filter';

the output will be wrapped in a "use strict" block. This causes an error when I click an option in the header:

Uncaught ReferenceError: hdgClass is not defined

De hdgClass variable is missing a var (line 1008)

for (hdgClass in i) { /* ... */ }

should be:

for (var hdgClass in i) { /* ... */ }

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo

I've attached the output of the rollop bundle:
lib.jquery-ui-multiselect.min.js.zip

Please tell us about your setup

  • Version: 3.0.1 (via npm)
  • Browser: Chrome
  • Other frameworks in use: Drupal 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant