react-backbone v0.24.0 Release Notes
Release Date: 2015-03-26 // about 9 years ago-
- โ remove jquery as a dependency - acce9b0
๐ If you are using webpack you can easily remove jquery from your app (assuming you don't need it for other purposes) by doing the following
๐ฆ package.json
dependencies: { // or some other $.ajax implementation "component-ajax": "0.0.2", "exoskeleton": "^0.7.0", ... }
webpack.config.js (npm install https://github.com/webpack/imports-loader)
plugins: [ new webpack.IgnorePlugin(/^jquery$/) ], loaders: [ { test: /exoskeleton\.js$/, loader: "imports?define=>false"} ], resolve: { alias: { backbone: 'exoskeleton/exoskeleton.js' } },
When initializing react-backbone
var ajax = require('component-ajax'); Backbone.ajax = function() { return ajax.apply(this, arguments); };