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

Helps embed JS files in an extension. Returns Vec<(&’static str, &’static str)> representing the filename and source code.

Example:

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