Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit df53572

Browse files
timmywilljharb
authored andcommittedJul 13, 2023
[Fix] 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 f302f7d commit df53572

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)
Please sign in to comment.