Skip to content

Commit

Permalink
revert dynamic imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmiguel committed Sep 3, 2020
1 parent 8681e45 commit 82cd60b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
3 changes: 1 addition & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"plugins": [
["@babel/transform-runtime"],
["@babel/proposal-class-properties"],
["@babel/proposal-object-rest-spread"],
["@babel/plugin-syntax-dynamic-import"]
["@babel/proposal-object-rest-spread"]
]
}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,11 @@
"@babel/core": "^7.10.3",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-object-rest-spread": "^7.10.4",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.10.3",
"@babel/preset-env": "^7.10.3",
"@babel/preset-react": "^7.10.1",
"@babel/preset-typescript": "^7.10.4",
"@jest-runner/electron": "^3.0.0",
"@loadable/component": "^5.13.1",
"@testing-library/jest-dom": "^5.11.0",
"@testing-library/react": "^10.4.3",
"@types/cookie": "^0.4.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
import React from "react";
import uuid from "uuid/v4"; // (Universally Unique Identifier)--generates a unique ID
import gql from "graphql-tag";
import loadable from "@loadable/component";

import HeaderEntryForm from "./HeaderEntryForm.jsx";
import BodyEntryForm from "./BodyEntryForm.jsx";
import GRPCProtoEntryForm from "./GRPCProtoEntryForm.jsx";
import FieldEntryForm from "./FieldEntryForm.jsx";
import CookieEntryForm from "./CookieEntryForm.jsx";
import historyController from "../../../controllers/historyController";
import GraphQLIntrospectionLog from "./GraphQLIntrospectionLog";

// lazy loading to reduce bundle size (codemirror)
const GraphQLBodyEntryForm = loadable(() => import('./GraphQLBodyEntryForm'));
const GraphQLVariableEntryForm = loadable(() => import('./GraphQLVariableEntryForm'));
import GraphQLBodyEntryForm from "./GraphQLBodyEntryForm";
import GraphQLVariableEntryForm from "./GraphQLVariableEntryForm";


const ComposerNewRequest = ({
Expand Down
6 changes: 1 addition & 5 deletions src/client/components/containers/ContentsContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import * as React from "react";
import loadable from "@loadable/component";

// lazy loading to reduce bundle size (chart.js)
const BarGraph = loadable(() => import('../display/BarGraph'))

import BarGraph from "../display/BarGraph"
import ReqResContainer from "./ReqResContainer.jsx";
import NavBarContainer from "./NavBarContainer.jsx";

Expand Down

0 comments on commit 82cd60b

Please sign in to comment.