WithSourceMapLoader is an option to set a custom source map loader. The loader will be given a path or a URL from the sourceMappingURL. If sourceMappingURL is not absolute it is resolved relatively to the name of the file being parsed. Any error returned by the loader will fail the parsing. Note tha
(loader func(path string) ([]byte, error))
| 72 | // Note that setting this to nil does not disable source map support, there is a default loader which reads |
| 73 | // from the filesystem. Use WithDisableSourceMaps to disable source map support. |
| 74 | func WithSourceMapLoader(loader func(path string) ([]byte, error)) Option { |
| 75 | return func(opts *options) { |
| 76 | opts.sourceMapLoader = loader |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | type _parser struct { |
| 81 | str string |
no outgoing calls
searching dependent graphs…