swc/tests/source_map_inline.js

8 lines
182 B
JavaScript
Raw Normal View History

const validate = require('sourcemap-validator');
const fs = require('fs');
const jsFile = process.argv[1];
const jsContent = fs.readFileSync(jsFile, 'utf-8');
validate(jsContent);