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

replace module with CDN. work with vite.

Results 6 vite-plugin-cdn issues
Sort by recently updated
recently updated
newest added

```js cdn({ modules: [{ name: "vue", relativeModule: "vue.global.prod.min.js" }, "vue-router", "vue-demi", "pinia", "axios" ], resolve: defineResolve({ name: "resolve:custom", setup({ extra }) { const baseURL = "https://cdn.staticfile.net/"; const { version, name,...

![image](https://github.com/nonzzz/vite-plugin-cdn/assets/68853957/facbea93-b491-46fb-b1ed-a030e267e06d) ![image](https://github.com/nonzzz/vite-plugin-cdn/assets/68853957/05070f73-feba-4866-810e-4ecc8b457a82) ![Uploading image.png…]() According to the document, I used it and confirmed that the package was installed successfully, but the packaging result was not as expected (I added the...

Now many packages is only support esm cdn, the package should support what auto add importmap when scan external. ```html { "imports": { "shiki": "https://cdn.jsdelivr.net/npm/shiki@~1.2.0/+esm" } } ```

## 问题描述 在 vite5.1.5 中使用 vite-plugin-cdn2 v0.15.4 构建 echarts 提示:echarts try resolve file failed。 但是,其他的包都正常构建。 ## 环境 macOS:14.3.1 (23D60) cpu:m3 max vite:5.1.5 ## 配置截图 resolve 方法,是一个将 cdnjs 资源地址拼接完整的方法,不过,当我手动补全的时候,也是无效的。

wontfix

感谢您的无私奉献 当我尝试使用1.1.0和1.0.0时我的ts类型报错Cannot find module 'vite-plugin-cdn2' or its corresponding type declarations. 降级到0.16.0后报错消失 我使用vite-plugin-cdn2/index 的引入方式ts类型报错消失 但是vite报错Cannot find module 'xxx/node_modules/vite-plugin-cdn2/index'

question

如果检查后没问题的话,可以合并我的分支