Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions assets/cjs_shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,16 @@ const getImportMetaUrl = () =>
: (document.currentScript && document.currentScript.src) ||
new URL('main.js', document.baseURI).href

const getImportMetaFilename = () =>
typeof document === 'undefined'
? __filename
: undefined

const getImportMetaDirname = () =>
typeof document === 'undefined'
? __dirname
: undefined

export const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()
export const importMetaFilename = /* @__PURE__ */ getImportMetaFilename()
export const importMetaDirname = /* @__PURE__ */ getImportMetaDirname()
Loading