Update the plugin to be an ESM module, compatible with sitespeed 27+ versions
The current plugin is written as a CommonJS module, which doesn't work for sitespeed version 27 onward.
Converting this plugin to be an ESM module will let us bump the version of sistespeed that's being used to be more up to date.