Skip to content

Commit

Permalink
fix(builder): html.meta.referrer can't accept literal false value
Browse files Browse the repository at this point in the history
  • Loading branch information
Asuka109 committed Aug 30, 2023
1 parent 1042583 commit d3ba6ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/red-dolphins-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/builder-shared': patch
---

fix(builder): `html.meta.referrer` can't accept literal false value
fix(builder): `html.meta.referrer` 配置无法接受 false 字面量作为值
2 changes: 1 addition & 1 deletion packages/builder/builder-shared/src/schema/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const MetaAttributesSchema: ZodType<MetaAttributes> = z.record(
);

export const MetaOptionsSchema: ZodType<MetaOptions> = z.record(
z.union([z.string(), z.literal('false'), MetaAttributesSchema]),
z.union([z.string(), z.literal(false), MetaAttributesSchema]),
);

export const ScriptLoadingSchema: ZodType<ScriptLoading> = z.enum([
Expand Down

0 comments on commit d3ba6ea

Please sign in to comment.