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:
@@ -126,7 +126,7 @@
|
||||
},
|
||||
"./withPayload": {
|
||||
"import": "./dist/withPayload.js",
|
||||
"require": "./dist/cjs/withPayload.cjs",
|
||||
"require": "./dist/cjs/withPayload.js",
|
||||
"default": "./dist/withPayload.js"
|
||||
},
|
||||
"./layouts": {
|
||||
|
||||
Reference in New Issue
Block a user