TypeScript におけるモジュール関連オプションの整理

対応関係

重要なこと

--module

--moduleResolution

--moduleSuffixes

{
"compilerOptions": {
"module": "esnext",
"moduleResolution": "node",
"moduleSuffixes": [".ios", ".native", ""]
}
}

--moduleDetection

<script src="hoge.js" />
<script src="foo.js" />

--

--

--

Front-end web developer. TypeScript, Angular and Vim, weapon of choice.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yosuke Kurami

Yosuke Kurami

Front-end web developer. TypeScript, Angular and Vim, weapon of choice.

More from Medium

Summary of high-level built-in types in TypeScript

typescript

Getting Started with React and TypeScript

Interfaces In TypeScript