selene icon indicating copy to clipboard operation
selene copied to clipboard

Support for special / static builtin requires

Open filiptibell opened this issue 2 years ago • 1 comments

In Lune we use a special require syntax for builtin libraries instead of globals to avoid polluting the global environment and taking up useful names. Our requires are in the format require("@lune/builtin-library-name") and are statically resolvable to a table of functions/and or properties. It would be great to have support for this in selene!

filiptibell avatar May 16 '23 07:05 filiptibell

In wezterm and KumoMTA the builtin (implemented in internal rust code) environment-specific libraries are imported via require 'wezterm' or require 'kumo' and I'd like to be able to define selene libraries for these things.

wez avatar Jun 22 '23 20:06 wez