Skip to content

Commit

Permalink
Add support for ESM_DISABLE_CACHE environment variable. [closes #595]
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Sep 10, 2018
1 parent a70d48b commit 30d3495
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/caching-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ import assign from "./util/assign.js"
import exists from "./fs/exists.js"
import getCacheName from "./util/get-cache-name.js"
import getCachePathHash from "./util/get-cache-path-hash.js"
import getEnv from "./util/get-env.js"
import mkdirp from "./fs/mkdirp.js"
import noop from "./util/noop.js"
import parseJSON from "./util/parse-json.js"
import realProcess from "./real/process.js"
import removeFile from "./fs/remove-file.js"
import shared from "./shared.js"
Expand Down Expand Up @@ -219,6 +221,7 @@ function init() {
dirty =
cache.dirty =
NYC ||
parseJSON(getEnv("ESM_DISABLE_CACHE")) ||
exists(resolve(cachePath, "../@babel/register"))
}

Expand Down

0 comments on commit 30d3495

Please sign in to comment.