Skip to content

Commit

Permalink
Rebuild .js and .d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinRosenberg committed Mar 9, 2021
1 parent f366c62 commit 887d3bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
7 changes: 5 additions & 2 deletions gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;

0 comments on commit 887d3bf

Please sign in to comment.