npm.io
1.0.5 • Published 2 years ago

@tsconfig/esm

Licence
MIT
Version
1.0.5
Deps
0
Size
2 kB
Vulns
0
Weekly
0
Stars
7.8K
DeprecatedThis package is deprecated

A base TSConfig for working with ESM.

Add the package to your "devDependencies":

npm install --save-dev @tsconfig/esm
yarn add --dev @tsconfig/esm

Add to your tsconfig.json:

"extends": "@tsconfig/esm/tsconfig.json"

The tsconfig.json:

{
  "_deprecated": true,
  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "ESM",

  "compilerOptions": {
    "module": "es2022",
    "moduleResolution": "bundler",

    "verbatimModuleSyntax": true
  }
}

You can find the code here.

Keywords