This commit is contained in:
duanfuxiang
2025-01-05 11:51:39 +08:00
commit 0c7ee142cb
215 changed files with 20611 additions and 0 deletions

7
import-meta-url-shim.js Normal file
View File

@@ -0,0 +1,7 @@
const import_meta_url =
typeof document === 'undefined'
? require('url').pathToFileURL(__filename).href
: (document.currentScript && document.currentScript.src) ||
new URL('main.js', document.baseURI).href
export { import_meta_url }