Skip to content

Commit

Permalink
feat: Hopefully resolve dynamic webpack warnings in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Mar 22, 2019
1 parent 6bcd128 commit ce58fd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion browser-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ exports.resolve = function(pathToModule) {
};

exports.require = function(pathToModule) {
return require(exports.resolve(pathToModule));
var r = 'function' === typeof __webpack_require__
? __non_webpack_require__
: require;
return r(exports.resolve(pathToModule));
};

exports.toString = function() {
Expand Down

0 comments on commit ce58fd1

Please sign in to comment.