fix: imporat map change to importmap not imports.json
This commit is contained in:
parent
c84ead2b5b
commit
74953273d4
@ -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 = () => {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@kevisual/native",
|
||||
"version": "0.0.5",
|
||||
"version": "0.0.6",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user