We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c6af1 commit f08880eCopy full SHA for f08880e
src/index.ts
@@ -131,7 +131,8 @@ const CONTAINS_FORMKIT_RE = /<FormKit|<form-kit/
131
/**
132
* A regex to find the @__formkit_config__ comment in the code.
133
*/
134
-const FORMKIT_CONFIG_RE = /(\/\*\s?@__formkit\.config\.ts__\s?\*\/.+)\)/g
+const FORMKIT_CONFIG_RE =
135
+ /(\/\*\s?@__formkit\.config\.ts__\s?\*\/(?:.|\n)+?)\)/g
136
137
export const unpluginFactory: UnpluginFactory<Options | undefined> = (
138
options = {
@@ -150,6 +151,7 @@ export const unpluginFactory: UnpluginFactory<Options | undefined> = (
150
151
return (
152
id.endsWith('.vue') ||
153
id.includes('@formkit/vue') ||
154
+ id.includes('@formkit_vue') ||
155
id.endsWith('packages/vue/dist/index.mjs')
156
)
157
},
0 commit comments