From 6148a43ff2279d1dbec7052fb22d8afe5f7375ee Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Thu, 13 Jul 2023 11:14:39 -0400 Subject: [PATCH] [Fix] `ExportMap`: 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 f61d3c170..38851059d 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 { settings, parserOptions, parserPath, languageOptions } = 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,