Use babel-plugin-graphql-tag for the app.

This reduces the production bundle size.
This commit is contained in:
Jayden Seric 2018-01-29 14:09:16 +11:00
parent 0a7165e618
commit 44efa43dac
2 changed files with 23 additions and 1 deletions

20
app/package-lock.json generated
View File

@ -788,6 +788,16 @@
"babel-template": "6.26.0" "babel-template": "6.26.0"
} }
}, },
"babel-literal-to-ast": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/babel-literal-to-ast/-/babel-literal-to-ast-0.1.2.tgz",
"integrity": "sha1-9QqpY3EZNa3xnaDVpN78gnrV9AM=",
"requires": {
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0"
}
},
"babel-loader": { "babel-loader": {
"version": "7.1.2", "version": "7.1.2",
"resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-7.1.2.tgz", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-7.1.2.tgz",
@ -814,6 +824,16 @@
"babel-runtime": "6.26.0" "babel-runtime": "6.26.0"
} }
}, },
"babel-plugin-graphql-tag": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/babel-plugin-graphql-tag/-/babel-plugin-graphql-tag-1.3.1.tgz",
"integrity": "sha1-ovBpbscRRkogggEeDHlqLazt05o=",
"requires": {
"babel-literal-to-ast": "0.1.2",
"babel-types": "6.26.0",
"debug": "2.6.9"
}
},
"babel-plugin-module-resolver": { "babel-plugin-module-resolver": {
"version": "2.7.1", "version": "2.7.1",
"resolved": "https://registry.npmjs.org/babel-plugin-module-resolver/-/babel-plugin-module-resolver-2.7.1.tgz", "resolved": "https://registry.npmjs.org/babel-plugin-module-resolver/-/babel-plugin-module-resolver-2.7.1.tgz",

View File

@ -10,6 +10,7 @@
"apollo-client": "^2.2.0", "apollo-client": "^2.2.0",
"apollo-link": "^1.0.7", "apollo-link": "^1.0.7",
"apollo-upload-client": "^7.0.0-alpha.4", "apollo-upload-client": "^7.0.0-alpha.4",
"babel-plugin-graphql-tag": "^1.3.1",
"babel-plugin-transform-inline-environment-variables": "^0.2.0", "babel-plugin-transform-inline-environment-variables": "^0.2.0",
"dotenv-cli": "^1.4.0", "dotenv-cli": "^1.4.0",
"graphql": "^0.12.3", "graphql": "^0.12.3",
@ -43,7 +44,8 @@
"next/babel" "next/babel"
], ],
"plugins": [ "plugins": [
"transform-inline-environment-variables" "transform-inline-environment-variables",
"graphql-tag"
] ]
}, },
"eslintConfig": { "eslintConfig": {