Check for module.exports as well for CommonJS Modules

This commit is contained in:
Marvin Hagemeister 2016-01-26 17:05:57 +01:00
parent 4fda65c862
commit a285fcc4ec
2 changed files with 3 additions and 3 deletions

4
dist/plyr.js vendored

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@
'use strict';
/*global define,module*/
if (typeof module === 'object') {
if (typeof module === 'object' && typeof module.exports === 'object') {
// Node, CommonJS-like
module.exports = factory(root, document);
} else if (typeof define === 'function' && define.amd) {