mirror of
https://github.com/tenrok/axios.git
synced 2026-06-14 18:42:33 +03:00
fix: issue with exports not working correctly in common js scenarios
This commit is contained in:
+1
-8
@@ -14,7 +14,6 @@ import toFormData from './helpers/toFormData.js';
|
||||
import AxiosError from './core/AxiosError.js';
|
||||
import spread from './helpers/spread.js';
|
||||
import isAxiosError from './helpers/isAxiosError.js';
|
||||
import AxiosHeaders from './core/AxiosHeaders.js';
|
||||
|
||||
|
||||
/**
|
||||
@@ -75,10 +74,4 @@ axios.formToJSON = thing => {
|
||||
return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
||||
};
|
||||
|
||||
export {
|
||||
axios as default,
|
||||
Axios,
|
||||
AxiosHeaders,
|
||||
AxiosError,
|
||||
CanceledError,
|
||||
};
|
||||
export default axios
|
||||
|
||||
+1
-1
@@ -77,7 +77,7 @@ export default async () => {
|
||||
file: `dist/node/${name}.cjs`,
|
||||
format: "cjs",
|
||||
preferConst: true,
|
||||
exports: "named",
|
||||
exports: "default",
|
||||
banner
|
||||
},
|
||||
plugins: [
|
||||
|
||||
Reference in New Issue
Block a user