Macro deno_core::include_js_files[][src]

macro_rules! include_js_files {
    (prefix $prefix : literal, $($file : literal,) +) => { ... };
}
Expand description

Helps embed JS files in an extension. Returns Vec<(&’static str, Box)> representing the filename and source code. This is only meant for extensions that will be snapshotted, as code will be loaded at runtime.

Example:

include_js_files!(
  prefix "deno:extensions/hello",
  "01_hello.js",
  "02_goodbye.js",
)