Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

typescript-relay-plugin

A Typescript transformer to find and replace Relay.QL tagged template literals with the output generated by babel-relay-plugin. If your source files are written in Typescript, this can save you a parse and print step through babel and generally having it as a dependency.

Usage

import*astsfrom"typescript"import{getTransformer,loadSchema}from"typescript-relay-plugin"constfilePaths=["..."]constschemaPath="/path/to/schema.json"constprogram=ts.createProgram(filePaths,ts.getDefaultCompilerOptions())program.emit(undefined,undefined,undefined,undefined,{before: [getTransformer(loadSchema(schemaPath))]})

About

Like babel-relay-plugin minus babel.

Topics

Resources

Stars

20 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages