Skip to content

Commit

Permalink
fix(gatsby-plugin-google-gtag): use CommonJS instead of ES modules (#…
Browse files Browse the repository at this point in the history
…9224)

Fixes #9218
  • Loading branch information
Seldszar authored and pieh committed Oct 18, 2018
1 parent 870a647 commit b05bed5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-google-gtag/src/gatsby-browser.js
@@ -1,4 +1,4 @@
export const onRouteUpdate = function({ location }) {
exports.onRouteUpdate = ({ location }) => {
if (process.env.NODE_ENV !== `production` || typeof gtag !== `function`) {
return null
}
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-google-gtag/src/gatsby-ssr.js
@@ -1,7 +1,7 @@
import React from "react"
import { Minimatch } from "minimatch"

export const onRenderBody = (
exports.onRenderBody = (
{ setHeadComponents, setPostBodyComponents },
pluginOptions
) => {
Expand Down

0 comments on commit b05bed5

Please sign in to comment.