Skip to content

[문의] p.536 내용문의 #28

Description

@supersfel

안녕하세요! 책 잘보고 있습니다.

module : 모듈 시스템을 설정한다. .... esnext는 import를 사용하므로 import를 사용할 수 있는 환경에서는 esnext를 사용하는 것이 좋다.

moduleResolution : 모듈을 해석하는 방식을 설정한다. node는 node_moudles를 기준으로 모듈을 해석하고 classic은 tsconfig.json이 있는 디렉터리를 기준으로 모듈을 해석한다. node는 module이 CommonJS일때만 사용할수있다.

로 되어있는데 책의 tsconfig.json파일 [p.533]을 보면

{
  "module" : "esnext",
  "moduleResolution" :"node"
}

로 되어있네요 이런 경우 어떻게 동작하게 되나요? moduleResolution:"node"가 무시되나요?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions