-
Notifications
You must be signed in to change notification settings - Fork 130
[ja] tsconfig/options, tsconfig/sections #38
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
Conversation
Thanks for the PR! This section of the codebase is owned by @sasurau4, @Quramy, and @Naturalclar - if they write a comment saying "LGTM" then it will be merged. |
Translation of disableReferencedProjectLoad.mddisplay: "disableReferencedProjectLoad" oneline: "Reduce the number of projects loaded automatically by TypeScript."In a multi-project TypeScript program, TypeScript reads all available projects into memory. This allows you to provide accurate results for editor responses that require a complete knowledge graph, such as Find All Referrer. If your project is large, Translation of jsxFragmentFactory.mddisplay: "jsxFragmentFactory" oneline: "Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."Compiler options For example, in the following TSConfig: {
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"jsx": "react",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment"
}
} This TSX file is: import { h, Fragment } from "preact";
const HelloWorld = () => (
<>
<div>Hello</div>
</>
); Here's what it looks like: // @showEmit
// @showEmittedFile: index.js
// @jsxFactory: h
// @jsxFragmentFactory: Fragment
// @noErrors
// @target: esnext
// @module: commonjs
import { h, Fragment } from "preact";
const HelloWorld = () => (
<>
<div>Hello</div>
</>
); This option isBabel's Example: /** @jsx h */
/** @jsxFrag Fragment */
import { h, Fragment } from "preact";
const HelloWorld = () => (
<>
<div>Hello</div>
</>
); Translation of jsxImportSource.mddisplay: "jsxImportSource" oneline: "Specify module specifier used to import the JSX factory functions when using
|
LGTM |
Merging because @Naturalclar is a code-owner of all the changes - thanks! |
ref: #3
以前、microsoft/TypeScript-Website#1432 でレビューをいただいてマージしてもらったのですが、こちらのリポジトリに反映されていなかったので再掲です
diff: 23d4826