-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
correctly handle when helper functions have been internally renamed (#538)
- Loading branch information
Showing
2 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import * as shared from '../../shared/index.js'; | ||
|
||
export const nameMap = new Map(); | ||
export const sharedMap = new Map(); | ||
|
||
Object.keys(shared).forEach( key => { | ||
const value = shared[ key ]; // eslint-disable-line import/namespace | ||
if ( typeof value === 'function' ) { | ||
nameMap.set( value.name, key ); | ||
} | ||
sharedMap.set( key, value.toString() ); | ||
}); |