Skip to content

zxcvbn.js included in merged.js #14357

Closed
Closed
@cannycookie

Description

@cannycookie

zxcvbn.js is not included in our theme, but when js bundling and merging is enabled this 850Kb file is added to the merged script.

Preconditions

  1. Magento 2.2.1
  2. Custom Theme

Steps to reproduce

  1. Enable a custom theme with no reference to password-strength-indicator or zxcvbn.js
  2. create override for magento-customer/view/frontend/requirejs-config.js and remove
    passwordStrengthIndicator: 'Magento_Customer/js/password-strength-indicator', zxcvbn: 'Magento_Customer/js/zxcvbn',
  3. Enable JS Bundling and merging
  4. Enable production mode

Expected result

  1. zxcvbn.js should not be included

Actual result

  1. Search minified script and find 122 instances of fuck

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ThemeFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions