mapbox-gl
Version:
A WebGL interactive maps library
18 lines (16 loc) • 406 B
JavaScript
const through = require('through2');
const path = require('path');
module.exports = (file) => {
if (path.extname(file) === '.json') {
return through();
}
let first = true;
return through(function (chunk, encoding, callback) {
if (first) {
this.push("'use strict';");
first = false;
}
this.push(chunk);
callback();
});
};