-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Luca Casonato <[email protected]>
- Loading branch information
1 parent
ccd8992
commit 83cae72
Showing
23 changed files
with
520 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
dist/ | ||
node_modules/ | ||
dist/ | ||
|
||
/target | ||
src/wasm/loader.generated.d.ts | ||
src/wasm/loader.generated.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
max_width = 80 | ||
tab_spaces = 2 | ||
edition = "2021" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"src/wasm", | ||
] | ||
|
||
[profile.release] | ||
codegen-units = 1 | ||
incremental = true | ||
lto = true | ||
opt-level = "z" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ This example bundles an entrypoint into a single ESM output. | |
|
||
```js | ||
import * as esbuild from "npm:[email protected]"; | ||
// Import the WASM build on platforms where running subprocesses is not | ||
// Import the Wasm build on platforms where running subprocesses is not | ||
// permitted, such as Deno Deploy, or when running without `--allow-run`. | ||
// import * as esbuild from "https://deno.land/x/[email protected]/wasm.js"; | ||
|
||
|
@@ -42,7 +42,7 @@ esbuild.stop(); | |
pre-downloaded into a local `node_modules/` directory. | ||
- When using the `"portable"` loader with `jsr:` specifiers, a lockfile must be | ||
present and passed to the loader (either using `configPath` or `lockPath`). | ||
- `npm:` specifiers are not supported on WASM esbuild builds due to FS access | ||
- `npm:` specifiers are not supported on Wasm esbuild builds due to FS access | ||
limitations (see https://github.com/evanw/esbuild/pull/2968). | ||
|
||
## Documentation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,19 @@ | |
}, | ||
"lock": false, | ||
"tasks": { | ||
"test": "deno test -A --parallel --trace-ops", | ||
"test": "deno test -A --parallel --trace-leaks", | ||
"check:types": "deno check **/*.ts", | ||
"ok": "deno fmt --check && deno lint && deno task check:types && deno task test" | ||
"ok": "deno fmt --check && deno lint && deno task check:types && deno task test", | ||
"wasmbuild": "deno run -A jsr:@deno/[email protected] --sync --out src/wasm" | ||
}, | ||
"fmt": { "exclude": ["dist"] }, | ||
"lint": { "exclude": ["dist"] }, | ||
"publish": { "exclude": ["testdata/", "*_test.ts"] } | ||
"fmt": { "exclude": ["dist", "target"] }, | ||
"lint": { "exclude": ["dist", "target", "testdata"] }, | ||
"publish": { | ||
"exclude": [ | ||
"testdata/", | ||
"*_test.ts", | ||
"!src/wasm/loader.generated.d.ts", | ||
"!src/wasm/loader.generated.js" | ||
] | ||
} | ||
} |
Oops, something went wrong.