mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
1.2 KiB
1.2 KiB
Compiled code
CommonJS
The code is compiled with webpack for ES2017+.
axios-cache-interceptor: Redirects to/dist/index.jsaxios-cache-interceptor/dist/index.js: The main library file.axios-cache-interceptor/dist/index.d.ts: The Typescript definition file.
Every browser build is also compatible with CommonsJS because it builds with UMD, so you can use them too.
UMD
Note
: Axios itself requires ES6 Promises
The UMD code is compiled with webpack with support to >= ES5. See the
build config. You can import these files anywhere (Browser,
CommonsJS and more)
axios-cache-interceptor/dist/index.min.js: Production file for ES6+axios-cache-interceptor/dist/index.es5.min.js: Production file for ES5+axios-cache-interceptor/dist/index.es2020.min.js: Production file for ES2020+axios-cache-interceptor/dist/index.development.js: Development file (ES2020+)
<!-- You can use the cdn of your choice -->
<!-- UNPKG -->
<script crossorigin src="https://unpkg.com/axios-cache-interceptor@latest"></script>
<!-- JSDELIVR -->
<script
crossorigin
src="https://cdn.jsdelivr.net/npm/axios-cache-interceptor@latest"
></script>
<!-- Etc... -->