Skip to content

Commit f08880e

Browse files
fix: incldude @formkit_vue as import name
1 parent 80c6af1 commit f08880e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ const CONTAINS_FORMKIT_RE = /<FormKit|<form-kit/
131131
/**
132132
* A regex to find the @__formkit_config__ comment in the code.
133133
*/
134-
const FORMKIT_CONFIG_RE = /(\/\*\s?@__formkit\.config\.ts__\s?\*\/.+)\)/g
134+
const FORMKIT_CONFIG_RE =
135+
/(\/\*\s?@__formkit\.config\.ts__\s?\*\/(?:.|\n)+?)\)/g
135136

136137
export const unpluginFactory: UnpluginFactory<Options | undefined> = (
137138
options = {
@@ -150,6 +151,7 @@ export const unpluginFactory: UnpluginFactory<Options | undefined> = (
150151
return (
151152
id.endsWith('.vue') ||
152153
id.includes('@formkit/vue') ||
154+
id.includes('@formkit_vue') ||
153155
id.endsWith('packages/vue/dist/index.mjs')
154156
)
155157
},

0 commit comments

Comments
 (0)