Home / npm packages / vite

vite source code

Every file of vite@8.3.2 as published on npm: 36 files, 984 KB. Search them by exact text or regex, in milliseconds.

It uses: new Function(), process.env, the fs module, http / https, fetch(), crypto, WebAssembly.

What vite uses

APIIn vite
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 2 files
e.g. dist/node/chunks/build.js
See the lines
child_process
starts other programs
NoWho does
process.env
reads environment variables
Yes: 2 files
e.g. bin/vite.js
See the lines
the fs module
reads and writes files
Yes: 3 files
e.g. dist/node/chunks/build.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
Yes: 1 file
e.g. dist/node/index.d.ts
See the lines
fetch()
makes HTTP requests
Yes: 3 files
e.g. dist/node/chunks/build.js
See the lines
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
Yes: 1 file
e.g. dist/node/chunks/build.js
See the lines
WebAssembly
loads WebAssembly code
Yes: 2 files
e.g. dist/node/chunks/build.js
See the lines
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
dist/node/chunks/dist.js247 KB
dist/node/chunks/build.js206 KB
dist/node/index.d.ts165 KB
LICENSE.md109 KB
dist/node/module-runner.js55 KB
dist/client/bundledDevClient.mjs52 KB
dist/client/client.mjs42 KB
dist/node/cli.js30 KB
dist/node/chunks/postcss-import.js18 KB
dist/node/chunks/lib.js12 KB
dist/node/module-runner.d.ts11 KB
client.d.ts5.2 KB
package.json5.1 KB
types/importGlob.d.ts3.5 KB
dist/node/chunks/moduleRunnerTransport.d.ts3.1 KB
bin/vite.js3.0 KB
dist/node/index.js2.7 KB
types/customEvent.d.ts2.1 KB
types/hmrPayload.d.ts1.9 KB
bin/openChrome.js1.8 KB
types/internal/cssPreprocessorOptions.d.ts1.4 KB
README.md1.2 KB
types/metadata.d.ts1.1 KB
types/hot.d.ts1.1 KB
types/importMeta.d.ts884 B
types/internal/rollupTypeCompat.d.ts791 B
types/internal/esbuildOptions.d.ts672 B
dist/client/env.mjs612 B
types/internal/lightningcssOptions.d.ts520 B
types/internal/terserOptions.d.ts384 B

Questions

How many files are in vite?

Version 8.3.2 of vite publishes 36 files of source, 984 KB in all, not counting images, fonts and source maps.

Does vite use eval?

No: vite doesn't call eval() anywhere in its published files.

Does vite start other programs?

No: vite doesn't use child_process anywhere in its published files.

Does vite run an install script?

No: vite has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine