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

rollup-plugin-esbuild

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-esbuild - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

23

dist/index.js

@@ -9,6 +9,16 @@ "use strict";

let service;
const stopService = () => {
if (!options.watch && service) {
service.stop();
service = undefined;
}
};
// The order is:
// buildStart -> resolveId -> transform -> buildEnd -> renderChunk -> generateBundle
return {
name: 'esbuild',
async buildStart() {
service = await esbuild_1.startService();
if (!service) {
service = await esbuild_1.startService();
}
},

@@ -48,2 +58,8 @@ resolveId(importee, importer) {

},
buildEnd(error) {
// Stop the service early if there's error
if (error) {
stopService();
}
},
async renderChunk(code) {

@@ -67,6 +83,3 @@ if (options.minify && service) {

generateBundle() {
if (!options.watch && service) {
service.stop();
service = undefined;
}
stopService();
},

@@ -73,0 +86,0 @@ };

{
"name": "rollup-plugin-esbuild",
"version": "1.2.0",
"version": "1.2.1",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

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