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

bob-esbuild-plugin

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bob-esbuild-plugin - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

lib/chunk-IC6J3M4V.mjs

4

lib/bundle.d.ts

@@ -0,1 +1,2 @@

import { BuildOptions } from 'esbuild';
import type { PluginContext, Plugin } from 'rollup';

@@ -9,3 +10,4 @@ export declare const bundle: (

},
target: string | string[]
target: string | string[],
buildOptions?: Partial<Pick<BuildOptions, 'define'>> | undefined
) => Promise<{

@@ -12,0 +14,0 @@ code: string | undefined;

@@ -32,3 +32,3 @@ var __create = Object.create;

var import_path = __toModule(require("path"));
var bundle = async (id, pluginContext, plugins, loaders, target) => {
var bundle = async (id, pluginContext, plugins, loaders, target, buildOptions) => {
var _a, _b;

@@ -117,3 +117,4 @@ const transform = async (inputCode, id2) => {

}
]
],
...buildOptions
});

@@ -120,0 +121,0 @@ return {

@@ -38,3 +38,3 @@ var __create = Object.create;

var import_path = __toModule(require("path"));
var bundle = async (id, pluginContext, plugins, loaders, target) => {
var bundle = async (id, pluginContext, plugins, loaders, target, buildOptions) => {
var _a, _b;

@@ -123,3 +123,4 @@ const transform2 = async (inputCode, id2) => {

}
]
],
...buildOptions
});

@@ -215,5 +216,7 @@ return {

return;
const defaultOptions = options.tsconfig === false ? {} : await getTypescriptConfig((0, import_path2.dirname)(id), options.tsconfig);
const defaultOptions = options.target || options.tsconfig === false ? {} : await getTypescriptConfig((0, import_path2.dirname)(id), options.tsconfig);
target = options.target || defaultOptions.target || "es2019";
const bundled = await bundle(id, this, plugins, loaders, target);
const bundled = await bundle(id, this, plugins, loaders, target, {
define: options.define
});
if (!bundled.code)

@@ -220,0 +223,0 @@ return;

{
"name": "bob-esbuild-plugin",
"version": "2.1.0",
"version": "2.2.0",
"description": "bob-esbuild main plugin, based on https://github.com/egoist/rollup-plugin-esbuild",

@@ -29,10 +29,10 @@ "repository": {

"@rollup/pluginutils": "^4.1.1",
"tsconfck": "^1.1.0"
"tsconfck": "^1.1.1"
},
"devDependencies": {
"@types/node": "^16.11.1",
"@types/node": "^16.11.6",
"changesets-github-release": "^0.0.4",
"esbuild": "^0.13.8",
"rollup": "^2.58.0",
"tsup": "^5.4.3"
"esbuild": "^0.13.12",
"rollup": "^2.59.0",
"tsup": "^5.6.0"
},

@@ -39,0 +39,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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