- https://jakeparis .com
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
/** | |
* Proxy for the `wp` object, with fallback | |
* to experimental names and error throwing | |
* when accessing a non-existent item (intended | |
* for debugging purposes). | |
*/ | |
export default new Proxy( {}, { | |
get( cache, moduleName, reciever ) { | |
if ( typeof cache[ moduleName ] === 'undefined' ) { | |
if ( typeof wp[ moduleName ] === 'undefined' ) { |