Skip to content

Commit 6148a43

Browse files
committed
[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
1 parent 6b95a02 commit 6148a43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ExportMap.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ let prevSettings = '';
791791
* also calculate a cacheKey, where parts of the cacheKey hash are memoized
792792
*/
793793
function childContext(path, context) {
794-
const { settings, parserOptions, parserPath } = context;
794+
const { settings, parserOptions, parserPath, languageOptions } = context;
795795

796796
if (JSON.stringify(settings) !== prevSettings) {
797797
settingsHash = hashObject({ settings }).digest('hex');
@@ -805,6 +805,7 @@ function childContext(path, context) {
805805

806806
return {
807807
cacheKey: String(parserPath) + parserOptionsHash + settingsHash + String(path),
808+
languageOptions,
808809
settings,
809810
parserOptions,
810811
parserPath,

0 commit comments

Comments
 (0)