Unverified Commit 3aa8aaae authored by Donny/강동윤's avatar Donny/강동윤 Committed by GitHub

next-swc/wasm: Make span start at 0 (#36532)

parent 917a736a
...@@ -85,7 +85,7 @@ pub fn transform_sync(s: &str, opts: JsValue) -> Result<JsValue, JsValue> { ...@@ -85,7 +85,7 @@ pub fn transform_sync(s: &str, opts: JsValue) -> Result<JsValue, JsValue> {
pub fn parse_sync(s: &str, opts: JsValue) -> Result<JsValue, JsValue> { pub fn parse_sync(s: &str, opts: JsValue) -> Result<JsValue, JsValue> {
console_error_panic_hook::set_once(); console_error_panic_hook::set_once();
let c = compiler(); let c = swc::Compiler::new(Arc::new(SourceMap::new(FilePathMapping::empty())));
try_with_handler( try_with_handler(
c.cm.clone(), c.cm.clone(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment