This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📦 NEW: External @wordpress/api-fetch
Allows using the external wp.apiFetch method. Otherwise, if you try to import it from the @wordpress/api-fetch package, it won't have the REST API base URL initialized. Example of usage: import apiFetch from '@wordpress/api-fetch'; apiFetch( { path: '/wp/v2/posts' } ).then( posts => { console.log( posts ); } );
- Loading branch information
40584db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i thinl dotenv file should be there atleast for externals config for webpack
40584db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go ahead build one and send in a PR>