Comparing version 0.4.7 to 0.4.8
@@ -27,2 +27,3 @@ export declare type Target = 'esnext' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020'; | ||
outfile?: string; | ||
metafile?: string; | ||
outdir?: string; | ||
@@ -122,1 +123,23 @@ platform?: Platform; | ||
} | ||
// This is the type information for the "metafile" JSON format | ||
export interface Metadata { | ||
inputs: { | ||
[path: string]: { | ||
bytes: number | ||
imports: { | ||
path: string | ||
}[] | ||
} | ||
} | ||
outputs: { | ||
[path: string]: { | ||
bytes: number | ||
inputs: { | ||
[path: string]: { | ||
bytesInOutput: number | ||
} | ||
} | ||
} | ||
} | ||
} |
@@ -91,2 +91,3 @@ const child_process = require('child_process'); | ||
if (options.bundle) flags.push('--bundle'); | ||
if (options.metafile) flags.push(`--metafile=${options.metafile}`); | ||
if (options.outfile) flags.push(`--outfile=${options.outfile}`); | ||
@@ -93,0 +94,0 @@ if (options.outdir) flags.push(`--outdir=${options.outdir}`); |
{ | ||
"name": "esbuild", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"description": "An extremely fast JavaScript bundler and minifier.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/evanw/esbuild", |
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
20805
477