Skip to content

Beacon API breaks build #126

@rejas

Description

@rejas

Calling Modernizr via:
<script src="js/vendor/modernizr-3.6.0.custom.min.js"></script>

When Modernizr is built using https://modernizr.com/download/?-beacon-localstorage-video-webp-addtest-setclasses-shiv, Modernizr fails to load with the following issue:

modernizr-3.6.0.custom.min.js:3 Uncaught ReferenceError: define is not defined at modernizr-3.6.0.custom.min.js:3

Adjusting to https://modernizr.com/download/?-localstorage-video-webp-addtest-setclasses-shiv (i.e. removing the Beacon API) works fine.

This also applies to the development build https://modernizr.com/download?do_not_use_in_production

Tested in latest Chrome; can be replicated in Firefox as well.

(Moved from Modernizr/Modernizr#2303)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions