lisonge / vite-plugin-monkey

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

externalResource 中 raw / url 导入的处理问题 #21

Closed Tsuk1ko closed 1 year ago

Tsuk1ko commented 1 year ago

https://github.com/lisonge/vite-plugin-monkey/blob/b4366118abf404ffb772e67ca9444809066ecd6c/packages/vite-plugin-monkey/src/node/plugins/externalResource.ts#L130-L165

此处的 else if 在扩展名判断处断开了,导致扩展名处理会覆盖 raw / url 的处理,按理来说应该全部用 else if 连接

lisonge commented 1 year ago

很有道理

lisonge commented 1 year ago

fixed by v2.4.4