brotli-compress
Advanced tools
Comparing version 1.0.0 to 1.1.0
34
build.ts
@@ -0,1 +1,3 @@ | ||
import { build } from 'esbuild' | ||
let wasmPlugin = { | ||
@@ -56,12 +58,22 @@ name: 'wasm', | ||
require('esbuild') | ||
.build({ | ||
entryPoints: ['src/index.ts'], | ||
bundle: true, | ||
outfile: 'index.js', | ||
plugins: [wasmPlugin], | ||
}) | ||
.catch((e) => { | ||
console.error(e) | ||
process.exit(1) | ||
}) | ||
build({ | ||
entryPoints: ['src/index.ts'], | ||
bundle: true, | ||
format: 'cjs', | ||
outfile: 'index.js', | ||
plugins: [wasmPlugin], | ||
}).catch((e) => { | ||
console.error(e) | ||
process.exit(1) | ||
}) | ||
build({ | ||
entryPoints: ['src/index.ts'], | ||
bundle: true, | ||
format: 'esm', | ||
outfile: 'index.mjs', | ||
plugins: [wasmPlugin], | ||
}).catch((e) => { | ||
console.error(e) | ||
process.exit(1) | ||
}) |
{ | ||
"name": "brotli-compress", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"main": "index.js", | ||
"module": "index.mjs", | ||
"typings": "dist/index.d.ts", | ||
@@ -6,0 +7,0 @@ "description": "WASM based, asynchronous Brotli compression and decompression package that works in browsers and Node.js; CommonJS and ESM", |
Sorry, the diff of this file is too big to display
171478
7
4535