Skip to content

Commit

Permalink
Fix loader detection for node 12
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilwanner committed Jun 23, 2019
1 parent 5fb5429 commit d240049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loaders/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { applyFileLoader } = require('./file-loader');
*/
const isModuleInstalled = (name, resolvePath) => {
try {
require.resolve(name, resolvePath ? { paths: [resolvePath] } : {});
require.resolve(name, resolvePath ? { paths: [resolvePath] } : undefined);

return true;
} catch (e) {
Expand Down

0 comments on commit d240049

Please sign in to comment.