Use `import` instead of `require`
KES777 opened this issue · comments
Is your feature request related to a problem? Please describe.
import { FormDataJson as FormDataJson } from "form-data-json-convert/dist/form-data-json";
After this line of code FormDataJson
stays undefined. Is this supported?
Describe the solution you'd like
Support modern way of module loading.
Hi. import
is not supported, as FormDataJson
is not a ES6 module.
Support for ES6 modules now added. https://github.com/brainfoolong/form-data-json/releases/tag/2.2.0
Thank you very much!