vite-plugin-html icon indicating copy to clipboard operation
vite-plugin-html copied to clipboard

不推荐调用 url.parse / Call to URL.parse is deprecated

Open mhornbacher opened this issue 11 months ago • 0 comments

url.parse 已被弃用,这会触发许多用户在构建时发出警告,这只是噪音。鉴于我们需要的只是 pathname 属性,很容易用 new URL 替换 (url.parse is deprecated, this triggers a warning for many users on builds that is just noise. Given that all we need is the pathname attribute it is simple to replace with new URL)

mhornbacher avatar Mar 06 '24 19:03 mhornbacher