mirror of
https://github.com/gregberge/loadable-components.git
synced 2026-01-25 15:24:15 +00:00
fix(server): use require instead of module.require (#457)
this improves support with 'esm' package Closes #455
This commit is contained in:
parent
30243482be
commit
064b4f83b2
@ -14,7 +14,7 @@ export const smartRequire = modulePath => {
|
||||
}
|
||||
|
||||
// eslint-disable-next-line global-require, import/no-dynamic-require, no-eval
|
||||
return eval('module.require')(modulePath)
|
||||
return eval('require')(modulePath)
|
||||
}
|
||||
|
||||
export const joinURLPath = (publicPath, filename) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user