Skip to content

Is it possible to use it in tsconfig.json with ttypescript? #116

Open
@dko-slapdash

Description

@dko-slapdash

Hi.

There is https://github.com/cevek/ttypescript project which allows to use transformers in tsconfig.json (i.e. without webpack).

I noticed that ts-graphql-plugin should work with webpack's ts-loader, and thus it should've been compatible with tsconfig.json approach. But looks like it's not working there (maybe it's just not working with the latest version of TypeScript?) - the error shown is TypeError: transformer.transformSourceFile is not a function at node_modules/typescript/lib/typescript.js:93958:109 when using e.g. this file:

const getTransformer = require('ts-graphql-plugin/lib/transformer/transformer').getTransformer;
module.exports = getTransformer({});

P.S.
Here is an example of transformers we use in our project:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions