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

Commit

Permalink
Merge pull request #131 from sjrd/remove-sourcemapwriteraccess
Browse files Browse the repository at this point in the history
Remove SourceMapWriterAccess.
  • Loading branch information
tanishiking authored May 17, 2024
2 parents 405ec4a + 03cb7f3 commit 0e0a8be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
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.

0 comments on commit 0e0a8be

Please sign in to comment.