mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-08 00:42:15 +02:00
Ensure Require.js export works
This commit is contained in:
parent
1fcd9dea0d
commit
8fabf6788b
2
assets/scripts/dist/choices.js
vendored
2
assets/scripts/dist/choices.js
vendored
|
@ -3,7 +3,7 @@
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
module.exports = factory();
|
module.exports = factory();
|
||||||
else if(typeof define === 'function' && define.amd)
|
else if(typeof define === 'function' && define.amd)
|
||||||
define("Choices", [], factory);
|
define([], factory);
|
||||||
else if(typeof exports === 'object')
|
else if(typeof exports === 'object')
|
||||||
exports["Choices"] = factory();
|
exports["Choices"] = factory();
|
||||||
else
|
else
|
||||||
|
|
2
assets/scripts/dist/choices.js.map
vendored
2
assets/scripts/dist/choices.js.map
vendored
File diff suppressed because one or more lines are too long
2
assets/scripts/dist/choices.min.js
vendored
2
assets/scripts/dist/choices.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,6 @@ module.exports = {
|
||||||
publicPath: '/assets/scripts/dist/',
|
publicPath: '/assets/scripts/dist/',
|
||||||
library: 'Choices',
|
library: 'Choices',
|
||||||
libraryTarget: 'umd',
|
libraryTarget: 'umd',
|
||||||
umdNamedDefine: true
|
|
||||||
},
|
},
|
||||||
eslint: {
|
eslint: {
|
||||||
configFile: '.eslintrc'
|
configFile: '.eslintrc'
|
||||||
|
|
|
@ -16,7 +16,6 @@ var config = {
|
||||||
publicPath: '/assets/scripts/dist/',
|
publicPath: '/assets/scripts/dist/',
|
||||||
library: 'Choices',
|
library: 'Choices',
|
||||||
libraryTarget: 'umd',
|
libraryTarget: 'umd',
|
||||||
umdNamedDefine: true
|
|
||||||
},
|
},
|
||||||
libraryTarget: 'umd',
|
libraryTarget: 'umd',
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
Loading…
Reference in a new issue