From 973d85b08977893092694187d770e0fbf81aa82c Mon Sep 17 00:00:00 2001 From: Alex Bass Date: Wed, 9 Aug 2017 10:23:28 +0200 Subject: [PATCH] Add babel dependencies/config --- packages/gatsby-source-wordpress/package.json | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-source-wordpress/package.json b/packages/gatsby-source-wordpress/package.json index 86ba8a7bd3266..c798566047ec8 100644 --- a/packages/gatsby-source-wordpress/package.json +++ b/packages/gatsby-source-wordpress/package.json @@ -8,6 +8,13 @@ "lodash": "^4.17.4", "qs": "^6.4.0" }, + "devDependencies": { + "babel-cli": "^6.24.1", + "babel-plugin-transform-runtime": "^6.23.0", + "babel-preset-es2015": "^6.24.1", + "babel-preset-stage-0": "^6.24.1", + "babel-runtime": "^6.25.0" + }, "deprecated": false, "description": "Gatsby source plugin for building websites using the Wordpress CMS as a data source.", "keywords": [ @@ -21,5 +28,20 @@ "build": "babel src --out-dir .", "watch": "babel -w src --out-dir ." }, - "version": "1.6.3" + "version": "1.6.3", + "babel": { + "presets": [ + "es2015", + "stage-0" + ], + "plugins": [ + [ + "transform-runtime", + { + "polyfill": false, + "regenerator": true + } + ] + ] + } }