@bazel/esbuild
Advanced tools
Comparing version 4.4.2 to 4.4.5
@@ -102,3 +102,3 @@ const {readFileSync, writeFileSync} = require('fs'); | ||
} | ||
if (configFilePath) { | ||
@@ -111,8 +111,9 @@ const config = await processConfigFile(configFilePath, args); | ||
} | ||
const metafile = getFlag('--metafile'); | ||
try { | ||
const result = await esbuild.build(args); | ||
writeFileSync(metafile, JSON.stringify(result.metafile)); | ||
if (result.metafile) { | ||
const metafile = getFlag('--metafile'); | ||
writeFileSync(metafile, JSON.stringify(result.metafile)); | ||
} | ||
} catch (e) { | ||
@@ -119,0 +120,0 @@ console.error(e); |
@@ -5,3 +5,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "4.4.2", | ||
"version": "4.4.5", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -106,4 +106,5 @@ <!-- ********************* | ||
esbuild(<a href="#esbuild-name">name</a>, <a href="#esbuild-args">args</a>, <a href="#esbuild-args_json">args_json</a>, <a href="#esbuild-config">config</a>, <a href="#esbuild-define">define</a>, <a href="#esbuild-deps">deps</a>, <a href="#esbuild-entry_point">entry_point</a>, <a href="#esbuild-entry_points">entry_points</a>, <a href="#esbuild-external">external</a>, <a href="#esbuild-format">format</a>, | ||
<a href="#esbuild-launcher">launcher</a>, <a href="#esbuild-link_workspace_root">link_workspace_root</a>, <a href="#esbuild-max_threads">max_threads</a>, <a href="#esbuild-minify">minify</a>, <a href="#esbuild-node_context_data">node_context_data</a>, <a href="#esbuild-output">output</a>, <a href="#esbuild-output_css">output_css</a>, | ||
<a href="#esbuild-output_dir">output_dir</a>, <a href="#esbuild-output_map">output_map</a>, <a href="#esbuild-platform">platform</a>, <a href="#esbuild-sourcemap">sourcemap</a>, <a href="#esbuild-sources_content">sources_content</a>, <a href="#esbuild-splitting">splitting</a>, <a href="#esbuild-srcs">srcs</a>, <a href="#esbuild-target">target</a>) | ||
<a href="#esbuild-launcher">launcher</a>, <a href="#esbuild-link_workspace_root">link_workspace_root</a>, <a href="#esbuild-max_threads">max_threads</a>, <a href="#esbuild-metafile">metafile</a>, <a href="#esbuild-minify">minify</a>, <a href="#esbuild-node_context_data">node_context_data</a>, <a href="#esbuild-output">output</a>, | ||
<a href="#esbuild-output_css">output_css</a>, <a href="#esbuild-output_dir">output_dir</a>, <a href="#esbuild-output_map">output_map</a>, <a href="#esbuild-platform">platform</a>, <a href="#esbuild-sourcemap">sourcemap</a>, <a href="#esbuild-sources_content">sources_content</a>, <a href="#esbuild-splitting">splitting</a>, <a href="#esbuild-srcs">srcs</a>, | ||
<a href="#esbuild-target">target</a>) | ||
</pre> | ||
@@ -222,2 +223,8 @@ | ||
<h4 id="esbuild-metafile">metafile</h4> | ||
(*Boolean*): if true, esbuild creates a metafile along the output | ||
Defaults to `True` | ||
<h4 id="esbuild-minify">minify</h4> | ||
@@ -311,3 +318,3 @@ | ||
(*String*): Environment target (e.g. es2017, chrome58, firefox57, safari11, | ||
(*String*): Environment target (e.g. es2017, chrome58, firefox57, safari11, | ||
edge16, node10, esnext). Default es2015. | ||
@@ -401,3 +408,3 @@ | ||
<pre> | ||
esbuild_repositories(<a href="#esbuild_repositories-name">name</a>, <a href="#esbuild_repositories-npm_repository">npm_repository</a>) | ||
esbuild_repositories(<a href="#esbuild_repositories-name">name</a>, <a href="#esbuild_repositories-npm_repository">npm_repository</a>, <a href="#esbuild_repositories-npm_args">npm_args</a>) | ||
</pre> | ||
@@ -438,2 +445,8 @@ | ||
<h4 id="esbuild_repositories-npm_args">npm_args</h4> | ||
additional args to pass to the npm install rule | ||
Defaults to `[]` | ||
Sorry, the diff of this file is not supported yet
54501
130
448