import react-reconciler/constants.js for esm

This commit is contained in:
itsMapleLeaf
2022-10-14 13:24:12 -05:00
parent 0be321b64e
commit 9813a01a19
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
---
"reacord": patch
---
import react-reconciler/constants.js for esm
ESM projects which tried to import reacord would fail due to the lack of .js on this import

View File

@@ -1,7 +1,7 @@
import { raise } from "@reacord/helpers/raise.js"
import type { HostConfig } from "react-reconciler"
import ReactReconciler from "react-reconciler"
import { DefaultEventPriority } from "react-reconciler/constants"
import { DefaultEventPriority } from "react-reconciler/constants.js"
import { Node } from "./node.js"
import type { Renderer } from "./renderers/renderer"
import { TextNode } from "./text-node.js"