Initial "plugin" system with importer (#7)

This commit is contained in:
Gregory Schier authored and GitHub committed 2023-11-02 18:08:43 -07:00
1 parent 749025640f
commit 1cd6e0af06
26 files changed
+972 -452

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
export function greet() {
// Call Rust-provided fn!
sayHello('Plugin');
}
+7
View File
@@ -0,0 +1,7 @@
import { greet } from './greet.js';
export function hello() {
greet();
console.log('Try JSON parse', JSON.parse(`{ "hello": 123 }`).hello);
console.log('Try RegExp', '123'.match(/[\d]+/));
}