esbuild-wasm
Advanced tools
Comparing version 0.3.9 to 0.4.0
export declare type Target = 'esnext' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020'; | ||
export declare type Platform = 'browser' | 'node'; | ||
export declare type Format = 'iife' | 'cjs'; | ||
export declare type Format = 'iife' | 'cjs' | 'esm'; | ||
export declare type Loader = 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'base64' | 'dataurl'; | ||
@@ -5,0 +5,0 @@ |
@@ -61,3 +61,10 @@ const child_process = require('child_process'); | ||
function failureErrorWithLog(text, errors, warnings) { | ||
const summary = errors.length < 1 ? '' : ` with ${errors.length} error${errors.length < 2 ? '' : 's'}`; | ||
const limit = 5 | ||
const summary = errors.length < 1 ? '' : ` with ${errors.length} error${errors.length < 2 ? '' : 's'}:` + | ||
errors.slice(0, limit + 1).map((e, i) => { | ||
if (i === limit) return '\n...' | ||
if (!e.location) return `\nerror: ${e.text}`; | ||
const { file, line, column } = e.location; | ||
return `\n${file}:${line}:${column}: error: ${e.text}`; | ||
}).join(''); | ||
const error = new Error(`${text}${summary}`); | ||
@@ -64,0 +71,0 @@ error.errors = errors; |
{ | ||
"name": "esbuild-wasm", | ||
"version": "0.3.9", | ||
"version": "0.4.0", | ||
"description": "The cross-platform WebAssembly binary for esbuild, a JavaScript bundler.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/evanw/esbuild", |
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
9237808
1168