mirror of
https://github.com/denoland/deno.git
synced 2025-10-01 06:31:15 +00:00
refactor(extensions): reintroduce builder (#10412)
This commit is contained in:
parent
e63c533154
commit
e89295b176
12 changed files with 141 additions and 112 deletions
|
@ -5,11 +5,13 @@ use deno_core::Extension;
|
|||
use std::path::PathBuf;
|
||||
|
||||
pub fn init() -> Extension {
|
||||
Extension::pure_js(include_js_files!(
|
||||
prefix "deno:op_crates/console",
|
||||
"01_colors.js",
|
||||
"02_console.js",
|
||||
))
|
||||
Extension::builder()
|
||||
.js(include_js_files!(
|
||||
prefix "deno:op_crates/console",
|
||||
"01_colors.js",
|
||||
"02_console.js",
|
||||
))
|
||||
.build()
|
||||
}
|
||||
|
||||
pub fn get_declaration() -> PathBuf {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue