Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSX rendered for react only not for solid-js #16491

Open
io-q opened this issue Jan 18, 2025 · 0 comments
Open

JSX rendered for react only not for solid-js #16491

io-q opened this issue Jan 18, 2025 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@io-q
Copy link

io-q commented Jan 18, 2025

What version of Bun is running?

1.1.45

What platform is your computer?

No response

What steps can reproduce the bug?

changed example code src/frontend.tsx for solid.js

import { render } from 'solid-js/web';
import { App } from './app';

const root = document.getElementById('root');
if (!root) {
    throw new Error('Root element not found');
}

render(() => (<App />), root); 

and
bun --experimental-html with
"jsx": "preserve", "jsxImportSource": "solid-js", in tsconfig.json
transforms from render(() => (<App />), root)
to render(() => /* @__PURE__ */ React.createElement(App, null), root);

What is the expected behavior?

expect

import { createComponent as _$createComponent } from "solid-js/web";
render(() => _$createComponent(Counter, {}), document.getElementById("app"));

it seems a bug, could you help to give a look? thanks

What do you see instead?

No response

Additional information

No response

@io-q io-q added bug Something isn't working needs triage labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant