Ensure Require.js export works

This commit is contained in:
Josh Johnson 2016-10-28 21:59:43 +01:00
parent 1fcd9dea0d
commit 8fabf6788b
5 changed files with 3 additions and 5 deletions

View file

@ -3,7 +3,7 @@
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define("Choices", [], factory);
define([], factory);
else if(typeof exports === 'object')
exports["Choices"] = factory();
else

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -16,7 +16,6 @@ module.exports = {
publicPath: '/assets/scripts/dist/',
library: 'Choices',
libraryTarget: 'umd',
umdNamedDefine: true
},
eslint: {
configFile: '.eslintrc'

View file

@ -16,7 +16,6 @@ var config = {
publicPath: '/assets/scripts/dist/',
library: 'Choices',
libraryTarget: 'umd',
umdNamedDefine: true
},
libraryTarget: 'umd',
plugins: [