diff --git a/index.js b/index.js index 9e35b9a..40447e8 100644 --- a/index.js +++ b/index.js @@ -2,8 +2,10 @@ const loader = require('graphql-tag/loader'); module.exports = { process(src) { - // call directly the webpack loader with a mocked context + // 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), + }; }, };