Skip to content

Commit 1e30833

Browse files
authored
Merge pull request #286 from oslabs-beta/master
dyanamic import fix
2 parents 8681e45 + 1d90ab1 commit 1e30833

File tree

4 files changed

+4
-15
lines changed

4 files changed

+4
-15
lines changed

.babelrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"plugins": [
1313
["@babel/transform-runtime"],
1414
["@babel/proposal-class-properties"],
15-
["@babel/proposal-object-rest-spread"],
16-
["@babel/plugin-syntax-dynamic-import"]
15+
["@babel/proposal-object-rest-spread"]
1716
]
1817
}

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,11 @@
302302
"@babel/core": "^7.10.3",
303303
"@babel/plugin-proposal-class-properties": "^7.10.4",
304304
"@babel/plugin-proposal-object-rest-spread": "^7.10.4",
305-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
306305
"@babel/plugin-transform-runtime": "^7.10.3",
307306
"@babel/preset-env": "^7.10.3",
308307
"@babel/preset-react": "^7.10.1",
309308
"@babel/preset-typescript": "^7.10.4",
310309
"@jest-runner/electron": "^3.0.0",
311-
"@loadable/component": "^5.13.1",
312310
"@testing-library/jest-dom": "^5.11.0",
313311
"@testing-library/react": "^10.4.3",
314312
"@types/cookie": "^0.4.0",

src/client/components/composer/NewRequest/ComposerNewRequest.jsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
import React from "react";
22
import uuid from "uuid/v4"; // (Universally Unique Identifier)--generates a unique ID
33
import gql from "graphql-tag";
4-
import loadable from "@loadable/component";
5-
64
import HeaderEntryForm from "./HeaderEntryForm.jsx";
75
import BodyEntryForm from "./BodyEntryForm.jsx";
86
import GRPCProtoEntryForm from "./GRPCProtoEntryForm.jsx";
97
import FieldEntryForm from "./FieldEntryForm.jsx";
108
import CookieEntryForm from "./CookieEntryForm.jsx";
119
import historyController from "../../../controllers/historyController";
1210
import GraphQLIntrospectionLog from "./GraphQLIntrospectionLog";
13-
14-
// lazy loading to reduce bundle size (codemirror)
15-
const GraphQLBodyEntryForm = loadable(() => import('./GraphQLBodyEntryForm'));
16-
const GraphQLVariableEntryForm = loadable(() => import('./GraphQLVariableEntryForm'));
11+
import GraphQLBodyEntryForm from "./GraphQLBodyEntryForm";
12+
import GraphQLVariableEntryForm from "./GraphQLVariableEntryForm";
1713

1814

1915
const ComposerNewRequest = ({

src/client/components/containers/ContentsContainer.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import * as React from "react";
2-
import loadable from "@loadable/component";
3-
4-
// lazy loading to reduce bundle size (chart.js)
5-
const BarGraph = loadable(() => import('../display/BarGraph'))
6-
2+
import BarGraph from "../display/BarGraph"
73
import ReqResContainer from "./ReqResContainer.jsx";
84
import NavBarContainer from "./NavBarContainer.jsx";
95

0 commit comments

Comments
 (0)