Skip to content

Commit

Permalink
fix: add PURE tags to treeshake components (#4266)
Browse files Browse the repository at this point in the history
  • Loading branch information
ydcjeff committed May 15, 2023
1 parent 2879785 commit 03decc2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/vee-validate/src/ErrorMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface ErrorMessageSlotProps {
message: string | undefined;
}

const ErrorMessageImpl = defineComponent({
const ErrorMessageImpl = /** #__PURE__ */ defineComponent({
name: 'ErrorMessage',
props: {
as: {
Expand Down
2 changes: 1 addition & 1 deletion packages/vee-validate/src/Field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ interface FieldSlotProps<TValue = unknown>
handleInput: FieldContext['handleChange'];
}

const FieldImpl = defineComponent({
const FieldImpl = /** #__PURE__ */ defineComponent({
name: 'Field',
inheritAttrs: false,
props: {
Expand Down
2 changes: 1 addition & 1 deletion packages/vee-validate/src/FieldArray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FieldArrayContext } from './types';
import { useFieldArray } from './useFieldArray';
import { normalizeChildren } from './utils';

const FieldArrayImpl = defineComponent({
const FieldArrayImpl = /** #__PURE__ */ defineComponent({
name: 'FieldArray',
inheritAttrs: false,
props: {
Expand Down
2 changes: 1 addition & 1 deletion packages/vee-validate/src/Form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type FormSlotProps = UnwrapRef<
getErrors<TValues extends GenericObject = GenericObject>(): FormErrors<TValues>;
};

const FormImpl = defineComponent({
const FormImpl = /** #__PURE__ */ defineComponent({
name: 'Form',
inheritAttrs: false,
props: {
Expand Down

0 comments on commit 03decc2

Please sign in to comment.