Skip to content

Ensure that jQuery presence check added by Grunt doesn't break AMD or CommonJS #13811

Closed

Description

@cvrebert

Follow-up to #13772.
We should have some test pages that exercise AMD/CommonJS usage of Bootstrap.

Activity

  1. added this to the v3.2.0 milestone on Jun 13, 2014
  2. hnrch02 commented on Jun 13, 2014

    @hnrch02
    Collaborator

    I guess we can set up one example using RequireJS and one using Browserify. Where would we put those test pages though? In js/tests/umd?
    Also, we need to change the presence check to:

    if (typeof define  == 'undefined' &&
        typeof exports == 'undefined' &&
        typeof jQuery  == 'undefined') {
      throw new Error('Bootstrap\'s JavaScript requires jQuery')
    }
  3. cvrebert commented on Jun 22, 2014

    @cvrebert
    CollaboratorAuthor

    Checks fixed in #13842.
    #13843 will cover the tests.

  4. added a commit that references this issue on Jun 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildBuild scripts, bundling, dist/jsJavaScript or TypeScript sources and plugins

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions