Skip to content

Commit

Permalink
Fix NodeJS compatibility at runtime #93
Browse files Browse the repository at this point in the history
  • Loading branch information
ivome committed Sep 6, 2024
1 parent 455978d commit 93d6520
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fix-hybrid-module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ cat >dist/cjs/package.json <<!EOF
}
!EOF

sed -i '' "s/require(\"graphql\/execution\/values\")/require(\"graphql\/execution\/values.js\")/" "dist/cjs/QueryComplexity.js"

cat >dist/esm/package.json <<!EOF
{
"type": "module"
}
!EOF

sed -i '' "s/from 'graphql\/execution\/values';/from 'graphql\/execution\/values.mjs';/" "dist/esm/QueryComplexity.js"

0 comments on commit 93d6520

Please sign in to comment.