nano jsx in vite #137
Replies: 2 comments 1 reply
-
I made a plugin, |
Beta Was this translation helpful? Give feedback.
-
@yandeu I looked into the issue and tested nano jsx with Vite, since the This is because the There are two issues:
Please read esbuild - JSX import source. [plugin:vite:import-analysis]
Failed to resolve import "nano-jsx/esm/jsx-dev-runtime" from "src/main.tsx". Does the file exist? The workaround is to disable import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
esbuild: {
jsxDev: false,
},
});
With the current nano exports, vscode Intellisense and bundlers will not automatically be able to resolve ESM/CJS. I have setup a minimal working example @ stackblitz. It's working, but it's not pretty. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use nano jsx inside vite javascript template. Please guide me how to setup nano jsx in vite . I tried here's my configuration. But i'm facing error
ERROR: Invalid option in transform() call: "entryPoints"
Beta Was this translation helpful? Give feedback.
All reactions