Bundling with Rollup
FormValidation was rewritten in ES6 from v1.0.0. It comes with the
dist/es6 directory that consists of ES6 compatible classes. This guide shows how you can bundle FormValidation with Rollup.
Assume that your folder has the following structure:
Now, you can set the alias to FormValidation by installing the rollup-plugin-alias plugin:
and using it in
From now on, you can import any file from FormValidation ES6 package as following: