From e89295b176b4f494d19b547b6b4d7c98d0cf1da1 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Thu, 29 Apr 2021 00:16:45 +0200 Subject: refactor(extensions): reintroduce builder (#10412) --- op_crates/web/lib.rs | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'op_crates/web/lib.rs') diff --git a/op_crates/web/lib.rs b/op_crates/web/lib.rs index 7fd8221eb..a2612743e 100644 --- a/op_crates/web/lib.rs +++ b/op_crates/web/lib.rs @@ -6,17 +6,19 @@ use std::path::PathBuf; /// Load and execute the javascript code. pub fn init() -> Extension { - Extension::pure_js(include_js_files!( - prefix "deno:op_crates/web", - "00_infra.js", - "01_dom_exception.js", - "01_mimesniff.js", - "02_event.js", - "03_abort_signal.js", - "04_global_interfaces.js", - "08_text_encoding.js", - "12_location.js", - )) + Extension::builder() + .js(include_js_files!( + prefix "deno:op_crates/web", + "00_infra.js", + "01_dom_exception.js", + "01_mimesniff.js", + "02_event.js", + "03_abort_signal.js", + "04_global_interfaces.js", + "08_text_encoding.js", + "12_location.js", + )) + .build() } pub fn get_declaration() -> PathBuf { -- cgit v1.2.3