Skip to content

Commit

Permalink
Updated builds to fix requirejs #220
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Walton committed Aug 21, 2017
1 parent ca383de commit 086ee0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/backbone.localStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("underscore"), require("backbone"));
else if(typeof define === 'function' && define.amd)
define([, ], factory);
define(["backbone", "backbone"], factory);
else if(typeof exports === 'object')
exports["Backbone.LocalStorage"] = factory(require("underscore"), require("backbone"));
else
Expand Down
2 changes: 1 addition & 1 deletion build/backbone.localStorage.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ module.exports = {
},
externals: {
backbone: {
amd: 'backbone',
commonjs: 'backbone',
commonjs2: 'backbone',
root: 'Backbone'
},
underscore: {
amd: 'backbone',
commonjs: 'underscore',
commonjs2: 'underscore',
root: '_'
Expand Down

0 comments on commit 086ee0b

Please sign in to comment.