Comments (3)
@anuoua I thought the same thing because this isn't listed in the plugin's docs, but it appears to be working just fine when used.
Providing jsxImportSource
in the plugin configuration does seem to work. However, I would argue that this property should also default this property from the tsconfig.json
as described below for the other options:
It uses jsx, jsxDev, jsxFactory, jsxFragmentFactory and target options from your tsconfig.json as default values.
To do so, we'd need to add jsxImportSource
in the destructure here.
-- const { jsxFactory, jsxFragmentFactory, target, jsx } =
++ const { jsxFactory, jsxFragmentFactory, target, jsx, jsxImportSource } =
data.compilerOptions || {}
from rollup-plugin-esbuild.
@anuoua I thought the same thing because this isn't listed in the plugin's docs, but it appears to be working just fine when used.
from rollup-plugin-esbuild.
Supported via #370
from rollup-plugin-esbuild.
Related Issues (20)
- 🐛 filenames like `component.utils.ts` are not resolved properly and breaks build HOT 1
- Support reading jsx from tsconfig.json HOT 1
- update mangleCache in renderChunk HOT 2
- Invalid option in transform() call: "jsxDev" HOT 1
- optimizeDeps option ignores subpaths of provided package
- Support rollup@v3 HOT 2
- tsconfig is support object HOT 1
- Patch version v4.10.2 has breaking changes HOT 3
- "==" operator will also match 0 HOT 2
- Typescript Reflection system HOT 1
- TypeError: esbuild is not a function HOT 13
- No clean way to disable exclude HOT 1
- cant support tsconfig.compilerOptions.paths? HOT 1
- How to compile to ES5? HOT 2
- Error in a project using decorators if esbuild version is >= 0.18.0 HOT 4
- ReferenceError: __name is not defined HOT 1
- browser: true ignored when used with @rollup/plugin-node-resolve HOT 1
- Plugin does not resolve "extends" field for tsconfig HOT 4
- Vite Plugin type error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rollup-plugin-esbuild.