Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 6fe5a17

Browse files
committed
remove require cache invalidation which didn't work in the first place - and unused Module import
1 parent 5797eca commit 6fe5a17

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/config/src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import path from "path";
22
import merge from "lodash/merge";
3-
import Module from "module";
43
import findUp from "find-up";
54
import Conf from "conf";
65
import TruffleError from "@truffle/error";
@@ -187,10 +186,6 @@ class TruffleConfig {
187186

188187
const config = new TruffleConfig(undefined, workingDirectory, undefined);
189188

190-
// The require-nocache module used to do this for us, but
191-
// it doesn't bundle very well. So we've pulled it out ourselves.
192-
//@ts-ignore
193-
delete require.cache[Module._resolveFilename(file, module)];
194189
const staticConfig = originalRequire(file);
195190

196191
config.merge(staticConfig);

0 commit comments

Comments
 (0)