bob-esbuild-plugin
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27107
769
Updatedtsconfck@^1.1.1