Skip to content

Commit

Permalink
fix(builder): node package filter split by ','
Browse files Browse the repository at this point in the history
  • Loading branch information
deot committed Aug 16, 2023
1 parent 782488a commit b0c5e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/builder/src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const run = async (options: Build) => {
return viteBuild;
};

const needFilter = typeof nodePackage === 'string' && (nodePackage === '*' || nodePackage.includes(packageName));
const needFilter = typeof nodePackage === 'string' && (nodePackage === '*' || (nodePackage.split(',')).includes(packageName));
const formats = scriptFormats
.split(',')
.filter((i: string) => {
Expand Down

0 comments on commit b0c5e4c

Please sign in to comment.