napi-rs/examples/napi
Caleb Everett 95dd6ef485
refactor(cli): refactor js-binding to support easier bundling. (#1957)
* Refactor js-binding to support bundling single-package artifacts

The existsSync check breaks the bundlers I've tested (esbuild, webpack,
ncc), so you cannot bundle napi-rs packages that have all binarys in a
single package.

I've tested this change with both single package and multi package
libraries.

* Update snapshots

* Update CI

* Fix electron test

---------

Co-authored-by: Caleb ツ Everett <calebev@amazon.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-02-26 15:46:07 +08:00
..
__tests__ refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
browser refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
electron-renderer refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
src refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
tests fix(napi-derive): more accurate napi expanding error (#1854) 2023-12-13 15:23:00 +08:00
.gitignore feat: integrate with emnapi (#1669) 2023-11-02 12:57:11 +08:00
browser.js fix(cli): add browser entry (#1899) 2024-01-10 11:18:13 +08:00
build.rs Introduce #[napi] procedural macro to automation development boilerplate (#696) 2021-09-23 01:29:09 +08:00
Cargo.toml feat(napi): extends the Map types interoperability (#1950) 2024-02-15 15:43:21 +08:00
electron.cjs refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
example.wasi-browser.js refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
example.wasi.cjs refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
index.cjs refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
index.d.cts refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
index.html feat: add wasm runtime package (#1904) 2024-01-16 23:28:40 +08:00
package.json refactor(cli): refactor js-binding to support easier bundling. (#1957) 2024-02-26 15:46:07 +08:00
tsconfig.json feat: integrate with emnapi (#1669) 2023-11-02 12:57:11 +08:00
vite-entry.js feat: add wasm runtime package (#1904) 2024-01-16 23:28:40 +08:00
vite.config.js feat: add wasm runtime package (#1904) 2024-01-16 23:28:40 +08:00
wasi-worker-browser.mjs fix(cli,wasm-runtime): dependencies (#1905) 2024-01-17 00:57:29 +08:00
wasi-worker.mjs fix(cli,wasm-runtime): dependencies (#1905) 2024-01-17 00:57:29 +08:00