mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
10 lines
281 B
JavaScript
10 lines
281 B
JavaScript
const validate = require('sourcemap-validator');
|
|
const fs = require('fs');
|
|
|
|
const jsFile = process.argv[1];
|
|
const mapFile = process.argv[2];
|
|
|
|
const jsContent = fs.readFileSync(jsFile, 'utf-8');
|
|
const mapContent = fs.readFileSync(mapFile, 'utf-8');
|
|
|
|
validate(jsContent, mapContent); |