This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/react-scripts/config/paths.js b/node_modules/react-scripts/config/paths.js | |
index 67ba927..ab7da87 100644 | |
--- a/node_modules/react-scripts/config/paths.js | |
+++ b/node_modules/react-scripts/config/paths.js | |
@@ -34,6 +34,7 @@ const buildPath = process.env.BUILD_PATH || 'build'; | |
const moduleFileExtensions = [ | |
'web.mjs', | |
'mjs', | |
+ 'cjs', | |
'web.js', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function queryBodyToObject(body: string) { | |
return JSON.parse( | |
body | |
.split('\n') | |
.map((item, idx, arr) => { | |
let str: string; | |
if (item.trim() === '{') return item; | |
if (item.endsWith('{')) return `"${item.slice(0, -1).trim()}": {`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'react-vis' { | |
import { | |
Component, | |
PureComponent, | |
ReactChild, | |
ReactNode, | |
SFC, | |
MouseEventHandler, | |
TouchEventHandler, |