JSPM

jquery2

2.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 255
  • Score
    100M100P100Q106761F
  • License BSD

jQuery2 for browserify

Package Exports

  • jquery2

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jquery2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Introduction

A patched version of jQuery 2.0.2 that doesn't create the global $. It's supposed to be used with node-browserify.

With Backbone

// src/backbone.js
'use strict';

var jquery = require('jquery2');
var backbone = require('backbone');

backbone.$ = jquery;

module.exports = backbone;
// src/main.js
'use strict';

var backbone = require('./backbone');

console.log(window.backbone);
// => undefined
console.log(backbone);
// => Backbone
console.log(window.$);
// => undefined