brainfoolong / form-data-json

A zero dependency, cross browser library to easily get or set/manipulate form input values as/from a json object.
https://brainfoolong.github.io/form-data-json
MIT License
60 stars 10 forks source link

Use `import` instead of `require` #33

Closed KES777 closed 1 year ago

KES777 commented 1 year ago

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.

brainfoolong commented 1 year ago

Hi. import is not supported, as FormDataJson is not a ES6 module.

brainfoolong commented 1 year ago

Support for ES6 modules now added. https://github.com/brainfoolong/form-data-json/releases/tag/2.2.0

KES777 commented 1 year ago

Thank you very much!