add no cacheImportMap
This commit is contained in:
		@@ -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": [
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user