mirror of
https://github.com/denoland/deno.git
synced 2025-09-22 02:12:33 +00:00

This extracts out the shared libraries and `.node` native modules to a temp file and opens them from there. **This means that this implementation will not work in every scenario.** For example, a library could require other files that only exist in the in-memory file system. To solve that, we'll introduce https://github.com/denoland/deno/issues/28918 later or adapt this solution to solve more issues. Additionally, this will not work when run on readonly file systems.
2 lines
68 B
TypeScript
2 lines
68 B
TypeScript
import { hello } from "@denotest/node-addon";
|
|
console.log(hello());
|