Skip to content

Instantly share code, notes, and snippets.

View evgsil's full-sized avatar

Yevhen Sylenko evgsil

View GitHub Profile
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',
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()}": {`;
@evgsil
evgsil / react-vis.d.ts
Last active October 23, 2019 08:15
Type Definitions for react-vis
declare module 'react-vis' {
import {
Component,
PureComponent,
ReactChild,
ReactNode,
SFC,
MouseEventHandler,
TouchEventHandler,