Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apeleghq/esbuild-plugin-closure-compiler

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apeleghq/esbuild-plugin-closure-compiler

esbuild plugin for compiling with Google Closure Compiler as the last step

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

esbuild plugin for post-compiling with Google Closure Compiler

Reliability Rating Vulnerabilities Bugs Security Rating Maintainability Rating NPM Downloads

How to use

Installing

npm i -D @apeleghq/esbuild-plugin-closure-compiler

Configuring esbuild

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' })],
	});

Keywords

FAQs

Package last updated on 11 Sep 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc