message: Don't filter out Gatsby rules
diff: @@ -6,18 +6,17 @@ exports.onCreateWebpackConfig = ({actions, plugins, loaders, getConfig}) => {
  config.plugins.push(plugins.define(defines[process.env.NODE_ENV || 'development']))
  config.module.rules = [
  - // Remove the original rule that compiles `.js`. and `.jsx` files...
  - ...config.module.rules.filter(rule => String(rule.test) !== String(/\.jsx?$/)),
  - // ...and replace it with a custom configuration.
  + ...config.module.rules,
  + // Create a custom configuration.
  {
  // The new configuration is based off the original...
  ...loaders.js(),
  test: /\.jsx?$/,
  - exclude: modulePath => /node_modules/.test(modulePath),
  + exclude: (modulePath) => /node_modules/.test(modulePath),
  // ...except that we want to run Primer React through webpack as well.
  // By default, Gatsby won't use the define plugin we added above on Primer React.
  - include: modulePath => /@primer\/components/.test(modulePath)
  - }
  + include: (modulePath) => /@primer\/components/.test(modulePath),
  + },
  ]
  actions.replaceWebpackConfig(config)
  }
  