Skip to content

Commit

Permalink
fix AMD bundle by hacking around check in he module; closes #3000
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Sep 10, 2017
1 parent 463a173 commit 02504a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/dedefine.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
*/

var through = require('through2');
var defineRx = /typeof define === ['"]function['"] && define\.amd/g;

var defineRx = /typeof\s+define\s*===?\s*['"]function['"]\s*&&\s*(?:define\.amd|typeof\s+define\.amd\s*===?\s*['"]object['"]\s*&&\s*define\.amd)/g;
function createStream () {
return through.obj(function (chunk, enc, next) {
this.push(String(chunk)
Expand Down

0 comments on commit 02504a3

Please sign in to comment.