Skip to content

Commit

Permalink
fix: temp fix to skip transformInclude
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-schroeder committed Sep 29, 2023
1 parent 28de1d4 commit 28f4b0a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,15 @@ export const unpluginFactory: UnpluginFactory<Options | undefined> = (
// webpack's id filter is outside of loader logic,
// an additional hook is needed for better perf on webpack
transformInclude(id: string) {

Check failure on line 150 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

'id' is defined but never used
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
Expand Down

0 comments on commit 28f4b0a

Please sign in to comment.