Skip to content

Commit

Permalink
next-swc/wasm: Make span start at 0 (#36532)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Apr 28, 2022
1 parent 917a736 commit 3aa8aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-swc/crates/wasm/src/lib.rs
Expand Up @@ -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> {
console_error_panic_hook::set_once();

let c = compiler();
let c = swc::Compiler::new(Arc::new(SourceMap::new(FilePathMapping::empty())));

try_with_handler(
c.cm.clone(),
Expand Down

0 comments on commit 3aa8aaa

Please sign in to comment.