You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openNG/build/transforms/dummy.js

19 lines
491 B
JavaScript

"use strict";
const core = require("../core");
module.exports = function () {
return core.createSingleFileTransform({
displayName: "Dummy transform",
// stream: where 'contents' is a stream
supportsStreams: true,
// virtual files: files with a contents buffer/stream but without a path
supportsVirtualFiles: true,
// virtual filesystem: not-on-disk, eg. for includes of transformed files
supportsVirtualFilesystem: true,
transform: (file) => {
return file;
}
});
};