Skip to content

Commit

Permalink
Experimental support for Deno (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Apr 13, 2021
1 parent c5a88a0 commit d4a7cd3
Show file tree
Hide file tree
Showing 16 changed files with 2,639 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,6 +1,7 @@
.DS_Store
/bench/
/demo/
/deno/
/esbuild
/github/
/npm/esbuild-wasm/browser.js
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Expand Up @@ -114,7 +114,8 @@ platform-all: cmd/esbuild/version.go test-all
platform-linux-mips64le \
platform-linux-ppc64le \
platform-wasm \
platform-neutral
platform-neutral \
platform-deno

platform-windows:
cd npm/esbuild-windows-64 && npm version "$(ESBUILD_VERSION)" --allow-same-version
Expand Down Expand Up @@ -171,6 +172,9 @@ platform-neutral: esbuild lib-typecheck | scripts/node_modules
cd npm/esbuild && npm version "$(ESBUILD_VERSION)" --allow-same-version
node scripts/esbuild.js ./esbuild

platform-deno: esbuild lib-typecheck | scripts/node_modules
node scripts/esbuild.js ./esbuild --deno

test-otp:
test -n "$(OTP)" && echo publish --otp="$(OTP)"

Expand Down
11 changes: 11 additions & 0 deletions lib/deno/external.d.ts
@@ -0,0 +1,11 @@
declare module 'https://deno.land/x/compress@v0.3.3/mod.ts' {
export interface InflateOptions {
windowBits?: number;
dictionary?: Uint8Array;
chunkSize?: number;
to?: string;
raw?: boolean;
}

export function gunzip(input: Uint8Array, options?: InflateOptions): Uint8Array
}

0 comments on commit d4a7cd3

Please sign in to comment.