In rollup.config.js, I deleted the code that generates the JavaScript that uses UMD.
Instead, I added code to generate JavaScript that uses CJS.
I think ES and CJS are sufficient these days...
If this pr gets merged, I'll try to work on other plugin repositories as well.
This pr includes the settings about module system, typescript and rollup settings.
I changed
"moduleResolution"
in tsconfig.json from "node" to "bundler". (https://www.typescriptlang.org/docs/handbook/modules/guides/choosing-compiler-options.html#im-using-a-bundler)In rollup.config.js, I deleted the code that generates the JavaScript that uses UMD. Instead, I added code to generate JavaScript that uses CJS. I think ES and CJS are sufficient these days...
If this pr gets merged, I'll try to work on other plugin repositories as well.