From 39ad8a53453ecf65fa334c5ebbc5f09f866c6306 Mon Sep 17 00:00:00 2001 From: Kajetan Rzepecki Date: Fri, 14 Oct 2016 23:01:14 +0200 Subject: [PATCH] Hack around webpacks file list capture. --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index e936e3c..047e56a 100644 --- a/index.js +++ b/index.js @@ -21,6 +21,9 @@ module.exports = function(source, map) { // source variable. Check API for more details. creator.create(this.resourcePath, source).then(content => { content.writeFile().then(_ => { + // by emitting a dummy file for webpack we'll ensure that tsc actually + // knows it needs this file. + this.emitFile(content.outputFilePath, ""); callback(null, source, map); }); });