Skip to content

Commit

Permalink
chore(cardano-graphql): replace lodash-es with lodash in buildSchema …
Browse files Browse the repository at this point in the history
…script
  • Loading branch information
mkazlauskas committed Jan 18, 2022
1 parent 001d447 commit 1c34774
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/cardano-graphql/scripts/buildSchema.js
@@ -1,3 +1,10 @@
// This is a little hacky, it would be better to set up ESM builds instead
const Module = require('module');
const originalRequire = Module.prototype.require;
Module.prototype.require = function () {
return originalRequire.apply(this, arguments[0] === 'lodash-es' ? ['lodash'] : arguments);
};

const path = require('path');
const fs = require('fs');
const generateSchema = require('./generateSchema');
Expand Down

0 comments on commit 1c34774

Please sign in to comment.