Socket
Book a DemoInstallSign in
Socket

vite-plugin-flow

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-flow

Flow support for Vite

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

vite-plugin-flow

npm License PRs Welcome

Flow support for Vite

Installation

# npm
npm i vite-plugin-flow -D

# yarn
yarn add vite-plugin-flow -D

# pnpm
pnpm add vite-plugin-flow -D
// vite.config.js
import vitePluginFlow from 'vite-plugin-flow'

export default {
  plugins: [vitePluginFlow()],
}

Options

export type Options = $ReadOnly<{|
  /*
    Which files to parse with flow
    default: /\.jsx?$/
  */
  filter?: RegExp,
  /*
    If true, bypasses looking for an @flow pragma comment before parsing.
    default: false
  */
  all?: boolean,
  /*
    If true, removes types completely rather than replacing with spaces.
    This may require using source maps.
    default: false
  */
  pretty?: boolean,
  /*
    If true, removes uninitialized class fields (`foo;`, `foo: string;`)
    completely rather than only removing the type. THIS IS NOT SPEC
    COMPLIANT! Instead, use `declare foo: string;` for type-only fields.
    default: false
  */
  ignoreUninitializedFields?: boolean,
|}>

Questions

If you have any troubles, questions or proposals you can create the issue

License

MIT (c) 2021 - present, Eazymov

Keywords

vite

FAQs

Package last updated on 29 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.