Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #330 from ts-graphviz:fix-to-react-dom-server-path
Browse files Browse the repository at this point in the history
fix @react-dom/server path
  • Loading branch information
kamiazya committed Sep 25, 2021
2 parents f1a418d + 2e9b88c commit 2ae76f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const options = [
},
}),
],
external: ['react', 'react-dom/server', 'ts-graphviz', 'prop-types', 'react-reconciler'],
external: ['react', 'react-dom/server.js', 'ts-graphviz', 'prop-types', 'react-reconciler'],
output: [
{
format: 'cjs',
Expand Down
2 changes: 1 addition & 1 deletion src/render-id.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ReactElement, isValidElement } from 'react';
import { renderToStaticMarkup } from 'react-dom/server';
import { renderToStaticMarkup } from 'react-dom/server.js';

export function renderId(id?: ReactElement | string): string | undefined {
if (isValidElement(id)) {
Expand Down

0 comments on commit 2ae76f9

Please sign in to comment.