From a59d1f927572f55fe65832722966d39da9ec3b92 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Thu, 13 Jul 2023 11:14:39 -0400 Subject: [PATCH] [Fix] pass languageOptions through in child context - utils/parse.js has support with tests for languageOptions, but languageOptions were never passed along in ExportMap --- src/ExportMap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ExportMap.js b/src/ExportMap.js index f61d3c170a..3ae11220f9 100644 --- a/src/ExportMap.js +++ b/src/ExportMap.js @@ -791,7 +791,7 @@ let prevSettings = ''; * also calculate a cacheKey, where parts of the cacheKey hash are memoized */ function childContext(path, context) { - const { settings, parserOptions, parserPath } = context; + const { languageOptions, settings, parserOptions, parserPath } = context; if (JSON.stringify(settings) !== prevSettings) { settingsHash = hashObject({ settings }).digest('hex'); @@ -805,6 +805,7 @@ function childContext(path, context) { return { cacheKey: String(parserPath) + parserOptionsHash + settingsHash + String(path), + languageOptions, settings, parserOptions, parserPath,