Skip to content

Commit

Permalink
Merge pull request #67 from hedgepigdaniel/fix/critical-dependency-wa…
Browse files Browse the repository at this point in the history
…rning

Fix webpack critical dependency warning
  • Loading branch information
ScriptedAlchemy authored Sep 4, 2018
2 parents 696b445 + 332c50f commit f1fe940
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions universalImport.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ function setHasPlugin() {
var weakId = require.resolveWeak('react-universal-component')
universal = __webpack_require__(weakId)
} else {
var pkg = 'react-universal-component'
universal = module.require(pkg)
universal = module.require('react-universal-component')
}

if (universal) {
Expand Down

0 comments on commit f1fe940

Please sign in to comment.