fix: properly resolves cjs withPayload export (#8521)

Importing `withPayload` as CommonJS using `require` does not properly
resolve. This was because the exported file path was using the `.cjs`
extension instead of `.js`.
This commit is contained in:
Jacob Fletcher
2024-10-02 12:38:49 -04:00
committed by GitHub
parent ecfd90bc58
commit ca90d2b1c9

View File

@@ -126,7 +126,7 @@
},
"./withPayload": {
"import": "./dist/withPayload.js",
"require": "./dist/cjs/withPayload.cjs",
"require": "./dist/cjs/withPayload.js",
"default": "./dist/withPayload.js"
},
"./layouts": {