
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
vite-plugin-flow
Advanced tools
Flow support for Vite
# 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()],
}
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,
|}>
If you have any troubles, questions or proposals you can create the issue
FAQs
Flow support for Vite
We found that vite-plugin-flow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.