mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
fix(vite): add missing import.meta
functions (#1513)
This commit is contained in:
parent
00e25fa8e8
commit
cf99fd2862
@ -149,7 +149,8 @@ async function __instantiateModule__(url, urlStack) {
|
|||||||
const stubModule = { [Symbol.toStringTag]: 'Module' }
|
const stubModule = { [Symbol.toStringTag]: 'Module' }
|
||||||
Object.defineProperty(stubModule, '__esModule', { value: true })
|
Object.defineProperty(stubModule, '__esModule', { value: true })
|
||||||
mod.stubModule = stubModule
|
mod.stubModule = stubModule
|
||||||
const importMeta = { url, hot: { accept() {} } }
|
// https://vitejs.dev/guide/api-hmr.html
|
||||||
|
const importMeta = { url, hot: { accept() {}, prune() {}, dispose() {}, invalidate() {}, decline() {}, on() {} } }
|
||||||
urlStack = urlStack.concat(url)
|
urlStack = urlStack.concat(url)
|
||||||
const isCircular = url => urlStack.includes(url)
|
const isCircular = url => urlStack.includes(url)
|
||||||
const pendingDeps = []
|
const pendingDeps = []
|
||||||
|
Loading…
Reference in New Issue
Block a user