From 08b60ffb252350ff2325e3763cc7f414360fcbbe Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Fri, 6 May 2022 13:44:14 +0200 Subject: [PATCH] fix: hot reload (#45871) --- client/utils/build-challenges.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/utils/build-challenges.js b/client/utils/build-challenges.js index 73a03d575af..c6e0e4bac9c 100644 --- a/client/utils/build-challenges.js +++ b/client/utils/build-challenges.js @@ -21,7 +21,7 @@ exports.replaceChallengeNode = () => { const blockNameRe = /\d\d-[-\w]+\/([^/]+)\//; const posix = path.normalize(filePath).split(path.sep).join(path.posix.sep); const blockName = posix.match(blockNameRe)[1]; - const metaPath = path.resolve(META_DIR, `/${blockName}/meta.json`); + const metaPath = path.resolve(META_DIR, `${blockName}/meta.json`); delete require.cache[require.resolve(metaPath)]; const meta = require(metaPath); // TODO: reimplement hot-reloading of certifications