Skip to content

Commit

Permalink
export type Config
Browse files Browse the repository at this point in the history
  • Loading branch information
cometkim committed May 10, 2024
1 parent c34410d commit 77e4fd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/warm-frogs-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vite-plugin-relay-lite": patch
---

export `Config` type from entry
4 changes: 2 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import * as path from 'node:path';

import kleur from 'kleur';
import { type Plugin } from 'vite';
import type { Plugin } from 'vite';
import { cosmiconfigSync, defaultLoaders } from 'cosmiconfig';

import { compile } from './compile.ts';
import { launchProcess } from './codegen.ts';

type AnyObject = Record<string, unknown>;

type Config = {
export type Config = {
codegen?: boolean,
relayConfig?: string | AnyObject,
module?: 'esmodule' | 'commonjs',
Expand Down

0 comments on commit 77e4fd6

Please sign in to comment.