Skip to content

Commit 91c2d14

Browse files
committed
Change babel-polyfill to babel-plugin-transform-runtime
- Remove package babel-polyfill - Add babel-plugin-transform-runtime to correct work with async/await and other es6 features - Remove from file dependes on babel-polyfill
1 parent 68e39e9 commit 91c2d14

File tree

4 files changed

+312
-11
lines changed

4 files changed

+312
-11
lines changed

.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"presets": ["es2015", "stage-0"],
3-
"plugins": ["add-module-exports", "syntax-flow", "transform-flow-strip-types"]
3+
"plugins": ["add-module-exports", "syntax-flow", "transform-flow-strip-types", "transform-runtime"]
44
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"author": "Roman Krivtsov",
55
"bin": "./bin/swagger2graphql",
66
"dependencies": {
7-
"babel-polyfill": "^6.23.0",
87
"graphql": "^0.10.1",
98
"isomorphic-fetch": "^2.2.1",
109
"js-yaml": "^3.8.4",
@@ -22,6 +21,7 @@
2221
"babel-plugin-add-module-exports": "^0.2.1",
2322
"babel-plugin-syntax-flow": "^6.18.0",
2423
"babel-plugin-transform-flow-strip-types": "^6.22.0",
24+
"babel-plugin-transform-runtime": "^6.23.0",
2525
"babel-preset-es2015": "^6.24.1",
2626
"babel-preset-stage-0": "^6.24.1",
2727
"eslint": "^3.19.0",

src/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @flow
2-
require('babel-polyfill');
32
import type {GraphQLParameters, Endpoint, GraphQLType, RootGraphQLSchema, SwaggerToGraphQLOptions} from './types';
43
import rp from 'request-promise';
54
import { GraphQLSchema, GraphQLObjectType } from 'graphql';

0 commit comments

Comments
 (0)