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';
|
||||
/*global define,module*/
|
||||
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD
|
||||
define(null, function() { factory(root, document) });
|
||||
} else if (typeof module === 'object') {
|
||||
if (typeof module === 'object') {
|
||||
// Node, CommonJS-like
|
||||
module.exports = factory(root, document);
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
// AMD
|
||||
define(null, function() { factory(root, document) });
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
root.plyr = factory(root, document);
|
||||
|
Loading…
x
Reference in New Issue
Block a user