Skip to content

Commit

Permalink
enable esModuleInterop
Browse files Browse the repository at this point in the history
This allows us to 'import React from "react"', instead of having to 'import * as React from "react"'.
In this project we want to be consistent about using ES import syntax, preferably treating everything as either a default or named export. esModuleInterop allows us to do this even if the libraries differ.
  • Loading branch information
JGreenlee committed Jun 15, 2023
1 parent ac1d7e1 commit 0349eeb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"sourceMap": true,
"module": "es6",
"target": "es5",
"esModuleInterop": true,
"jsx": "react",
"allowJs": true,
"moduleResolution": "node"
Expand Down

0 comments on commit 0349eeb

Please sign in to comment.