Skip to content

Commit

Permalink
fix(server): use eval to prevent webpack warning (#240)
Browse files Browse the repository at this point in the history
Closes #234
  • Loading branch information
gregberge committed Feb 15, 2019
1 parent 71f7bcd commit 948165d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const smartRequire = modulePath => {
return __non_webpack_require__(modulePath)
}

// eslint-disable-next-line global-require, import/no-dynamic-require
return require(modulePath)
// eslint-disable-next-line global-require, import/no-dynamic-require, no-eval
return eval('module.require')(modulePath)
}

export const joinURLPath = (...paths) => {
Expand Down

0 comments on commit 948165d

Please sign in to comment.