mirror of
https://github.com/swc-project/swc.git
synced 2024-12-11 07:35:15 +03:00
c7b12cd408
- Handle inline source map (Closes #706) - Fix parsing of conditional expression starting with async (Closes #706)
8 lines
182 B
JavaScript
8 lines
182 B
JavaScript
const validate = require('sourcemap-validator');
|
|
const fs = require('fs');
|
|
|
|
const jsFile = process.argv[1];
|
|
|
|
const jsContent = fs.readFileSync(jsFile, 'utf-8');
|
|
|
|
validate(jsContent); |