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

Commit 2ae76f9

Browse files
authored
Merge pull request #330 from ts-graphviz:fix-to-react-dom-server-path
fix @react-dom/server path
2 parents f1a418d + 2e9b88c commit 2ae76f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const options = [
2222
},
2323
}),
2424
],
25-
external: ['react', 'react-dom/server', 'ts-graphviz', 'prop-types', 'react-reconciler'],
25+
external: ['react', 'react-dom/server.js', 'ts-graphviz', 'prop-types', 'react-reconciler'],
2626
output: [
2727
{
2828
format: 'cjs',

src/render-id.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ReactElement, isValidElement } from 'react';
2-
import { renderToStaticMarkup } from 'react-dom/server';
2+
import { renderToStaticMarkup } from 'react-dom/server.js';
33

44
export function renderId(id?: ReactElement | string): string | undefined {
55
if (isValidElement(id)) {

0 commit comments

Comments
 (0)