riot/compiler

View on GitHub
src/utils/create-sourcemap.js

Summary

Maintainability
A
0 mins
Test Coverage
import { SourceMapGenerator } from 'source-map'

/**
 * Create a new sourcemap generator
 * @param   { Object } options - sourcemap options
 * @returns { SourceMapGenerator } SourceMapGenerator instance
 */
export default function createSourcemap(options) {
  return new SourceMapGenerator(options)
}