From 28f4b0a539b8b1d5bf203caacd9166c7e6d7a7e3 Mon Sep 17 00:00:00 2001 From: Justin Schroeder Date: Fri, 29 Sep 2023 13:03:55 -0400 Subject: [PATCH] fix: temp fix to skip transformInclude --- src/index.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index 2eaecfa..1f594da 100644 --- a/src/index.ts +++ b/src/index.ts @@ -148,12 +148,15 @@ export const unpluginFactory: UnpluginFactory = ( // webpack's id filter is outside of loader logic, // an additional hook is needed for better perf on webpack transformInclude(id: string) { - return ( - id.endsWith('.vue') || - id.includes('@formkit/vue') || - id.includes('@formkit_vue') || - id.endsWith('packages/vue/dist/index.mjs') - ) + // TODO: resolve why @formkit/vue is not always identifiable by the id + // and remove this early return workaround: + return true + // return ( + // id.endsWith('.vue') || + // id.includes('@formkit/vue') || + // id.includes('@formkit_vue') || + // id.endsWith('packages/vue/dist/index.mjs') + // ) }, // just like rollup transform