fix: imporat map change to importmap not imports.json

This commit is contained in:
熊潇 2025-07-26 21:14:40 +08:00
parent c84ead2b5b
commit 74953273d4
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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": [