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

use to external resources

Results 13 vite-plugin-externals issues
Sort by recently updated
recently updated
newest added

I want to external `vue`, but it `export * from 'vue'` seems doesn't handled by this plugin. FYI. the problem was from [`vue-demi`](https://github.com/vueuse/vue-demi/blob/36d27efb4ae8bfdaba068d7d990961972c1307f5/lib/index.mjs#L27)

enhancement

Hi I have a monorepo where a ws is configured with @mui v5 with the following configuration ![image](https://user-images.githubusercontent.com/87449730/150186653-f95ef898-1976-4fb8-8282-78b70191c476.png) but it doesn't work for me, it gives me errors with @mui

need reproduction

**package.json** ```json "dependencies": { "vant": "^3.4.5", "vue": "^3.2.25", } ``` **src/plugins/vant.ts** ```ts import Vant from "vant"; export { Vant }; ``` **src/main.ts** ```ts import { createApp } from 'vue'; import...

need reproduction

尝试使用的时候,会出现process没有定义 if (process.env.NODE_ENV === 'production') { // DCE check should happen before ReactDOM bundle executes so that // DevTools can report bad minification during injection. checkDCE(); module.exports = require('./cjs/react-dom.production.min.js'); }...

need reproduction

Hi Crcong, I was using your excellent plugin in my own project, thanks for the work! Since the esbuild used by vite is relying on the hoisted feature of esmodule,...

need reproduction

#### 当我在项目中同时使用到了 `unplugin-auto-import` 自动导入相关 `API` 时, 打包的时候会因为 `vite-plugin-externals` 先进行外部库的处理转换,而导致 `unplugin-auto-import` 自动导入的 `API` 失效。 #### 下面是我查看的使用自动导入 `ref` 时插件的执行顺序。 ![image](https://user-images.githubusercontent.com/76999714/189127835-d8957aee-09c7-43d9-90b4-8fe838cee50c.png) #### 然后我在 `node_modules` 下面修改了 `vite-plugin-externals` 的 `index.js` 中关于该插件的返回对象(添加了属性`enforce: 'post'`)后就可以正常使用了。 ![image](https://user-images.githubusercontent.com/76999714/189129197-60647acd-5553-471b-bba2-1fa1bfaaed52.png) #### 希望老哥看下有没有更好的处理方法优化一下。

enhancement

I have two Vite configs that use the same `node_modules` directory but have different externals config. `vite-plugin-externals` uses a single non-configurable cache directory for both of them. So there are...

It correctly work but report a warning while building ```sh in "/index.html" can't be bundled without type="module" attribute ``` Then I edit it as `` but it report error: ```sh...

``` javascript build: { rollupOptions: { external: ['react', 'react-dom', 'dayjs', 'antd'], output: { globals: { react: 'React', 'react-dom': 'ReactDOM', dayjs: 'dayjs', antd: 'antd', }, paths: { react: 'https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js', 'react-dom': 'https://unpkg.com/[email protected]/umd/react-dom.production.min.js',...