vite-plugin-custom-tsconfig
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

vite-plugin-custom-tsconfig

NPM

A very simple plugin to support using filenames like tsconfig.build.json or tsconfig.app.json with Vite. It copies your tsconfig.*.json to tsconfig.json before Vite starts, and removes it when the build is finished.

Installation

Using Yarn

yarn add -D vite-plugin-custom-tsconfig

Using pnpm

pnpm add -D vite-plugin-custom-tsconfig

Using npm

npm install --save-dev vite-plugin-custom-tsconfig

Usage

// vite.config.ts
import customTsConfig from 'vite-plugin-custom-tsconfig';
import {defineConfig} from 'vite';

export default defineConfig({
  plugins: [
    customTsConfig({
      // default: 'tsconfig.build.json'
      filename: 'tsconfig.app.json',
    }),
  ],
});

Readme

Keywords

none

Package Sidebar

Install

npm i vite-plugin-custom-tsconfig

Weekly Downloads

453

Version

1.0.4

License

MIT

Unpacked Size

7.56 kB

Total Files

5

Last publish

Collaborators

  • edielemoine