rhaiscript / playground

A Rhai scripting playground that runs Rhai scripts using WebAssembly in a web browser.
https://rhai.rs/playground
MIT License
20 stars 5 forks source link

Can't import modules #20

Closed Estebang17-a closed 1 year ago

Estebang17-a commented 2 years ago

Hello!, can't import modules on the Rhai Playground, even the example code doesn't work. Could someone help out please?

import "BasicMathPackage" as mat;

EXCEPTION: "Module not found: BasicMathPackage (line 3, position 8)"

schungx commented 2 years ago

The Playground doesn't support loading external modules.

@alvinhochun maybe remove the module examples?

alvinhochun commented 2 years ago

I removed the example with 40a5302f38c54e922a458cfbfe81539ce2feb68e.