2
0
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:
Dmitriy Mozgovoy
2022-11-07 20:32:24 +02:00
committed by GitHub
parent 9452f06aa9
commit c0a723ab6c
10 changed files with 376 additions and 2 deletions
+1
View File
@@ -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