const fs = require('fs-extra');
const { createFilePath } = require('gatsby-source-filesystem');
+exports.modifyWebpackConfig = ({ config, stage }) => {
+ if (stage === 'build-javascript') {
+ config._config.entry.app = ['babel-polyfill', config.resolve().entry.app];
+ }
+
+ return config;
+};
+
exports.onCreateNode = ({ node, getNode, boundActionCreators }) => {
const { createNodeField } = boundActionCreators;
if (node.internal.type === 'MarkdownRemark') {
"private": true,
"dependencies": {
"@andrew-codes/gatsby-plugin-elasticlunr-search": "1.0.4",
+ "babel-polyfill": "6.26.0",
"fs-extra": "^5.0.0",
"gatsby": "^1.9.247",
"gatsby-link": "^1.6.40",
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import 'babel-polyfill';
import React from 'react';
import Sidebar from './components/Sidebar';
import Footer from './components/Footer';
version "0.0.1"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-system-register/-/babel-plugin-transform-system-register-0.0.1.tgz#9dff40390c2763ac518f0b2ad7c5ea4f65a5be25"
-babel-polyfill@^6.20.0, babel-polyfill@^6.23.0, babel-polyfill@^6.26.0:
+babel-polyfill@6.26.0, babel-polyfill@^6.20.0, babel-polyfill@^6.23.0, babel-polyfill@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
dependencies: