一覧へ戻る
violentmonkey/rollup-plugin-userscript(新しいタブで開きます)
主要言語: TypeScript
Rollup plugin for userscript
- star 数
- 20
- watcher 数
- 2
- fork 数
- 9
- issue 数
- 0
- 最終更新
- 2025/11/25
主要言語: TypeScript
Rollup plugin for userscript
Automatically parse metadata and set @grants.
With this plugin, @grants for GM_* functions will be added at compile time.
Add the plugin to rollup.config.js:
import userscript from 'rollup-plugin-userscript'; const plugins = [ // ... userscript(meta => meta.replace('process.env.AUTHOR', pkg.author)), ];
Import the metadata file with a suffix ?userscript-metadata in your script:
import './meta.js?userscript-metadata';