From 204e628007f0b00fab68702ffe194d6f7df7460c Mon Sep 17 00:00:00 2001 From: lihbr Date: Tue, 28 Jun 2022 15:53:28 +0200 Subject: [PATCH] fix: explicitely declare dependencies for runtime directory --- src/module.ts | 2 +- src/runtime/preview.vue | 2 ++ src/runtime/usePrismicPreview.ts | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/module.ts b/src/module.ts index 0ce3398..c0ac163 100644 --- a/src/module.ts +++ b/src/module.ts @@ -50,7 +50,7 @@ export default defineNuxtModule({ // Runtime dir boilerplate const resolver = createResolver(import.meta.url) - nuxt.options.build.transpile.push(resolver.resolve('runtime'), '@prismicio/vue') + nuxt.options.build.transpile.push(resolver.resolve('runtime'), '@nuxtjs/prismic', '@prismicio/vue') // Add runtime user code const proxyUserFileWithUndefinedFallback = (filename: string, path?: string, extensions = ['js', 'mjs', 'ts']) => { diff --git a/src/runtime/preview.vue b/src/runtime/preview.vue index 8d539f5..be7925f 100644 --- a/src/runtime/preview.vue +++ b/src/runtime/preview.vue @@ -12,6 +12,8 @@