A Rollup plugin for defining userscript metadata blocks, suitable for use with Tampermonkey, Violentmonkey, and other userscript managers.
- Define userscript metadata blocks in your Rollup build
- Automatically generates the
@grantmetadata based on the GM API functions used - Compatible with Tampermonkey, Violentmonkey, and more
npm install @editor-x/rollup-plugin-userscript --save-devAdd the plugin to your rollup.config.js:
importuserscriptfrom'@editor-x/rollup-plugin-userscript';exportdefault{// ...your configplugins: [userscript({// plugin options})]};MIT