Skip to content

Commit

Permalink
chore: use isArray to check array (#10953)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Nov 16, 2022
1 parent 34db08b commit 02c334a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/config.ts
Expand Up @@ -533,7 +533,7 @@ export async function resolveConfig(

const assetsFilter =
config.assetsInclude &&
(!(config.assetsInclude instanceof Array) || config.assetsInclude.length)
(!Array.isArray(config.assetsInclude) || config.assetsInclude.length)
? createFilter(config.assetsInclude)
: () => false

Expand Down

0 comments on commit 02c334a

Please sign in to comment.