diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-04-29 00:16:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 18:16:45 -0400 |
commit | e89295b176b4f494d19b547b6b4d7c98d0cf1da1 (patch) | |
tree | ae2f043d8a883b6f6f754c057b8dfe678b3c7944 /op_crates/console/lib.rs | |
parent | e63c53315450ed305752566f4c3ad2bb76c8b8a3 (diff) |
refactor(extensions): reintroduce builder (#10412)
Diffstat (limited to 'op_crates/console/lib.rs')
-rw-r--r-- | op_crates/console/lib.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/op_crates/console/lib.rs b/op_crates/console/lib.rs index 4d6a213f2..4f64bb108 100644 --- a/op_crates/console/lib.rs +++ b/op_crates/console/lib.rs @@ -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 { |