Skip to content

Tag: javascript

What’s the reason Rollup build Js into two files cjs and es

Recently I saw a package that has two built files. I am curious why there are two Js files. When I import the package which file will be used and how it determine which file to be imported? Answer The file you get when doing a default import is documented in the package.json of that package (as in most npm

Form submit without PHP

I’ve been trying to figure out how to submit form data without using PHP code, is there a way? The mailto: in HTML 5 only has the user fill the form out, then when submit is clicked, it opens another application (mail app on desktop/laptop, and mail app on smartphones) and puts the data fields inside the mess…