add no cacheImportMap

This commit is contained in:
熊潇 2025-07-26 01:28:00 +08:00
parent 1d0df822ce
commit c84ead2b5b
2 changed files with 6 additions and 1 deletions

View File

@ -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) {

View File

@ -1,6 +1,6 @@
{
"name": "@kevisual/native",
"version": "0.0.4",
"version": "0.0.5",
"description": "",
"main": "index.js",
"files": [