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