Skip to content

Commit 043142b

Browse files
dolhimViolet-Bora-Lee
authored andcommitted
[신규 번역] 'Part 1. 13.1 모듈 소개' 중간에 주의사항 #1084
1 parent 01b1d4c commit 043142b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/13-modules/01-modules-intro/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ sayHi('John'); // Hello, John!
5757

5858
브라우저가 자동으로 모듈을 가져오고 평가한 다음 이를 실행한 것을 확인할 수 있습니다.
5959

60-
```warn header="Modules work only via HTTP(s), not in local files"
61-
If you try to open a web-page locally, via `file://` protocol, you'll find that `import/export` directives don't work. Use a local web-server, such as [static-server](https://www.npmjs.com/package/static-server#getting-started) or use the "live server" capability of your editor, such as VS Code [Live Server Extension](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) to test modules.
60+
```warn header="모듈은 로컬 파일에서 동작하지 않고, HTTP 또는 HTTPS 프로토콜을 통해서만 동작합니다."
61+
로컬에서 `file://` 프로토콜을 통해 웹페이지를 열면 `import·export` 지시자가 동작하지 않습니다. 예제를 실행하려면 로컬 웹 서버인 [static-server](https://www.npmjs.com/package/static-server#getting-started)나, 코드 에디터의 '라이브 서버' 익스텐션(Visual Studio Code 에디터의 경우 [Live Server Extension](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer))을 사용하세요.
6262
```
6363

6464
## 모듈의 핵심 기능

0 commit comments

Comments
 (0)