(str string)
| 894 | } |
| 895 | |
| 896 | func extractSourceMapLine(str string) string { |
| 897 | for { |
| 898 | p := strings.LastIndexByte(str, '\n') |
| 899 | line := str[p+1:] |
| 900 | if line != "" && line != "})" { |
| 901 | if strings.HasPrefix(line, "//# sourceMappingURL=") { |
| 902 | return line |
| 903 | } |
| 904 | break |
| 905 | } |
| 906 | if p >= 0 { |
| 907 | str = str[:p] |
| 908 | } else { |
| 909 | break |
| 910 | } |
| 911 | } |
| 912 | return "" |
| 913 | } |
| 914 | |
| 915 | func (self *_parser) parseSourceMap() *sourcemap.Consumer { |
| 916 | if self.opts.disableSourceMaps { |
no outgoing calls
searching dependent graphs…