axios-axios/index.js
littledian ef1c48a476
fix: eep top-level export same with static properties (#5109)
* chore: add necessary devDependencies for rollup build

* fix: keep top-level export same with static properties(#5031)

Co-authored-by: ronggui.shu <ronggui.shu@sci-inv.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-10-13 22:17:06 +02:00

33 lines
461 B
JavaScript

import axios from './lib/axios.js';
// Keep top-level export same with static properties
// so that it can keep same with es module or cjs
const {
Axios,
AxiosError,
CanceledError,
isCancel,
CancelToken,
VERSION,
all,
Cancel,
isAxiosError,
spread,
toFormData
} = axios;
export default axios;
export {
Axios,
AxiosError,
CanceledError,
isCancel,
CancelToken,
VERSION,
all,
Cancel,
isAxiosError,
spread,
toFormData
}