Skip to content

Commit

Permalink
Fix/more esm errors (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed May 7, 2024
1 parent dfcdf94 commit b4708b4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-kiwis-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@headstartwp/next": patch
---

Fix: deepmerge cjs package import
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/next/src/blocks/TwitterBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isTwitterEmbed } from '@headstartwp/core';
import { IBlock, IBlockAttributes } from '@headstartwp/core/react';
import Script from 'next/script';
import Script from 'next/script.js';

/**
* Renders a twitter embed
Expand Down
4 changes: 3 additions & 1 deletion packages/next/src/data/server/fetchHookData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ import {
} from '@headstartwp/core';
import { GetServerSidePropsContext, GetStaticPropsContext } from 'next';
import { serializeKey } from '@headstartwp/core/react';
import { all as merge } from 'deepmerge';
import deepmerge from 'deepmerge';
import { PreviewData } from '../../handlers/types';
import { convertToPath } from '../convertToPath';
import { getSiteFromContext } from './getSiteFromContext';
import defaultCacheHandler from './cache';

const { all: merge } = deepmerge;

/**
* The supported options for {@link fetchHookData}
*/
Expand Down

0 comments on commit b4708b4

Please sign in to comment.