Class SourceMapResolver


  • @GwtIncompatible("Accesses the file system")
    public final class SourceMapResolver
    extends java.lang.Object
    Utility class for resolving source maps and files referenced in source maps.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static @Nullable SourceFile extractSourceMap​(SourceFile jsFile, java.lang.String sourceMapURL, boolean parseInlineSourceMaps)
      For a given //# sourceMappingUrl, this locates the appropriate sourcemap on disk.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • extractSourceMap

        public static @Nullable SourceFile extractSourceMap​(SourceFile jsFile,
                                                            java.lang.String sourceMapURL,
                                                            boolean parseInlineSourceMaps)
        For a given //# sourceMappingUrl, this locates the appropriate sourcemap on disk. This is use for sourcemap merging (--apply_input_source_maps) and for error resolution.
        Parameters:
        parseInlineSourceMaps - Whether to parse Base64 encoded source maps.