diff --git a/index.js b/index.js index 9e35b9a..a534620 100644 --- a/index.js +++ b/index.js @@ -4,6 +4,8 @@ module.exports = { process(src) { // call directly the webpack loader with a mocked context // as graphql-tag/loader leverages `this.cacheable()` - return loader.call({ cacheable() {} }, src); + return { + code: loader.call({ cacheable() {} }, src) + }; }, };