Skip to content

Instantly share code, notes, and snippets.

View jakeparis's full-sized avatar

Jake jakeparis

View GitHub Profile
/**
* 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' ) {