mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Added support for Axios to be loaded with require('axios').default; (#5225)
Added module import tests; Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -74,5 +74,6 @@ axios.AxiosHeaders = AxiosHeaders;
|
||||
|
||||
axios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
||||
|
||||
axios.default = axios;
|
||||
// this module should only have a default export
|
||||
export default axios
|
||||
|
||||
Reference in New Issue
Block a user