@chialab/esbuild-plugin-emit
Advanced tools
Comparing version 0.12.0 to 0.12.2
@@ -7,2 +7,10 @@ import path from 'path'; | ||
/** | ||
* @typedef {import('esbuild').Metafile} Metafile | ||
*/ | ||
/** | ||
* @typedef {import('esbuild').BuildResult & { metafile: Metafile, outputFiles?: import('esbuild').OutputFile[] }} BuildResult | ||
*/ | ||
/** | ||
* The filter regex for file imports. | ||
@@ -185,4 +193,4 @@ */ | ||
const result = await esbuild.build(config); | ||
filePath = getMainOutput([filePath], /** @type {import('esbuild').Metafile} */ (result.metafile), rootDir); | ||
const result = /** @type { BuildResult} */ (await esbuild.build(config)); | ||
filePath = getMainOutput([filePath], result.metafile, rootDir); | ||
@@ -189,0 +197,0 @@ return { |
{ | ||
"name": "@chialab/esbuild-plugin-emit", | ||
"type": "module", | ||
"version": "0.12.0", | ||
"version": "0.12.2", | ||
"description": "Helpers functions to emit chunks and files from a esbuild run.", | ||
@@ -31,4 +31,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@chialab/esbuild-helpers": "^0.12.0", | ||
"@chialab/node-resolve": "^0.12.0" | ||
"@chialab/esbuild-helpers": "^0.12.2", | ||
"@chialab/node-resolve": "^0.12.2" | ||
}, | ||
@@ -38,3 +38,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "2827230be1fbb87421676f42234c6542f7fc7c36" | ||
"gitHead": "78b4044e43ddb423527529d38bf89bb56812868a" | ||
} |
@@ -29,2 +29,2 @@ <p align="center"> | ||
**Esbuild Plugin Emit** is released under the [MIT](https://github.com/chialab/rna/blob/master/packages/esbuild-plugin-emit/LICENSE) license. | ||
**Esbuild Plugin Emit** is released under the [MIT](https://github.com/chialab/rna/blob/main/packages/esbuild-plugin-emit/LICENSE) license. |
@@ -67,1 +67,6 @@ /** | ||
}; | ||
export type Metafile = import('esbuild').Metafile; | ||
export type BuildResult = import('esbuild').BuildResult & { | ||
metafile: Metafile; | ||
outputFiles?: import('esbuild').OutputFile[]; | ||
}; |
11249
247