Skip to content

Commit cfe813d

Browse files
author
오제관[플레이스리뷰서비스개발]
committed
Translate 4.9 release page - JavaScript Emit No Longer Elides Imports part
1 parent 1f75c5b commit cfe813d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/documentation/ko/release-notes/TypeScript 4.9.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -439,13 +439,13 @@ DOM과 `lib.d.ts` 업데이트의 결과로 major break 는 일어나지 않을
439439
이는 종종 더 정확한 `Promise` 타입을 반환하지만, 이 개선된 타입이 `Promise` 대신 `any` 또는 `unknown` 타입을 기대하고 있던 기존 코드를 깨버릴 수도 있습니다.
440440
더 자세한 정보는 [변경 원본](https://github.com/microsoft/TypeScript/pull/33074)을 참고하세요.
441441

442-
### JavaScript Emit No Longer Elides Imports
442+
### JavaScript 내보내기(Emit) 에서 더이상 Import 를 생략하지 않습니다
443443

444-
When TypeScript first supported type-checking and compilation for JavaScript, it accidentally supported a feature called import elision.
445-
In short, if an import is not used as a value, or the compiler can detect that the import doesn't refer to a value at runtime, the compiler will drop the import during emit.
444+
TypeScript가 JavaScript에 대한 유형 검사 및 컴파일을 처음 지원했을 때 실수로 import 생략이라는 기능을 지원했었습니다.
445+
짧게 말하면, 만약 import 한 것이 값으로 쓰이지 않거나 런타임에서의 값을 참조하지 않는 다면 컴파일러는 내보내기 과정에서 해당 import를 제거하는 기능입니다.
446446

447-
This behavior was questionable, especially the detection of whether the import doesn't refer to a value, since it means that TypeScript has to trust sometimes-inaccurate declaration files.
448-
In turn, TypeScript now preserves imports in JavaScript files.
447+
이러한 동작은 특히 import가 값을 참조하는지 감지할 때 종종 TypeScript가 부정확한 선언 파일을 신뢰해야한다는 점에서 아리송했습니다.
448+
이제 TypeScript는 JavaScript 파일 내의 import를 유지합니다.
449449

450450
```js
451451
// Input:
@@ -467,7 +467,7 @@ import { someValue, SomeClass } from "some-module";
467467
let val = someValue;
468468
```
469469

470-
More information is available at [the implementing change](https://github.com/microsoft/TypeScript/pull/50404).
470+
더 많은 정보는 [구현 변경](https://github.com/microsoft/TypeScript/pull/50404)을 참고하세요.
471471

472472
### `exports` is Prioritized Over `typesVersions`
473473

0 commit comments

Comments
 (0)