From 74953273d46e476b3e477bc1c933a8ef67d1fec2 Mon Sep 17 00:00:00 2001 From: xion Date: Sat, 26 Jul 2025 21:14:40 +0800 Subject: [PATCH] fix: imporat map change to importmap not imports.json --- importmap.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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": [