lisonge / vite-plugin-monkey

A vite plugin server and build your.user.js for userscript engine like Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat
MIT License
1.24k stars 65 forks source link

脚本猫, 后台脚本不支持嘛? #128

Closed Hunlongyu closed 5 months ago

Hunlongyu commented 5 months ago

https://docs.scriptcat.org/docs/dev/backgroud/

脚本猫独有的后台脚本,在 vite.config.js 里配置 crontab 和 background· 属性声明,在构建后,会丢失。

导致 无法正常运行。

希望能加上~ 感谢~🥹

lisonge commented 5 months ago

首先脚本猫的后台脚本不是合法语法的 js 模块,其次不支持动态加载模块,无法支持

image