Skip to content

Commit a663fbc

Browse files
committed
moving require into loader function
1 parent 8d3b401 commit a663fbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/webpack/copy-files-loader.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
'use strict';
1111

1212
const LoaderDependency = require('webpack/lib/dependencies/LoaderDependency');
13-
const fileLoader = require('file-loader'); // eslint-disable-line node/no-unpublished-require
1413
const loaderUtils = require('loader-utils');
1514
const path = require('path');
1615

@@ -86,6 +85,8 @@ module.exports.default = function loader(source) {
8685
}
8786
});
8887

88+
const fileLoader = require('file-loader'); // eslint-disable-line node/no-unpublished-require
89+
8990
// If everything is OK, let the file-loader do the copy
9091
return fileLoader.bind(this)(source);
9192
};

0 commit comments

Comments
 (0)