-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56a9841
commit b44c6b3
Showing
1 changed file
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ const { setupCache } = require('axios-cache-interceptor'); | |
// EcmaScript (ES2017+) | ||
import { setupCache } from 'axios-cache-interceptor'; | ||
|
||
// UMD (ES5+) | ||
// UMD (ES5+) | ||
const { setupCache } = window.AxiosCacheInterceptor; | ||
|
||
// ESM with Skypack CDN | ||
|
@@ -31,14 +31,10 @@ setupCache(axiosInstance, { | |
|
||
```html | ||
<!-- Development UMD build for ES2017+ (~12.4 KiB) --> | ||
<script | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dev/index.bundle.js" | ||
></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dev/index.bundle.js"></script> | ||
|
||
<!-- Production UMD build for ES5+ (~14.1 KiB) --> | ||
<script | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.bundle.js" | ||
></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.bundle.js"></script> | ||
``` | ||
|
||
<br /> | ||
|