diff --git a/package.json b/package.json index dea5e74..3fd7e9a 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "devDependencies": { "@babel/core": "^7.2.0", "@babel/node": "^7.2.0", + "@babel/polyfill": "^7.0.0", "@babel/preset-env": "^7.2.0", "@svgr/webpack": "^4.1.0", "ava": "^1.0.1", diff --git a/scripts/lighthouse.test.js b/scripts/lighthouse.test.js index 7be262a..ceca638 100644 --- a/scripts/lighthouse.test.js +++ b/scripts/lighthouse.test.js @@ -1,5 +1,6 @@ +import '@babel/polyfill' import * as chromeLauncher from 'chrome-launcher' -import { test } from 'ava' +import test from 'ava' import lighthouse from 'lighthouse' import { siteMetadata } from '../gatsby-config'