Swap CommonJS and AMD module check so that CommonJS is checked first. Fixes Webpack module bundling
This commit is contained in:
parent
01bdcc2b01
commit
4fda65c862
2
dist/plyr.js
vendored
2
dist/plyr.js
vendored
File diff suppressed because one or more lines are too long
@ -11,12 +11,12 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
/*global define,module*/
|
/*global define,module*/
|
||||||
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof module === 'object') {
|
||||||
// AMD
|
|
||||||
define(null, function() { factory(root, document) });
|
|
||||||
} else if (typeof module === 'object') {
|
|
||||||
// Node, CommonJS-like
|
// Node, CommonJS-like
|
||||||
module.exports = factory(root, document);
|
module.exports = factory(root, document);
|
||||||
|
} else if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD
|
||||||
|
define(null, function() { factory(root, document) });
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
root.plyr = factory(root, document);
|
root.plyr = factory(root, document);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user