Convert plugin to ESM module
requested to merge 11-update-the-plugin-to-be-an-esm-module-compatible-with-sitespeed-27-versions into master
Related to #11
This MR updates the plugin from being a CommonJS module to a ESM module so that it can be compatible with sitespeed version 27 onward