From 397942b68376e7dfd59ef25618f048ee897067a2 Mon Sep 17 00:00:00 2001 From: James Brantly Date: Sun, 10 Apr 2016 22:59:18 -0400 Subject: [PATCH] Watch for changes on elided imports. (#156) (#169) * Watch for changes on elided imports. (#156) * Fix bug and update tests --- index.ts | 28 ++++++++++++++----- .../expectedOutput-1.6/patch0/output.txt | 2 +- .../expectedOutput-1.7/patch0/output.txt | 2 +- .../expectedOutput-1.8/patch0/output.txt | 2 +- .../expectedOutput-1.9/patch0/output.txt | 2 +- .../expectedOutput-1.6/patch0/output.txt | 2 +- .../expectedOutput-1.7/patch0/output.txt | 2 +- .../expectedOutput-1.8/patch0/output.txt | 2 +- .../expectedOutput-1.9/patch0/output.txt | 2 +- test/issue81/expectedOutput-1.8/bundle.js.map | 2 +- .../expectedOutput-1.6/patch0/output.txt | 2 +- .../patch1/output.transpiled.txt | 6 ++++ .../expectedOutput-1.6/patch1/output.txt | 2 +- .../expectedOutput-1.7/patch0/output.txt | 2 +- .../patch1/output.transpiled.txt | 6 ++++ .../expectedOutput-1.7/patch1/output.txt | 2 +- .../expectedOutput-1.8/patch0/output.txt | 2 +- .../patch1/output.transpiled.txt | 6 ++++ .../expectedOutput-1.8/patch1/output.txt | 2 +- .../expectedOutput-1.9/patch0/output.txt | 2 +- .../patch1/output.transpiled.txt | 6 ++++ .../expectedOutput-1.9/patch1/output.txt | 2 +- 22 files changed, 62 insertions(+), 24 deletions(-) create mode 100644 test/simpleDependency/expectedOutput-1.6/patch1/output.transpiled.txt create mode 100644 test/simpleDependency/expectedOutput-1.7/patch1/output.transpiled.txt create mode 100644 test/simpleDependency/expectedOutput-1.8/patch1/output.transpiled.txt create mode 100644 test/simpleDependency/expectedOutput-1.9/patch1/output.transpiled.txt diff --git a/index.ts b/index.ts index da9c63824..04b6881d4 100644 --- a/index.ts +++ b/index.ts @@ -51,6 +51,7 @@ interface TSInstance { files: TSFiles; languageService?: typescript.LanguageService; version?: number; + dependencyGraph: any; } interface TSInstances { @@ -193,7 +194,8 @@ function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): { loaderOptions, files, languageService: null, - version: 0 + version: 0, + dependencyGraph: {} }; var compilerOptions: typescript.CompilerOptions = { @@ -293,7 +295,7 @@ function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): { loader._module.errors, formatErrors(diagnostics, instance, {file: configFilePath || 'tsconfig.json'})); - return { instance: instances[loaderOptions.instance] = { compiler, compilerOptions, loaderOptions, files }}; + return { instance: instances[loaderOptions.instance] = { compiler, compilerOptions, loaderOptions, files, dependencyGraph: {} }}; } // Load initial files (core lib files, any files specified in tsconfig.json) @@ -395,6 +397,9 @@ function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): { resolvedModules.push(resolutionResult); } + + instance.dependencyGraph[containingFile] = resolvedModules.filter(m => m != null).map(m => m.resolvedFileName); + return resolvedModules; } }; @@ -501,11 +506,11 @@ function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): { callback(); }); - // manually update changed declaration files + // manually update changed files loader._compiler.plugin("watch-run", (watching, cb) => { var mtimes = watching.compiler.watchFileSystem.watcher.mtimes; Object.keys(mtimes) - .filter(filePath => !!filePath.match(/\.d\.ts$/)) + .filter(filePath => !!filePath.match(/\.tsx?$|\.jsx?$/)) .forEach(filePath => { filePath = path.normalize(filePath); var file = instance.files[filePath]; @@ -582,16 +587,25 @@ function loader(contents) { else { let langService = instance.languageService; + // Emit Javascript + var output = langService.getEmitOutput(filePath); + // Make this file dependent on *all* definition files in the program this.clearDependencies(); this.addDependency(filePath); let allDefinitionFiles = Object.keys(instance.files).filter(filePath => /\.d\.ts$/.test(filePath)); allDefinitionFiles.forEach(this.addDependency.bind(this)); - this._module.meta.tsLoaderDefinitionFileVersions = allDefinitionFiles.map(filePath => filePath+'@'+instance.files[filePath].version); - // Emit Javascript - var output = langService.getEmitOutput(filePath); + // Additionally make this file dependent on all imported files + let additionalDependencies = instance.dependencyGraph[filePath]; + if (additionalDependencies) { + additionalDependencies.forEach(this.addDependency.bind(this)) + } + + this._module.meta.tsLoaderDefinitionFileVersions = allDefinitionFiles + .concat(additionalDependencies) + .map(filePath => filePath+'@'+(instance.files[filePath] || {version: '?'}).version); var outputFile = output.outputFiles.filter(file => !!file.name.match(/\.js(x?)$/)).pop(); if (outputFile) { outputText = outputFile.text } diff --git a/test/aliasResolution/expectedOutput-1.6/patch0/output.txt b/test/aliasResolution/expectedOutput-1.6/patch0/output.txt index 6db4c0f82..986af2fe3 100644 --- a/test/aliasResolution/expectedOutput-1.6/patch0/output.txt +++ b/test/aliasResolution/expectedOutput-1.6/patch0/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 1.56 kB 0 [emitted] main chunk {0} bundle.js (main) 110 bytes [rendered] - [0] ./.test/aliasResolution/app.ts 79 bytes {0} [1 error] + [0] ./.test/aliasResolution/app.ts 79 bytes {0} [built] [1 error] [1] ./.test/aliasResolution/common/components/myComponent.ts 31 bytes {0} [built] ERROR in ./.test/aliasResolution/app.ts diff --git a/test/aliasResolution/expectedOutput-1.7/patch0/output.txt b/test/aliasResolution/expectedOutput-1.7/patch0/output.txt index 6db4c0f82..986af2fe3 100644 --- a/test/aliasResolution/expectedOutput-1.7/patch0/output.txt +++ b/test/aliasResolution/expectedOutput-1.7/patch0/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 1.56 kB 0 [emitted] main chunk {0} bundle.js (main) 110 bytes [rendered] - [0] ./.test/aliasResolution/app.ts 79 bytes {0} [1 error] + [0] ./.test/aliasResolution/app.ts 79 bytes {0} [built] [1 error] [1] ./.test/aliasResolution/common/components/myComponent.ts 31 bytes {0} [built] ERROR in ./.test/aliasResolution/app.ts diff --git a/test/aliasResolution/expectedOutput-1.8/patch0/output.txt b/test/aliasResolution/expectedOutput-1.8/patch0/output.txt index 7e5777143..e3793e1ff 100644 --- a/test/aliasResolution/expectedOutput-1.8/patch0/output.txt +++ b/test/aliasResolution/expectedOutput-1.8/patch0/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 1.59 kB 0 [emitted] main chunk {0} bundle.js (main) 138 bytes [rendered] - [0] ./.test/aliasResolution/app.ts 93 bytes {0} [1 error] + [0] ./.test/aliasResolution/app.ts 93 bytes {0} [built] [1 error] [1] ./.test/aliasResolution/common/components/myComponent.ts 45 bytes {0} [built] ERROR in ./.test/aliasResolution/app.ts diff --git a/test/aliasResolution/expectedOutput-1.9/patch0/output.txt b/test/aliasResolution/expectedOutput-1.9/patch0/output.txt index 7e5777143..e3793e1ff 100644 --- a/test/aliasResolution/expectedOutput-1.9/patch0/output.txt +++ b/test/aliasResolution/expectedOutput-1.9/patch0/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 1.59 kB 0 [emitted] main chunk {0} bundle.js (main) 138 bytes [rendered] - [0] ./.test/aliasResolution/app.ts 93 bytes {0} [1 error] + [0] ./.test/aliasResolution/app.ts 93 bytes {0} [built] [1 error] [1] ./.test/aliasResolution/common/components/myComponent.ts 45 bytes {0} [built] ERROR in ./.test/aliasResolution/app.ts diff --git a/test/dependencyErrors/expectedOutput-1.6/patch0/output.txt b/test/dependencyErrors/expectedOutput-1.6/patch0/output.txt index 9af64ca9c..d93270919 100644 --- a/test/dependencyErrors/expectedOutput-1.6/patch0/output.txt +++ b/test/dependencyErrors/expectedOutput-1.6/patch0/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 1.74 kB 0 [emitted] main chunk {0} bundle.js (main) 204 bytes [rendered] - [0] ./.test/dependencyErrors/app.ts 80 bytes {0} [1 error] + [0] ./.test/dependencyErrors/app.ts 80 bytes {0} [built] [1 error] [1] ./.test/dependencyErrors/dep1.ts 62 bytes {0} [built] [2] ./.test/dependencyErrors/dep2.ts 62 bytes {0} diff --git a/test/dependencyErrors/expectedOutput-1.7/patch0/output.txt b/test/dependencyErrors/expectedOutput-1.7/patch0/output.txt index 9af64ca9c..d93270919 100644 --- a/test/dependencyErrors/expectedOutput-1.7/patch0/output.txt +++ b/test/dependencyErrors/expectedOutput-1.7/patch0/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 1.74 kB 0 [emitted] main chunk {0} bundle.js (main) 204 bytes [rendered] - [0] ./.test/dependencyErrors/app.ts 80 bytes {0} [1 error] + [0] ./.test/dependencyErrors/app.ts 80 bytes {0} [built] [1 error] [1] ./.test/dependencyErrors/dep1.ts 62 bytes {0} [built] [2] ./.test/dependencyErrors/dep2.ts 62 bytes {0} diff --git a/test/dependencyErrors/expectedOutput-1.8/patch0/output.txt b/test/dependencyErrors/expectedOutput-1.8/patch0/output.txt index 862b20a5f..fed341313 100644 --- a/test/dependencyErrors/expectedOutput-1.8/patch0/output.txt +++ b/test/dependencyErrors/expectedOutput-1.8/patch0/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 1.78 kB 0 [emitted] main chunk {0} bundle.js (main) 246 bytes [rendered] - [0] ./.test/dependencyErrors/app.ts 94 bytes {0} [1 error] + [0] ./.test/dependencyErrors/app.ts 94 bytes {0} [built] [1 error] [1] ./.test/dependencyErrors/dep1.ts 76 bytes {0} [built] [2] ./.test/dependencyErrors/dep2.ts 76 bytes {0} diff --git a/test/dependencyErrors/expectedOutput-1.9/patch0/output.txt b/test/dependencyErrors/expectedOutput-1.9/patch0/output.txt index 862b20a5f..fed341313 100644 --- a/test/dependencyErrors/expectedOutput-1.9/patch0/output.txt +++ b/test/dependencyErrors/expectedOutput-1.9/patch0/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 1.78 kB 0 [emitted] main chunk {0} bundle.js (main) 246 bytes [rendered] - [0] ./.test/dependencyErrors/app.ts 94 bytes {0} [1 error] + [0] ./.test/dependencyErrors/app.ts 94 bytes {0} [built] [1 error] [1] ./.test/dependencyErrors/dep1.ts 76 bytes {0} [built] [2] ./.test/dependencyErrors/dep2.ts 76 bytes {0} diff --git a/test/issue81/expectedOutput-1.8/bundle.js.map b/test/issue81/expectedOutput-1.8/bundle.js.map index 336baa16a..2224d7abb 100644 --- a/test/issue81/expectedOutput-1.8/bundle.js.map +++ b/test/issue81/expectedOutput-1.8/bundle.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap [hash]","webpack:///./a.ts"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;ACtCA,KAAI,UAAU,GAAI,aAAQ,UAAK,UAAU,IAAK,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE;AACnF,SAAI,CAAC,GAAG,SAAS,CAAC,MAAM;SAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;SAAE,CAAC,CAAC;AAC7H,SAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,KAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;AAClJ,YAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;EACjE,CAAC;AAJF,cAAa,MAAW;AACpB,YAAO,MAAM,CAAC;EACjB;AAGD;;EAEC;AAHD,mBAAC,GAAG,CAQH,EAAE,GAAG,CARF,C","file":"bundle.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap [hash]\n **/","\nfunction bar(target: any) {\n return target;\n}\n\n@bar\nclass Foo {\n \n}\n\n\n/** WEBPACK FOOTER **\n ** ./a.ts\n **/"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap [hash]","webpack:///./a.ts"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;ACtCA,KAAI,UAAU,GAAI,aAAQ,UAAK,UAAU,IAAK,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE;AACnF,SAAI,CAAC,GAAG,SAAS,CAAC,MAAM;SAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;SAAE,CAAC,CAAC;AAC7H,SAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,KAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;AAClJ,YAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;EACjE,CAAC;AAJF,cAAa,MAAW;AACpB,YAAO,MAAM,CAAC;EACjB;AAGD;2BAAA;EAEC;AAHD,mBAAC,GAAG,CAQH,EAAE,GAAG,CARF,C","file":"bundle.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap [hash]\n **/","\nfunction bar(target: any) {\n return target;\n}\n\n@bar\nclass Foo {\n \n}\n\n\n/** WEBPACK FOOTER **\n ** ./a.ts\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/test/simpleDependency/expectedOutput-1.6/patch0/output.txt b/test/simpleDependency/expectedOutput-1.6/patch0/output.txt index df80d39e6..d8cc2e4cd 100644 --- a/test/simpleDependency/expectedOutput-1.6/patch0/output.txt +++ b/test/simpleDependency/expectedOutput-1.6/patch0/output.txt @@ -2,7 +2,7 @@ bundle.js 1.71 kB 0 [emitted] main chunk {0} bundle.js (main) 155 bytes [rendered] [0] ./.test/simpleDependency/app.ts 37 bytes {0} [1 error] - [1] ./.test/simpleDependency/dep.ts 56 bytes {0} + [1] ./.test/simpleDependency/dep.ts 56 bytes {0} [built] [2] ./.test/simpleDependency/deeperDep.ts 62 bytes {0} [built] ERROR in ./.test/simpleDependency/app.ts diff --git a/test/simpleDependency/expectedOutput-1.6/patch1/output.transpiled.txt b/test/simpleDependency/expectedOutput-1.6/patch1/output.transpiled.txt new file mode 100644 index 000000000..4abfc9827 --- /dev/null +++ b/test/simpleDependency/expectedOutput-1.6/patch1/output.transpiled.txt @@ -0,0 +1,6 @@ + Asset Size Chunks Chunk Names +bundle.js 1.71 kB 0 [emitted] main +chunk {0} bundle.js (main) 155 bytes [rendered] + [0] ./.test/simpleDependency/app.ts 37 bytes {0} + [1] ./.test/simpleDependency/dep.ts 56 bytes {0} + [2] ./.test/simpleDependency/deeperDep.ts 62 bytes {0} [built] \ No newline at end of file diff --git a/test/simpleDependency/expectedOutput-1.6/patch1/output.txt b/test/simpleDependency/expectedOutput-1.6/patch1/output.txt index 4abfc9827..57d5a9d2f 100644 --- a/test/simpleDependency/expectedOutput-1.6/patch1/output.txt +++ b/test/simpleDependency/expectedOutput-1.6/patch1/output.txt @@ -2,5 +2,5 @@ bundle.js 1.71 kB 0 [emitted] main chunk {0} bundle.js (main) 155 bytes [rendered] [0] ./.test/simpleDependency/app.ts 37 bytes {0} - [1] ./.test/simpleDependency/dep.ts 56 bytes {0} + [1] ./.test/simpleDependency/dep.ts 56 bytes {0} [built] [2] ./.test/simpleDependency/deeperDep.ts 62 bytes {0} [built] \ No newline at end of file diff --git a/test/simpleDependency/expectedOutput-1.7/patch0/output.txt b/test/simpleDependency/expectedOutput-1.7/patch0/output.txt index df80d39e6..d8cc2e4cd 100644 --- a/test/simpleDependency/expectedOutput-1.7/patch0/output.txt +++ b/test/simpleDependency/expectedOutput-1.7/patch0/output.txt @@ -2,7 +2,7 @@ bundle.js 1.71 kB 0 [emitted] main chunk {0} bundle.js (main) 155 bytes [rendered] [0] ./.test/simpleDependency/app.ts 37 bytes {0} [1 error] - [1] ./.test/simpleDependency/dep.ts 56 bytes {0} + [1] ./.test/simpleDependency/dep.ts 56 bytes {0} [built] [2] ./.test/simpleDependency/deeperDep.ts 62 bytes {0} [built] ERROR in ./.test/simpleDependency/app.ts diff --git a/test/simpleDependency/expectedOutput-1.7/patch1/output.transpiled.txt b/test/simpleDependency/expectedOutput-1.7/patch1/output.transpiled.txt new file mode 100644 index 000000000..4abfc9827 --- /dev/null +++ b/test/simpleDependency/expectedOutput-1.7/patch1/output.transpiled.txt @@ -0,0 +1,6 @@ + Asset Size Chunks Chunk Names +bundle.js 1.71 kB 0 [emitted] main +chunk {0} bundle.js (main) 155 bytes [rendered] + [0] ./.test/simpleDependency/app.ts 37 bytes {0} + [1] ./.test/simpleDependency/dep.ts 56 bytes {0} + [2] ./.test/simpleDependency/deeperDep.ts 62 bytes {0} [built] \ No newline at end of file diff --git a/test/simpleDependency/expectedOutput-1.7/patch1/output.txt b/test/simpleDependency/expectedOutput-1.7/patch1/output.txt index 4abfc9827..57d5a9d2f 100644 --- a/test/simpleDependency/expectedOutput-1.7/patch1/output.txt +++ b/test/simpleDependency/expectedOutput-1.7/patch1/output.txt @@ -2,5 +2,5 @@ bundle.js 1.71 kB 0 [emitted] main chunk {0} bundle.js (main) 155 bytes [rendered] [0] ./.test/simpleDependency/app.ts 37 bytes {0} - [1] ./.test/simpleDependency/dep.ts 56 bytes {0} + [1] ./.test/simpleDependency/dep.ts 56 bytes {0} [built] [2] ./.test/simpleDependency/deeperDep.ts 62 bytes {0} [built] \ No newline at end of file diff --git a/test/simpleDependency/expectedOutput-1.8/patch0/output.txt b/test/simpleDependency/expectedOutput-1.8/patch0/output.txt index 34bd7cf9e..c5aaf6705 100644 --- a/test/simpleDependency/expectedOutput-1.8/patch0/output.txt +++ b/test/simpleDependency/expectedOutput-1.8/patch0/output.txt @@ -2,7 +2,7 @@ bundle.js 1.75 kB 0 [emitted] main chunk {0} bundle.js (main) 197 bytes [rendered] [0] ./.test/simpleDependency/app.ts 51 bytes {0} [1 error] - [1] ./.test/simpleDependency/dep.ts 70 bytes {0} + [1] ./.test/simpleDependency/dep.ts 70 bytes {0} [built] [2] ./.test/simpleDependency/deeperDep.ts 76 bytes {0} [built] ERROR in ./.test/simpleDependency/app.ts diff --git a/test/simpleDependency/expectedOutput-1.8/patch1/output.transpiled.txt b/test/simpleDependency/expectedOutput-1.8/patch1/output.transpiled.txt new file mode 100644 index 000000000..b70ffbaa5 --- /dev/null +++ b/test/simpleDependency/expectedOutput-1.8/patch1/output.transpiled.txt @@ -0,0 +1,6 @@ + Asset Size Chunks Chunk Names +bundle.js 1.75 kB 0 [emitted] main +chunk {0} bundle.js (main) 197 bytes [rendered] + [0] ./.test/simpleDependency/app.ts 51 bytes {0} + [1] ./.test/simpleDependency/dep.ts 70 bytes {0} + [2] ./.test/simpleDependency/deeperDep.ts 76 bytes {0} [built] \ No newline at end of file diff --git a/test/simpleDependency/expectedOutput-1.8/patch1/output.txt b/test/simpleDependency/expectedOutput-1.8/patch1/output.txt index b70ffbaa5..038e84f63 100644 --- a/test/simpleDependency/expectedOutput-1.8/patch1/output.txt +++ b/test/simpleDependency/expectedOutput-1.8/patch1/output.txt @@ -2,5 +2,5 @@ bundle.js 1.75 kB 0 [emitted] main chunk {0} bundle.js (main) 197 bytes [rendered] [0] ./.test/simpleDependency/app.ts 51 bytes {0} - [1] ./.test/simpleDependency/dep.ts 70 bytes {0} + [1] ./.test/simpleDependency/dep.ts 70 bytes {0} [built] [2] ./.test/simpleDependency/deeperDep.ts 76 bytes {0} [built] \ No newline at end of file diff --git a/test/simpleDependency/expectedOutput-1.9/patch0/output.txt b/test/simpleDependency/expectedOutput-1.9/patch0/output.txt index 34bd7cf9e..c5aaf6705 100644 --- a/test/simpleDependency/expectedOutput-1.9/patch0/output.txt +++ b/test/simpleDependency/expectedOutput-1.9/patch0/output.txt @@ -2,7 +2,7 @@ bundle.js 1.75 kB 0 [emitted] main chunk {0} bundle.js (main) 197 bytes [rendered] [0] ./.test/simpleDependency/app.ts 51 bytes {0} [1 error] - [1] ./.test/simpleDependency/dep.ts 70 bytes {0} + [1] ./.test/simpleDependency/dep.ts 70 bytes {0} [built] [2] ./.test/simpleDependency/deeperDep.ts 76 bytes {0} [built] ERROR in ./.test/simpleDependency/app.ts diff --git a/test/simpleDependency/expectedOutput-1.9/patch1/output.transpiled.txt b/test/simpleDependency/expectedOutput-1.9/patch1/output.transpiled.txt new file mode 100644 index 000000000..b70ffbaa5 --- /dev/null +++ b/test/simpleDependency/expectedOutput-1.9/patch1/output.transpiled.txt @@ -0,0 +1,6 @@ + Asset Size Chunks Chunk Names +bundle.js 1.75 kB 0 [emitted] main +chunk {0} bundle.js (main) 197 bytes [rendered] + [0] ./.test/simpleDependency/app.ts 51 bytes {0} + [1] ./.test/simpleDependency/dep.ts 70 bytes {0} + [2] ./.test/simpleDependency/deeperDep.ts 76 bytes {0} [built] \ No newline at end of file diff --git a/test/simpleDependency/expectedOutput-1.9/patch1/output.txt b/test/simpleDependency/expectedOutput-1.9/patch1/output.txt index b70ffbaa5..038e84f63 100644 --- a/test/simpleDependency/expectedOutput-1.9/patch1/output.txt +++ b/test/simpleDependency/expectedOutput-1.9/patch1/output.txt @@ -2,5 +2,5 @@ bundle.js 1.75 kB 0 [emitted] main chunk {0} bundle.js (main) 197 bytes [rendered] [0] ./.test/simpleDependency/app.ts 51 bytes {0} - [1] ./.test/simpleDependency/dep.ts 70 bytes {0} + [1] ./.test/simpleDependency/dep.ts 70 bytes {0} [built] [2] ./.test/simpleDependency/deeperDep.ts 76 bytes {0} [built] \ No newline at end of file