parent
83c3389945
commit
1c27a30ab4
|
|
@ -25,8 +25,9 @@ const getConfigsForDir = (rootDir, configFileName) => {
|
||||||
let current = null;
|
let current = null;
|
||||||
let confItems;
|
let confItems;
|
||||||
|
|
||||||
delete require.cache[require.resolve(rootDir, confPath)]; // NB: For 'watch' to properly work, the cache needs to be deleted before each require.
|
const resolvedPath = path.resolve(rootDir, confPath);
|
||||||
current = require(path.resolve(rootDir, confPath));
|
delete require.cache[resolvedPath]; // NB: For 'watch' to properly work, the cache needs to be deleted before each require.
|
||||||
|
current = require(resolvedPath);
|
||||||
|
|
||||||
// Handle single objects or arrays of configs.
|
// Handle single objects or arrays of configs.
|
||||||
if (current && current.length) {
|
if (current && current.length) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue