How to use the relay-compiler-language-typescript.default function in relay-compiler-language-typescript

To help you get started, we’ve selected a few relay-compiler-language-typescript examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github github / webpack-config-github / webpack.config.js View on Github external
const path = require('path')

const {getGraphQLProjectConfig} = require('graphql-config')
const buildContentSecurityPolicy = require('content-security-policy-builder')
const readPkg = require('read-pkg')

const {EnvironmentPlugin} = require('webpack')
const BabelMinifyPlugin = require('babel-minify-webpack-plugin')
const CleanWebpackPlugin = require('clean-webpack-plugin')
const CompressionPlugin = require('compression-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const Dotenv = require('dotenv-webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const RelayCompilerWebpackPlugin = require('relay-compiler-webpack-plugin')
const RelayCompilerLanguageTypescript = require('relay-compiler-language-typescript').default

/*::
type Options = {|
  allowGitHubSubresources?: boolean,
  commonChunkName?: string,
  entries?: string[],
  graphqlProxyPath?: string,
  historyApiFallback?: boolean,
  maxAssetSize?: number,
  maxEntrypointSize?: number,
  outputPath?: string,
  srcRoot?: string,
  staticRoot?: string,
  template?: string,
  cspDirectives?: Object
|}

relay-compiler-language-typescript

A language plugin for Relay that adds TypeScript support, including emitting type definitions.

MIT
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis

Popular relay-compiler-language-typescript functions