Skip to content

Commit

Permalink
Rename wasm function
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Jul 4, 2022
1 parent 113fe99 commit 43eba0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ pub fn transform(specifier: &str, code: &str, options: JsValue) -> Result<JsValu
)
}

#[wasm_bindgen(js_name = "transformCSS")]
pub fn transform_css(filename: &str, code: &str, config_val: JsValue) -> Result<JsValue, JsValue> {
#[wasm_bindgen(js_name = "parcelCSS")]
pub fn parcel_css(filename: &str, code: &str, config_val: JsValue) -> Result<JsValue, JsValue> {
let config: css::Config = config_val
.into_serde()
.map_err(|err| format!("failed to parse options: {}", err))
Expand Down

0 comments on commit 43eba0c

Please sign in to comment.