Skip to content

Commit 8709c5e

Browse files
committed
feat: add object-to-formdata dependency
1 parent 6c52651 commit 8709c5e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/runtime/composables/useSanctumForm.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import objectToFormData from 'object-to-formdata';
21
import type { FetchOptions, MappedResponseType, ResponseType } from 'ofetch';
32
import { cloneDeep, isEqual, get, set } from 'lodash-es';
43
import { reactive, toRaw, watch } from 'vue';
5-
import type { Form, NamedInputEvent, RequestMethod } from '../types';
4+
import type { Form, NamedInputEvent, RequestMethod } from '../types/index';
65
import { hasFile } from '../helpers/has-file';
76
import { useSanctumFetch } from './useSanctumFetch';
87

8+
const objectToFormData = await import('object-to-formdata');
9+
910
/**
1011
* Utility function to resolve an input's name attribute.
1112
*/

0 commit comments

Comments
 (0)