summaryrefslogtreecommitdiff
path: root/ext/webidl/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/webidl/lib.rs')
-rw-r--r--ext/webidl/lib.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/ext/webidl/lib.rs b/ext/webidl/lib.rs
index 42559e501..332bea815 100644
--- a/ext/webidl/lib.rs
+++ b/ext/webidl/lib.rs
@@ -1,14 +1,3 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-use deno_core::include_js_files;
-use deno_core::Extension;
-
-pub fn init() -> Extension {
- Extension::builder(env!("CARGO_PKG_NAME")).build()
-}
-
-pub fn init_esm() -> Extension {
- Extension::builder(env!("CARGO_PKG_NAME"))
- .esm(include_js_files!("00_webidl.js",))
- .build()
-}
+deno_core::extension!(deno_webidl, esm = ["00_webidl.js"],);