deno_core

Macro include_lazy_loaded_js_files

Source
macro_rules! include_lazy_loaded_js_files {
    ($name:ident $( dir $dir:literal, )? $(
    $s1:literal
    $(with_specifier $s2:literal)?
    $(= $config:tt)?
  ),* $(,)?) => { ... };
}
Expand description

Helps embed JS files in an extension. Returns a vector of ExtensionFileSource, that represent the filename and source code. All specified files are rewritten into “ext:<extension_name>/<file_name>”.

An optional “dir” option can be specified to prefix all files with a directory name.

See [include_js_files!] for details on available options.