[Sourcemap] Introduce getCurrentColumn and stop using TextOutput directly
The general goal is remove dependency on TextOutput and make it simpler to use for wasm backend.
This commit is contained in:
committed by
Space Team
parent
e34d3d09bc
commit
fb4dcc6a6a
+1
-1
@@ -461,7 +461,7 @@ fun generateSingleWrappedModuleBody(
|
||||
val sourceMapBuilderConsumer: SourceLocationConsumer
|
||||
if (sourceMapsInfo != null) {
|
||||
val sourceMapPrefix = sourceMapsInfo.sourceMapPrefix
|
||||
sourceMapBuilder = SourceMap3Builder(null, jsCode, sourceMapPrefix)
|
||||
sourceMapBuilder = SourceMap3Builder(null, jsCode::getColumn, sourceMapPrefix)
|
||||
|
||||
val pathResolver = SourceFilePathResolver.create(sourceMapsInfo.sourceRoots, sourceMapPrefix, sourceMapsInfo.outputDir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user