mirror of
https://github.com/koodiklinikka/koodiklinikka.fi.git
synced 2026-02-04 07:48:00 +00:00
15 lines
291 B
JavaScript
15 lines
291 B
JavaScript
'use strict';
|
|
|
|
var through = require('through2');
|
|
var jsx = require('jsx-transform');
|
|
|
|
module.exports = function(file) {
|
|
return through(function (buf, enc, next) {
|
|
this.push(jsx.transform(buf.toString('utf8'), {
|
|
ignoreDocblock: true,
|
|
jsx: 'h'
|
|
}));
|
|
next();
|
|
});
|
|
};
|