We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I config "jsxFactory": "h" and "jsxFragmentFactory": "Fragment" in tsconfig.json.
"jsxFactory": "h"
"jsxFragmentFactory": "Fragment"
When use entryPoints: ['./test-tsx.tsx'], the result is correct.
entryPoints: ['./test-tsx.tsx']
const { warnings, outputFiles } = buildSync({ tsconfig: './tsconfig.json', entryPoints: ['./test-tsx.tsx'], // stdin: { // contents: testTsxContent, // loader: 'tsx', // }, write: false, })
Result:
const render = () => { return /* @__PURE__ */ h(Fragment, null, /* @__PURE__ */ h("h1", null, "Hello")); };
When use stdin, the result is different, seems like not respect tsconfig.json.
stdin
const render = () => { return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("h1", null, "Hello")); };
Please try on this repo: https://github.com/Akimyou/esbuild-register/tree/feature/test-esbuild
node ./test-esbuild.js
The text was updated successfully, but these errors were encountered:
tsconfig.json
4632160
No branches or pull requests
I config
"jsxFactory": "h"
and"jsxFragmentFactory": "Fragment"
in tsconfig.json.When use
entryPoints: ['./test-tsx.tsx']
, the result is correct.Result:
When use
stdin
, the result is different, seems like not respect tsconfig.json.Please try on this repo: https://github.com/Akimyou/esbuild-register/tree/feature/test-esbuild
The text was updated successfully, but these errors were encountered: