add no cacheImportMap
This commit is contained in:
parent
1d0df822ce
commit
c84ead2b5b
@ -23,6 +23,11 @@ const getCurrentScriptData = () => {
|
||||
// 从localStorage获取缓存
|
||||
const getCachedImportMap = () => {
|
||||
try {
|
||||
const searchParams = new URLSearchParams(window.location.search);
|
||||
const noCacheImportMap = searchParams.get('noCacheImportMap');
|
||||
if (noCacheImportMap === 'true') {
|
||||
return null;
|
||||
}
|
||||
const cacheKey = getCacheKey();
|
||||
const cached = localStorage.getItem(cacheKey);
|
||||
if (cached) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@kevisual/native",
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.5",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user