Skip to content

Commit b2f78ba

Browse files
committed
ES modules don't work from a codemod URL.
1 parent 7dabad1 commit b2f78ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codemods/v6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* This includes any custom instances created with createInstance().
88
*/
99

10-
export default function transform({ path, source }, api) {
10+
module.exports = function transform({ path, source }, api) {
1111
if (path.includes("/node_modules/")) return
1212

1313
const j = api.jscodeshift

codemods/v8.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
const helperNames = ["Initial", "Pending", "Fulfilled", "Rejected", "Settled"]
1111

12-
export default function transform({ path, source }, api) {
12+
module.exports = function transform({ path, source }, api) {
1313
if (path.includes("/node_modules/")) return
1414

1515
const j = api.jscodeshift

0 commit comments

Comments
 (0)