nidium/Nidium

Embeded module lookup

Closed this issue · 1 comments

require() doesn't work on embed:// path. Shouldn't require() works with any stream allowing AllowLocalFileStream?

Also, Embed directory / builtin, should be added to the lookup chain for modules, so that we can easily create "native" js module.

I was thinking to something like :

src/Embed/ => regular embedded JS files (or resources) (not modules).
src/Embed/lib/ => public builtin JS modules

e.g. require("foo"); would look up to src/Embed/lib/foo.js (or whichever virtualization embed:// is bound to).

efyx commented

embed:// and require() should now work as expected in release or dev build.

Fixed by ae63bf8 (and others 0a49401...81bd61a)