Skip to content

Commit 9323b3a

Browse files
author
Ives van Hoorne
committed
Fix eslint
1 parent 13ecd63 commit 9323b3a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/sandbox/eval/loaders/dependency-resolver.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ export default function getDependency(
1515
// This is also included in CRA by default, so we keep compatability with
1616
// CRA.
1717
if (dependencyPath.startsWith('babel-runtime')) {
18-
return require('../../../../node_modules/babel-runtime' + // eslint-disable-line global-require
19-
dependencyPath.replace('babel-runtime', ''));
18+
// eslint-disable-next-line global-require, import/no-dynamic-require
19+
return require(`../../../../node_modules/babel-runtime${dependencyPath.replace(
20+
'babel-runtime',
21+
''
22+
)}`);
2023
}
2124

2225
const dependencyModule =

0 commit comments

Comments
 (0)