Skip to content

Commit

Permalink
fix: webpack watch
Browse files Browse the repository at this point in the history
was complaining imported json file was outside of rootDir, so we use require instead
  • Loading branch information
jperl committed Jul 7, 2020
1 parent 973e290 commit 00a68a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/web/isDynamic.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import englishWords from 'an-array-of-english-words/index.json';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const englishWords = require('an-array-of-english-words/index.json');

const layoutWords = ['col', 'fa', 'grid'];

Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"sourceMap": true,
"rootDir": "./src",
"outDir": "./build",
"esModuleInterop": true,
"resolveJsonModule": true
"esModuleInterop": true
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit 00a68a1

Please sign in to comment.