Skip to content

Commit 1d90ab1

Browse files
authored
Merge pull request #89 from mjmiguel/webpack-fix
Webpack fix
2 parents 6f2c7f0 + 82cd60b commit 1d90ab1

File tree

5 files changed

+7
-18
lines changed

5 files changed

+7
-18
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
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
#
44
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/open-source-labs/Swell/blob/master/LICENSE.txt)
5-
![AppVeyor](https://img.shields.io/badge/build-passing-brightgreen.svg)
6-
![AppVeyor](https://img.shields.io/badge/version-0.3.0-blue.svg)
5+
[![Build Status](https://travis-ci.com/open-source-labs/Swell.svg?branch=master)](https://travis-ci.com/open-source-labs/Swell)
6+
![GitHub package.json version](https://img.shields.io/github/package-json/v/open-source-labs/Swell?color=blue)
77
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/getswell/getswell/issues)
88
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Swell-%20For%20all%20your%20streaming%20API%20testing%20needs&url=https://www.getswell.io&hashtags=SSE,WebSocket,HTTP,API,developers)
99

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Swell",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"description": "Swell",
55
"main": "main.js",
66
"repository": "https://github.com/open-source-labs/Swell",
@@ -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)