Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Remove SourceMapWriterAccess. #131

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import org.scalajs.linker.interface._
import org.scalajs.linker.interface.unstable._
import org.scalajs.linker.standard._

import org.scalajs.linker.backend.javascript.{ByteArrayWriter, SourceMapWriter}
import org.scalajs.linker.backend.webassembly._

import org.scalajs.linker.backend.wasmemitter.Emitter
Expand Down Expand Up @@ -88,13 +89,13 @@ final class WebAssemblyLinkerBackend(
val emitDebugInfo = !linkerConfig.minify

if (linkerConfig.sourceMap) {
val sourceMapWriter = new SourceMapWriterAccess.ByteArrayWriterBox()
val sourceMapWriter = new ByteArrayWriter

val wasmFileURI = s"./$wasmFileName"
val sourceMapURI = s"./$sourceMapFileName"

val smWriter =
sourceMapWriter.createSourceMapWriter(wasmFileURI, linkerConfig.relativizeSourceMapBase)
new SourceMapWriter(sourceMapWriter, wasmFileURI, linkerConfig.relativizeSourceMapBase)
val binaryOutput = new BinaryWriter.WithSourceMap(
wasmModule,
emitDebugInfo,
Expand Down

This file was deleted.