Bjorn Lu
Bjorn Lu
Just remembered of [jiti](https://github.com/unjs/jiti), and it seems to have the [mechanism](https://github.com/unjs/jiti/blob/e44a2679cc3f3f529fbd81668e51bedcd20b74f9/src/jiti.ts#L276-L319) we need to programmatically load the config, and addresses my previous comment's concern. `jiti` however seems to have a...
@Menci Can you show an example where this would be useful for external plugins? It would be helpful to justify exposing another API.
Thanks for the explanation @Menci (and thanks for updating some old issues about your plugin!). I think it makes sense to export it looking at the plugin code. I'll bring...
This seems to still be in the team discussion list. We had briefly talked about it but need Evan's input on how to expose this. Will give an update again...
When I ran `npm run build` in stackblitz, I got: ``` [vite:load-fallback] Could not load /home/projects/vitejs-vite-8vghhj/node_modules/.vite/deps_build-dist/chunk-45EOH5KS.js (imported by node_modules/.vite/deps_build-dist/core-js_modules_es__object__to-string__js.js): ENOENT: no such file or directory, open '/home/projects/vitejs-vite-8vghhj/node_modules/.vite/deps_build-dist/chunk-45EOH5KS.js' error during build:...
Following the [docs](https://vitejs.dev/guide/assets.html#the-public-directory), we don't guarantee importing from `public` to work, even though it partially works in this case. You should move your assets into `src` so they are properly...
I think this is expected behaviour per the [docs](https://vitejs.dev/guide/env-and-mode.html). You'd need to set `NODE_ENV=production` in `.env.[mode]` to bring back the prod behaviour. Maybe it make sense to default to `production`...
@cedeber can you provide a repro for that? Using the repro in this issue, adding `.env.custom-programmatic` with `NODE_ENV=production` fixed it for me.
> Either `dev` should be `true` in both cases where a custom mode is provided, or in neither. That's a matter for debate — personally I think it's bizarre that...
Does esbuild support `jsxImportSource`? According to https://esbuild.github.io/content-types/#tsconfig-json only a few fields are supported which Vite [passes](https://github.com/vitejs/vite/blob/ce790c4080b6592ed60edfcf90a9ec344d575fa1/packages/vite/src/node/plugins/esbuild.ts#L93-L98). Maybe this is related to plugin-react and it's babel transform, but regardless it would...