fix: imporat map change to importmap not imports.json
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
const getCacheKey = () => {
 | 
					const getCacheKey = () => {
 | 
				
			||||||
  // 基于import map文件的路径,而不是当前模块的URL
 | 
					  // 基于import map文件的路径,而不是当前模块的URL
 | 
				
			||||||
  const url = new URL('./imports.json', window.location.href);
 | 
					  const url = new URL('./importmap.json', window.location.href);
 | 
				
			||||||
  const basePath = url.pathname.replace('/imports.json', '');
 | 
					  const basePath = url.pathname.replace('/importmap.json', '');
 | 
				
			||||||
  return `importMap_${btoa(basePath).replace(/[+/=]/g, '_')}`;
 | 
					  return `importMap_${btoa(basePath).replace(/[+/=]/g, '_')}`;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
const getCurrentScriptData = () => {
 | 
					const getCurrentScriptData = () => {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "@kevisual/native",
 | 
					  "name": "@kevisual/native",
 | 
				
			||||||
  "version": "0.0.5",
 | 
					  "version": "0.0.6",
 | 
				
			||||||
  "description": "",
 | 
					  "description": "",
 | 
				
			||||||
  "main": "index.js",
 | 
					  "main": "index.js",
 | 
				
			||||||
  "files": [
 | 
					  "files": [
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user