refactor: remove useless transpiled build

This commit is contained in:
Robert Soriano
2022-05-20 14:26:45 -07:00
committed by GitHub
parent c95d46f43a
commit 6dcb4ce8a6

View File

@@ -20,7 +20,7 @@ export default defineNuxtModule<ModuleOptions>({
}, },
async setup(options, nuxt) { async setup(options, nuxt) {
const runtimeDir = fileURLToPath(new URL('./runtime', import.meta.url)) const runtimeDir = fileURLToPath(new URL('./runtime', import.meta.url))
nuxt.options.build.transpile.push(runtimeDir, '#build/trpc-client', '#build/trpc-handler', '#build/trpc-helpers') nuxt.options.build.transpile.push(runtimeDir, '#build/trpc-client', '#build/trpc-handler')
const handlerPath = join(nuxt.options.buildDir, 'trpc-handler.ts') const handlerPath = join(nuxt.options.buildDir, 'trpc-handler.ts')
const trpcOptionsPath = join(nuxt.options.rootDir, 'server/trpc') const trpcOptionsPath = join(nuxt.options.rootDir, 'server/trpc')