-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Automatic JSX Runtime not respected in node_modules #2513
Comments
This is happening because people requested that
I can't reproduce this. Here's what I tried:
This appears to support the automatic JSX runtime in |
That's too bad for me. I've found it simple and convenient (for internal modules) to directly reference them via git in my {
"dependencies": {
"my-internal-module": "git+https://example.com/my/module#semver:^0.1.2",
}
} Obviously I'm in the minority here.
I'm seeing the same thing now. The esbuild Build config does work. This must have been a mis-observation on my part. Certainly the settings in my main module's |
I am trying to use Emotion with esbuild. In my main module, this works fine in my
tsconfig.json
:If I have the same thing in my
node_modules
folder, i.e. I use an un-transpiled TypeScript library directly innode_modules
, this is no longer respected and thejsxImportSource
seems to be ignored.This is true even if I specify it directly in esbuild's build config. In other words,
node_modules
does not seem to support the automatic JSX runtime.The text was updated successfully, but these errors were encountered: