diff --git a/importmap.js b/importmap.js index fe8bd8c..76609da 100644 --- a/importmap.js +++ b/importmap.js @@ -1,7 +1,7 @@ const getCacheKey = () => { // 基于import map文件的路径,而不是当前模块的URL - const url = new URL('./imports.json', window.location.href); - const basePath = url.pathname.replace('/imports.json', ''); + const url = new URL('./importmap.json', window.location.href); + const basePath = url.pathname.replace('/importmap.json', ''); return `importMap_${btoa(basePath).replace(/[+/=]/g, '_')}`; }; const getCurrentScriptData = () => { diff --git a/package.json b/package.json index 46f6c90..8182b56 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/native", - "version": "0.0.5", + "version": "0.0.6", "description": "", "main": "index.js", "files": [