Home / npm packages / terser-webpack-plugin

terser-webpack-plugin source code

Every file of terser-webpack-plugin@5.6.1 as published on npm: 12 files, 180 KB. Search them by exact text or regex, in milliseconds.

It uses: eval(), new Function(), crypto.

What terser-webpack-plugin uses

APIIn terser-webpack-plugin
eval()
runs a string as JavaScript
Yes: 1 file
e.g. README.md
See the lines
new Function()
builds a function from a string, like eval (with or without new)
Yes: 2 files
e.g. dist/minify.js
See the lines
child_process
starts other programs
NoWho does
process.env
reads environment variables
NoWho does
the fs module
reads and writes files
NoWho does
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
Yes: 1 file
e.g. dist/serialize-javascript.js
See the lines
WebAssembly
loads WebAssembly code
NoWho does
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/utils.js52 KB
README.md42 KB
dist/index.js30 KB
types/utils.d.ts15 KB
dist/minify.js11 KB
dist/serialize-javascript.js9.9 KB
types/index.d.ts8.9 KB
dist/options.json5.5 KB
package.json4.4 KB
LICENSE1.1 KB
types/minify.d.ts692 B
types/serialize-javascript.d.ts75 B

Questions

How many files are in terser-webpack-plugin?

Version 5.6.1 of terser-webpack-plugin publishes 12 files of source, 180 KB in all, not counting images, fonts and source maps.

Does terser-webpack-plugin use eval?

Yes: terser-webpack-plugin calls eval() in 1 of its files.

Does terser-webpack-plugin start other programs?

No: terser-webpack-plugin doesn't use child_process anywhere in its published files.

Does terser-webpack-plugin run an install script?

No: terser-webpack-plugin 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