Skip to content

Commit

Permalink
use esModuleInterop
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjulian committed Nov 17, 2023
1 parent f7565c1 commit 154ed80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ npm i @notiz/ngx-markdoc @markdoc/markdoc js-yaml
npm i -D @types/js-yaml
```

Set `allowSyntheticDefaultImports` to `true` in your `tsconfig.json`.
Set `esModuleInterop` to `true` in your `tsconfig.json`.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion src/assets/md/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ npm i @notiz/ngx-markdoc @markdoc/markdoc js-yaml
npm i -D @types/js-yaml
```

Set `allowSyntheticDefaultImports` to `true` in your `tsconfig.json`.
Set `esModuleInterop` to `true` in your `tsconfig.json`.

## Usage

Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true,
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"allowSyntheticDefaultImports": true,
"target": "ES2022",
"module": "ES2022",
"lib": ["ES2022", "dom"],
"useDefineForClassFields": false,
"lib": ["ES2022", "dom"],
"paths": {
"@notiz/ngx-markdoc": ["projects/ngx-markdoc/src/public-api"]
}
Expand Down

0 comments on commit 154ed80

Please sign in to comment.