import { GatsbyNode } from 'gatsby' ; export { createPages } from './src/gatsby/createPages' ; export { onCreatePage } from './src/gatsby/onCreatePage' ; export const onCreateWebpackConfig = ( { stage , actions , getConfig , } ) => { if ( stage === 'build-html' ) { actions . setWebpackConfig ( { externals : getConfig ( ) . externals . concat ( function ( _context , request , callback ) { if ( /^@?(react-)?firebase(.*)/ . test ( request ) ) { console . log ( `Excluding bundling of: ${ request }` ) ; return callback ( null , `umd ${ request }` ) ; } callback ( undefined , undefined ) ; } ) , } ) ; } } ;