diff --git a/gatsby-browser.js b/gatsby-browser.js index 0d58656..73a8757 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -3,9 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +exports.wrapRootElement = void 0; var react_1 = __importDefault(require("react")); var react_helmet_async_1 = require("react-helmet-async"); -exports.wrapRootElement = function (_a) { +var wrapRootElement = function (_a) { var element = _a.element; return (react_1.default.createElement(react_helmet_async_1.HelmetProvider, null, element)); }; +exports.wrapRootElement = wrapRootElement; diff --git a/gatsby-ssr.js b/gatsby-ssr.js index ad6915b..8a9c4ce 100644 --- a/gatsby-ssr.js +++ b/gatsby-ssr.js @@ -3,10 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +exports.wrapRootElement = exports.onRenderBody = void 0; var react_1 = __importDefault(require("react")); var react_helmet_async_1 = require("react-helmet-async"); var context = {}; -exports.onRenderBody = function (_a) { +var onRenderBody = function (_a) { var setHeadComponents = _a.setHeadComponents, setHtmlAttributes = _a.setHtmlAttributes, setBodyAttributes = _a.setBodyAttributes; var helmet = context.helmet; if (helmet != null) { @@ -23,7 +24,9 @@ exports.onRenderBody = function (_a) { setBodyAttributes(helmet.bodyAttributes.toComponent()); } }; -exports.wrapRootElement = function (_a) { +exports.onRenderBody = onRenderBody; +var wrapRootElement = function (_a) { var element = _a.element; return (react_1.default.createElement(react_helmet_async_1.HelmetProvider, { context: context }, element)); }; +exports.wrapRootElement = wrapRootElement;