Skip to content

Commit

Permalink
Fix responsive-loader import for node 12
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilwanner committed Jun 24, 2019
1 parent 37e3784 commit 7d0d995
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 @@ -45,7 +45,7 @@ const detectLoaders = (resolvePath) => {
}

if (isModuleInstalled('responsive-loader', resolvePath)) {
responsive = require.resolve('responsive-loader', resolvePath ? { paths: [resolvePath] } : {}).replace(/(\/|\\)lib(\/|\\)index.js$/g, '');
responsive = require.resolve('responsive-loader', resolvePath ? { paths: [resolvePath] } : undefined).replace(/(\/|\\)lib(\/|\\)index.js$/g, '');

if (isModuleInstalled('sharp', resolvePath)) {
responsiveAdapter = 'sharp';
Expand Down

0 comments on commit 7d0d995

Please sign in to comment.