Skip to content

Commit

Permalink
Support ES6 modules and babel imports in TS
Browse files Browse the repository at this point in the history
  • Loading branch information
denieler committed Jan 25, 2019
1 parent ab7110f commit 1d3dcb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/styles/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as color from 'color'
import color from 'color'

export const darken = (inputColor, amount) =>
color(inputColor)
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"compilerOptions": {
"outDir": "build",
"module": "commonjs",
"module": "es6",
"target": "es5",
"lib": ["es6", "dom"],
"moduleResolution": "node",
"esModuleInterop": true,
"sourceMap": true,
"allowJs": true,
"jsx": "react",
"moduleResolution": "node",
"rootDir": "/",
"baseUrl": "components",
"forceConsistentCasingInFileNames": true,
Expand Down

0 comments on commit 1d3dcb5

Please sign in to comment.