Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@apeleghq/esbuild-plugin-closure-compiler
Advanced tools
esbuild plugin for compiling with Google Closure Compiler as the last step
npm i -D @apeleghq/esbuild-plugin-closure-compiler
In the file you have your configuration, first import this plugin
const cc = require('@apeleghq/esbuild-plugin-closure-compiler');
Or using ES module syntax:
import cc from '@apeleghq/esbuild-plugin-closure-compiler';
Then, in your esbuild configuration, add cc()
to the plugins
list. cc
optionally takes an object that is passed as options to Closure Compiler (for
reference, refer to the documentation for Google Closure Compiler). Minimal example:
const esbuild = require('esbuild');
const cc = require('@apeleghq/esbuild-plugin-closure-compiler');
await esbuild
.build({
entryPoints: ['index.js'],
outdir: 'build',
bundle: true,
format: 'cjs',
plugins: [cc({ language_out: 'ECMASCRIPT_2018' })],
});
FAQs
esbuild plugin for compiling with Google Closure Compiler as the last step
We found that @apeleghq/esbuild-plugin-closure-compiler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.