From d662385efbc7efb403872617930b9a3e12a32056 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 3 Oct 2019 11:49:23 -0700 Subject: [PATCH 01/20] Add test for package json existance --- .../app.ts | 3 + .../expectedOutput-3.8/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/output.txt | 7 ++ .../expectedOutput-transpile-3.8/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-transpile-3.8/output.txt | 5 + .../lib/.gitignore | 1 + .../lib/index.ts | 5 + .../lib/package.json | 12 ++ .../lib/tsconfig.json | 10 ++ .../tsconfig.json | 5 + .../webpack.config.js | 20 ++++ 11 files changed, 294 insertions(+) create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/app.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/.gitignore create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/index.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/package.json create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/webpack.config.js diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/app.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/app.ts new file mode 100644 index 000000000..a83f2065b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/app.ts @@ -0,0 +1,3 @@ +import { lib } from './lib'; + +console.log(lib.one, lib.two, lib.three); diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/bundle.js new file mode 100644 index 000000000..7b491a754 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt new file mode 100644 index 000000000..64fcf5538 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt @@ -0,0 +1,7 @@ + Asset Size Chunks Chunk Names + bundle.js 4.29 KiB main [emitted] main + ../lib/out/index.d.ts 89 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] +Entrypoint main = bundle.js +[./app.ts] 131 bytes {main} [built] +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js new file mode 100644 index 000000000..a59c4688b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt new file mode 100644 index 000000000..f31c64018 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.35 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 167 bytes {main} [built] +[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/.gitignore b/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/.gitignore new file mode 100644 index 000000000..7b7f62099 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/.gitignore @@ -0,0 +1 @@ +!*.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/index.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/index.ts new file mode 100644 index 000000000..669ca7b3d --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/index.ts @@ -0,0 +1,5 @@ +export const lib = { + one: 1, + two: 2, + three: 3 +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/package.json b/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/package.json new file mode 100644 index 000000000..fedf26a0b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/package.json @@ -0,0 +1,12 @@ +{ + "name": "lib", + "version": "1.0.0", + "description": "", + "main": "out/index.js", + "typings": "out/index.d.ts", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC" +} diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/tsconfig.json b/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/tsconfig.json new file mode 100644 index 000000000..2ca71a202 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "composite": true, + "sourceMap": true, + "outDir": "./out" + }, + "files": [ + "./index.ts" + ] +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json b/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json new file mode 100644 index 000000000..03974daa7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json @@ -0,0 +1,5 @@ +{ + "references": [ + { "path": "./lib" } + ] +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/webpack.config.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/webpack.config.js new file mode 100644 index 000000000..81cd477e4 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/webpack.config.js @@ -0,0 +1,20 @@ +var path = require('path') + +module.exports = { + mode: 'development', + entry: './app.ts', + output: { + filename: 'bundle.js' + }, + resolve: { + extensions: ['.ts', '.js'] + }, + module: { + rules: [ + { test: /\.ts$/, loader: 'ts-loader', options: { projectReferences: true } } + ] + } +} + +// for test harness purposes only, you would not need this in a normal project +module.exports.resolveLoader = { alias: { 'ts-loader': require('path').join(__dirname, "../../../index.js") } } \ No newline at end of file From 00d40db6ed6ee957fdb850922f57ad8c05835f1c Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 7 Apr 2020 17:20:54 -0700 Subject: [PATCH 02/20] Show how output is different when module resolution resolves to .js/.d.ts --- .../expectedOutput-3.8/bundle.js | 12 ++++++------ .../expectedOutput-3.8/output.txt | 9 ++++----- .../expectedOutput-transpile-3.8/bundle.js | 12 ++++++------ .../expectedOutput-transpile-3.8/output.txt | 4 ++-- 4 files changed, 18 insertions(+), 19 deletions(-) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/bundle.js index 7b491a754..60f7f137c 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt index 64fcf5538..fb4166cd3 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt @@ -1,7 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.34 KiB main [emitted] main +../lib/out/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 130 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js index a59c4688b..a4bc091aa 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt index f31c64018..cef6997fc 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 4.35 KiB main [emitted] main +bundle.js 4.37 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 130 bytes {main} [built] \ No newline at end of file From a3a39e39960a71862f58bbcd29fe978b76c99bb1 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 3 Oct 2019 14:23:19 -0700 Subject: [PATCH 03/20] Add input file of reference as dependency instead of .d.ts file --- src/index.ts | 21 ++++++++++++++------- src/instances.ts | 30 +++++++++++++++++++++++++++++- 2 files changed, 43 insertions(+), 8 deletions(-) diff --git a/src/index.ts b/src/index.ts index eccea8ef9..658ac59ea 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,6 +6,7 @@ import * as webpack from 'webpack'; import * as constants from './constants'; import { getEmitOutput, + getInputFileNameFromOutput, getTypeScriptInstance, isReferencedFile } from './instances'; @@ -472,13 +473,19 @@ function getEmit( ); // In the case of dependencies that are part of a project reference, // the real dependency that webpack should watch is the JS output file. - return projectReference !== undefined - ? getAndCacheOutputJSFileName( - resolvedFileName, - projectReference, - instance - ) - : originalFileName; + if (projectReference !== undefined) { + return getAndCacheOutputJSFileName( + resolvedFileName, + projectReference, + instance + ); + } + return ( + getInputFileNameFromOutput( + instance, + path.resolve(resolvedFileName) + ) || originalFileName + ); }); if (additionalDependencies.length > 0) { diff --git a/src/instances.ts b/src/instances.ts index 9d271156d..41880164d 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -7,7 +7,7 @@ import * as webpack from 'webpack'; import { makeAfterCompile } from './after-compile'; import { getCompiler, getCompilerOptions } from './compilerSetup'; import { getConfigFile, getConfigParseResult } from './config'; -import { dtsDtsxOrDtsDtsxMapRegex, EOL } from './constants'; +import { dtsDtsxOrDtsDtsxMapRegex, EOL, tsTsxRegex } from './constants'; import { LoaderOptions, TSFile, @@ -563,6 +563,34 @@ function getOutputFilesFromReference( ); } +export function getInputFileNameFromOutput( + instance: TSInstance, + filePath: string +): string | undefined { + if (filePath.match(tsTsxRegex) && !fileExtensionIs(filePath, '.d.ts')) { + return undefined; + } + const program = ensureProgram(instance); + return ( + program && + forEachResolvedProjectReference( + program.getResolvedProjectReferences(), + ({ commandLine }) => { + const { options, fileNames } = commandLine; + if (!options.outFile && !options.out) { + const input = fileNames.find(file => + getOutputFileNames(instance, commandLine, file).find( + name => path.resolve(name) === filePath + ) + ); + return input && path.resolve(input); + } + return undefined; + } + ) + ); +} + export function isReferencedFile(instance: TSInstance, filePath: string) { return ( !!instance.solutionBuilderHost && From d5474b22d9815389213cb7b53b93d30bb86e257c Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 7 Oct 2019 10:15:58 -0700 Subject: [PATCH 04/20] Store tsbuildinfos written on solution builder host and hand it off as asset --- src/after-compile.ts | 58 +++++-------------- src/interfaces.ts | 1 + src/servicesHost.ts | 11 +++- .../expectedOutput-3.8/output.txt | 7 ++- .../expectedOutput-3.8/patch2/output.txt | 11 ++-- .../expectedOutput-3.8/output.txt | 9 ++- .../expectedOutput-3.8/output.txt | 13 ++--- .../expectedOutput-3.8/output.txt | 9 ++- .../expectedOutput-3.8/patch2/output.txt | 13 ++--- .../expectedOutput-3.8/patch2/output.txt | 11 ++-- 10 files changed, 58 insertions(+), 85 deletions(-) diff --git a/src/after-compile.ts b/src/after-compile.ts index 517eb6f64..dc334cea1 100644 --- a/src/after-compile.ts +++ b/src/after-compile.ts @@ -3,11 +3,7 @@ import * as ts from 'typescript'; import * as webpack from 'webpack'; import * as constants from './constants'; -import { - forEachResolvedProjectReference, - getEmitFromWatchHost, - getEmitOutput -} from './instances'; +import { getEmitFromWatchHost, getEmitOutput } from './instances'; import { TSFile, TSFiles, @@ -361,15 +357,6 @@ function provideDeclarationFilesToWebpack( } } -function getOutputPathForBuildInfo( - compiler: typeof ts, - options: ts.CompilerOptions -) { - return (compiler as any).getTsBuildInfoEmitOutputFilePath - ? (compiler as any).getTsBuildInfoEmitOutputFilePath(options) - : (compiler as any).getOutputPathForBuildInfo(options); -} - /** * gather all .tsbuildinfo for the project */ @@ -377,38 +364,19 @@ function provideTsBuildInfoFilesToWebpack( instance: TSInstance, compilation: webpack.compilation.Compilation ) { - if (instance.solutionBuilderHost && instance.modifiedFiles) { - const program = ensureProgram(instance); - if (program) { - forEachResolvedProjectReference( - program.getResolvedProjectReferences(), - resolvedRef => { - if ( - resolvedRef.commandLine.fileNames.some(f => - instance.modifiedFiles!.has(path.resolve(f)) - ) - ) { - const buildInfoPath = getOutputPathForBuildInfo( - instance.compiler, - resolvedRef.commandLine.options - ); - if (buildInfoPath) { - const text = instance.compiler.sys.readFile(buildInfoPath); - if (text) { - const assetPath = path.relative( - compilation.compiler.outputPath, - path.resolve(buildInfoPath) - ); - compilation.assets[assetPath] = { - source: () => text, - size: () => text.length - }; - } - } - } - } + if (instance.solutionBuilderHost) { + instance.solutionBuilderHost.tsbuildinfos.forEach(({ name, text }) => { + const assetPath = path.relative( + compilation.compiler.outputPath, + path.resolve(name) ); - } + compilation.assets[assetPath] = { + source: () => text, + size: () => text.length + }; + }); + + instance.solutionBuilderHost.tsbuildinfos.length = 0; } if (instance.watchHost) { diff --git a/src/interfaces.ts b/src/interfaces.ts index 57cb8b269..4cddc9d3f 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -91,6 +91,7 @@ export interface SolutionBuilderWithWatchHost >, WatchFactory { diagnostics: SolutionDiagnostics; + tsbuildinfos: typescript.OutputFile[]; } export interface TSInstance { diff --git a/src/servicesHost.ts b/src/servicesHost.ts index 5c7d96108..ec58dff5f 100644 --- a/src/servicesHost.ts +++ b/src/servicesHost.ts @@ -647,6 +647,7 @@ export function makeSolutionBuilderHost( compiler.sys.newLine )}${newLine + newLine}` ); + const tsbuildinfos = [] as typescript.OutputFile[]; const solutionBuilderHost: SolutionBuilderWithWatchHost = { ...compiler.createSolutionBuilderWithWatchHost( compiler.sys, @@ -662,9 +663,17 @@ export function makeSolutionBuilderHost( writeFile: (name, text, writeByteOrderMark) => { compiler.sys.writeFile(name, text, writeByteOrderMark); updateFileWithText(instance, name, () => text); + if (name.endsWith('.tsbuildinfo')) { + tsbuildinfos.push({ + name, + text, + writeByteOrderMark: !!writeByteOrderMark + }); + } }, setTimeout: undefined, - clearTimeout: undefined + clearTimeout: undefined, + tsbuildinfos }; solutionBuilderHost.trace = logData => log.logInfo(logData); solutionBuilderHost.getParsedCommandLine = file => diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt index fb4166cd3..6a20f74f6 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt @@ -1,6 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 4.34 KiB main [emitted] main -../lib/out/index.d.ts 89 bytes [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.34 KiB main [emitted] main + ../lib/out/index.d.ts 89 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/out/index.js] 130 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch2/output.txt index 155475ba2..aa33f5318 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch2/output.txt @@ -1,17 +1,16 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main +../lib/index.d.ts 108 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] [2 errors] ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib\index.ts(6,3) +[tsl] ERROR in lib\index.ts(6,3)  TS1136: Property assignment expected. ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib\index.ts(7,1) +[tsl] ERROR in lib\index.ts(7,1)  TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt index fdfaf038b..89eaa1f3a 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt @@ -1,8 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 4.77 KiB main [emitted] main - ../lib/index.d.ts 84 bytes [emitted] - ../lib/helper.d.ts 87 bytes [emitted] -../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.77 KiB main [emitted] main + ../lib/index.d.ts 84 bytes [emitted] +../lib/helper.d.ts 87 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 100 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt index 6cec9cd55..fc3caf432 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -1,10 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.77 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../lib/index.d.ts 84 bytes [emitted] - ../lib/helper.d.ts 87 bytes [emitted] -../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.77 KiB main [emitted] main + ../app.d.ts 11 bytes [emitted] + ../lib/index.d.ts 84 bytes [emitted] + ../lib/helper.d.ts 87 bytes [emitted] +../tsconfig.tsbuildinfo 51.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 100 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt index fdfaf038b..89eaa1f3a 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt @@ -1,8 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 4.77 KiB main [emitted] main - ../lib/index.d.ts 84 bytes [emitted] - ../lib/helper.d.ts 87 bytes [emitted] -../lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.77 KiB main [emitted] main + ../lib/index.d.ts 84 bytes [emitted] +../lib/helper.d.ts 87 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 100 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch2/output.txt index b237c917d..fde6c4aaa 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch2/output.txt @@ -1,18 +1,17 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.d.ts 108 bytes [emitted] - ../app.d.ts 11 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main +../lib/index.d.ts 108 bytes [emitted] + ../app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] [2 errors] ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib\index.ts(6,3) +[tsl] ERROR in lib\index.ts(6,3)  TS1136: Property assignment expected. ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib\index.ts(7,1) +[tsl] ERROR in lib\index.ts(7,1)  TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch2/output.txt index 155475ba2..aa33f5318 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch2/output.txt @@ -1,17 +1,16 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main +../lib/index.d.ts 108 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] [2 errors] ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib\index.ts(6,3) +[tsl] ERROR in lib\index.ts(6,3)  TS1136: Property assignment expected. ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib\index.ts(7,1) +[tsl] ERROR in lib\index.ts(7,1)  TS1128: Declaration or statement expected. \ No newline at end of file From f57b8fc51e07baa8f399417a40e2035599c09d9d Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 7 Oct 2019 12:16:32 -0700 Subject: [PATCH 05/20] .d.ts as assets only if written --- src/after-compile.ts | 105 +++++++++++------- src/index.ts | 6 +- src/instances.ts | 41 ++++--- src/interfaces.ts | 1 + src/servicesHost.ts | 8 ++ .../expectedOutput-3.8/output.txt | 2 +- .../expectedOutput-3.8/output.txt | 4 +- .../expectedOutput-3.8/patch2/output.txt | 5 +- .../expectedOutput-3.8/output.txt | 2 +- .../expectedOutput-3.8/output.txt | 6 +- .../expectedOutput-3.8/patch0/output.txt | 1 + .../expectedOutput-3.8/output.txt | 2 - .../expectedOutput-3.8/patch0/output.txt | 3 +- .../expectedOutput-3.8/patch1/output.txt | 2 +- .../expectedOutput-3.8/output.txt | 6 +- .../expectedOutput-3.8/patch0/output.txt | 1 + .../expectedOutput-3.8/output.txt | 4 +- .../expectedOutput-3.8/patch0/output.txt | 2 +- .../expectedOutput-3.8/output.txt | 2 +- .../expectedOutput-3.8/output.txt | 2 +- .../expectedOutput-3.8/patch0/output.txt | 2 +- .../expectedOutput-3.8/patch2/output.txt | 7 +- .../expectedOutput-3.8/patch3/output.txt | 2 +- .../expectedOutput-3.8/patch2/output.txt | 5 +- 24 files changed, 135 insertions(+), 86 deletions(-) diff --git a/src/after-compile.ts b/src/after-compile.ts index dc334cea1..d6547848d 100644 --- a/src/after-compile.ts +++ b/src/after-compile.ts @@ -61,15 +61,15 @@ export function makeAfterCompile( modules, instance ); - provideDeclarationFilesToWebpack( filesToCheckForErrors, instance, compilation ); + provideTsBuildInfoFilesToWebpack(instance, compilation); provideSolutionErrorsToWebpack(compilation, modules, instance); - provideTsBuildInfoFilesToWebpack(instance, compilation); + provideAssetsFromSolutionBuilderHost(instance, compilation); instance.filesWithErrors = filesWithErrors; instance.modifiedFiles = undefined; @@ -339,21 +339,51 @@ function provideDeclarationFilesToWebpack( continue; } - const outputFiles = getEmitOutput(instance, filePath); - const declarationFiles = outputFiles.filter(outputFile => - outputFile.name.match(constants.dtsDtsxOrDtsDtsxMapRegex) + addDeclarationFilesAsAsset( + getEmitOutput( + instance, + filePath, + /*skipActualOutputReadOfReferencedFile*/ true + ), + compilation ); + } +} - declarationFiles.forEach(declarationFile => { - const assetPath = path.relative( - compilation.compiler.outputPath, - declarationFile.name - ); - compilation.assets[assetPath] = { - source: () => declarationFile.text, - size: () => declarationFile.text.length - }; - }); +function addDeclarationFilesAsAsset( + outputFiles: ts.OutputFile[] | IterableIterator, + compilation: webpack.compilation.Compilation +) { + outputFilesToAsset( + outputFiles, + compilation, + outputFile => !outputFile.name.match(constants.dtsDtsxOrDtsDtsxMapRegex) + ); +} + +function outputFileToAsset( + outputFile: ts.OutputFile, + compilation: webpack.compilation.Compilation +) { + const assetPath = path.relative( + compilation.compiler.outputPath, + outputFile.name + ); + compilation.assets[assetPath] = { + source: () => outputFile.text, + size: () => outputFile.text.length + }; +} + +function outputFilesToAsset( + outputFiles: ts.OutputFile[] | IterableIterator, + compilation: webpack.compilation.Compilation, + skipOutputFile?: (outputFile: ts.OutputFile) => boolean +) { + for (const outputFile of outputFiles) { + if (!skipOutputFile || !skipOutputFile(outputFile)) { + outputFileToAsset(outputFile, compilation); + } } } @@ -364,34 +394,11 @@ function provideTsBuildInfoFilesToWebpack( instance: TSInstance, compilation: webpack.compilation.Compilation ) { - if (instance.solutionBuilderHost) { - instance.solutionBuilderHost.tsbuildinfos.forEach(({ name, text }) => { - const assetPath = path.relative( - compilation.compiler.outputPath, - path.resolve(name) - ); - compilation.assets[assetPath] = { - source: () => text, - size: () => text.length - }; - }); - - instance.solutionBuilderHost.tsbuildinfos.length = 0; - } - if (instance.watchHost) { // Ensure emit is complete getEmitFromWatchHost(instance); if (instance.watchHost.tsbuildinfo) { - const { tsbuildinfo } = instance.watchHost; - const assetPath = path.relative( - compilation.compiler.outputPath, - path.resolve(tsbuildinfo.name) - ); - compilation.assets[assetPath] = { - source: () => tsbuildinfo.text, - size: () => tsbuildinfo.text.length - }; + outputFileToAsset(instance.watchHost.tsbuildinfo, compilation); } instance.watchHost.outputFiles.clear(); @@ -399,6 +406,26 @@ function provideTsBuildInfoFilesToWebpack( } } +/** + * gather all solution builder assets + */ +function provideAssetsFromSolutionBuilderHost( + instance: TSInstance, + compilation: webpack.compilation.Compilation +) { + if (instance.solutionBuilderHost) { + // written files + addDeclarationFilesAsAsset( + instance.solutionBuilderHost.outputFiles.values(), + compilation + ); + // tsbuild infos + outputFilesToAsset(instance.solutionBuilderHost.tsbuildinfos, compilation); + instance.solutionBuilderHost.outputFiles.clear(); + instance.solutionBuilderHost.tsbuildinfos.length = 0; + } +} + /** * handle all other errors. The basic approach here to get accurate error * reporting is to start with a "blank slate" each compilation and gather diff --git a/src/index.ts b/src/index.ts index 658ac59ea..32984b00a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -447,7 +447,11 @@ function getEmit( instance: TSInstance, loaderContext: webpack.loader.LoaderContext ) { - const outputFiles = getEmitOutput(instance, filePath); + const outputFiles = getEmitOutput( + instance, + filePath, + /*skipActualOutputReadOfReferencedFile*/ false + ); if (!isReferencedFile(instance, filePath)) { loaderContext.clearDependencies(); diff --git a/src/instances.ts b/src/instances.ts index 41880164d..50d53e821 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -533,7 +533,8 @@ function getOutputFileNames( function getOutputFilesFromReference( program: typescript.Program, instance: TSInstance, - filePath: string + filePath: string, + skipActualOutputRead: boolean ): typescript.OutputFile[] | undefined { // May be api to get file return forEachResolvedProjectReference( @@ -546,16 +547,25 @@ function getOutputFilesFromReference( fileNames.some(file => path.normalize(file) === filePath) ) { const outputFiles: typescript.OutputFile[] = []; - getOutputFileNames( - instance, - commandLine, - (instance.compiler as any).resolvePath(filePath) - ).forEach(name => { - const text = instance.compiler.sys.readFile(name); - if (text) { - outputFiles.push({ name, text, writeByteOrderMark: false }); - } - }); + if (!skipActualOutputRead) { + getOutputFileNames( + instance, + commandLine, + (instance.compiler as any).resolvePath(filePath) + ).forEach(name => { + const output = instance.solutionBuilderHost!.outputFiles.get( + path.resolve(name) + ); + if (output) { + outputFiles.push(output); + } else { + const text = instance.compiler.sys.readFile(name); + if (text) { + outputFiles.push({ name, text, writeByteOrderMark: false }); + } + } + }); + } return outputFiles; } return undefined; @@ -652,7 +662,11 @@ export function getEmitFromWatchHost(instance: TSInstance, filePath?: string) { return undefined; } -export function getEmitOutput(instance: TSInstance, filePath: string) { +export function getEmitOutput( + instance: TSInstance, + filePath: string, + skipActualOutputReadOfReferencedFile: boolean +) { if (fileExtensionIs(filePath, instance.compiler.Extension.Dts)) { return []; } @@ -663,7 +677,8 @@ export function getEmitOutput(instance: TSInstance, filePath: string) { const builtReferences = getOutputFilesFromReference( program, instance, - filePath + filePath, + skipActualOutputReadOfReferencedFile ); if (builtReferences) { return builtReferences; diff --git a/src/interfaces.ts b/src/interfaces.ts index 4cddc9d3f..0760c471a 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -91,6 +91,7 @@ export interface SolutionBuilderWithWatchHost >, WatchFactory { diagnostics: SolutionDiagnostics; + outputFiles: Map; tsbuildinfos: typescript.OutputFile[]; } diff --git a/src/servicesHost.ts b/src/servicesHost.ts index ec58dff5f..6be1f18a2 100644 --- a/src/servicesHost.ts +++ b/src/servicesHost.ts @@ -648,6 +648,7 @@ export function makeSolutionBuilderHost( )}${newLine + newLine}` ); const tsbuildinfos = [] as typescript.OutputFile[]; + const outputFiles = new Map(); const solutionBuilderHost: SolutionBuilderWithWatchHost = { ...compiler.createSolutionBuilderWithWatchHost( compiler.sys, @@ -669,10 +670,17 @@ export function makeSolutionBuilderHost( text, writeByteOrderMark: !!writeByteOrderMark }); + } else { + outputFiles.set(path.resolve(name), { + name, + text, + writeByteOrderMark: !!writeByteOrderMark + }); } }, setTimeout: undefined, clearTimeout: undefined, + outputFiles, tsbuildinfos }; solutionBuilderHost.trace = logData => log.logInfo(logData); diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt index ebce60ca7..8bc16e5b7 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.29 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] + ../tsconfig.tsbuildinfo 51.8 KiB [emitted] ../lib/index.d.ts 89 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.8/output.txt index 243c853a9..17d23ce7d 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -1,14 +1,14 @@ Asset Size Chunks Chunk Names bundle.js 4.31 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] + ../tsconfig.tsbuildinfo 51.8 KiB [emitted] ../lib/index.d.ts 89 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 147 bytes {main} [built] [1 error] [./lib/index.ts] 104 bytes {main} [built] ERROR in app.ts ./app.ts -[tsl] ERROR in app.ts(3,46) +[tsl] ERROR in app.ts(3,46)  TS2339: Property 'four' does not exist on type '{ one: number; two: number; three: number; }'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch2/output.txt index aa33f5318..b24dcfcfb 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch2/output.txt @@ -1,6 +1,5 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main -../lib/index.d.ts 108 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.36 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] [2 errors] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/output.txt index 26ff60c6b..ad0d1d354 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 4.8 KiB main [emitted] main - ../lib/index.d.ts 89 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt index 89eaa1f3a..8486d9d82 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt @@ -1,7 +1,5 @@ - Asset Size Chunks Chunk Names - bundle.js 4.77 KiB main [emitted] main - ../lib/index.d.ts 84 bytes [emitted] -../lib/helper.d.ts 87 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.77 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 100 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt index efdabdd85..ee2f58669 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt @@ -1,5 +1,6 @@ Asset Size Chunks Chunk Names bundle.js 4.8 KiB main [emitted] main + ../lib/helper.d.ts 92 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt index fc3caf432..5645df8f1 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -1,8 +1,6 @@ Asset Size Chunks Chunk Names bundle.js 4.77 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] - ../lib/index.d.ts 84 bytes [emitted] - ../lib/helper.d.ts 87 bytes [emitted] ../tsconfig.tsbuildinfo 51.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index c32db51c6..7db149fe5 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,7 +1,8 @@ Asset Size Chunks Chunk Names bundle.js 4.8 KiB main [emitted] main - ../lib/index.d.ts 108 bytes [emitted] ../app.d.ts 11 bytes [emitted] + ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt index eebd0e5c0..4df8353e2 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt @@ -1,8 +1,8 @@ Asset Size Chunks Chunk Names bundle.js 4.83 KiB main [emitted] main + ../app.d.ts 11 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] - ../app.d.ts 11 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt index 89eaa1f3a..8486d9d82 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt @@ -1,7 +1,5 @@ - Asset Size Chunks Chunk Names - bundle.js 4.77 KiB main [emitted] main - ../lib/index.d.ts 84 bytes [emitted] -../lib/helper.d.ts 87 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.77 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 100 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt index efdabdd85..ee2f58669 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,5 +1,6 @@ Asset Size Chunks Chunk Names bundle.js 4.8 KiB main [emitted] main + ../lib/helper.d.ts 92 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/output.txt index 23330c342..e73b7c2b1 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -1,10 +1,10 @@ Asset Size Chunks Chunk Names bundle.js 4.8 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] + ../tsconfig.tsbuildinfo 51.8 KiB [emitted] ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 107 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index 679d7a2ea..6a22a2be6 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,8 +1,8 @@ Asset Size Chunks Chunk Names bundle.js 4.82 KiB main [emitted] main + ../app.d.ts 11 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] - ../app.d.ts 11 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/output.txt index 26ff60c6b..ad0d1d354 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 4.8 KiB main [emitted] main - ../lib/index.d.ts 89 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/output.txt index ebce60ca7..8bc16e5b7 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.29 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] + ../tsconfig.tsbuildinfo 51.8 KiB [emitted] ../lib/index.d.ts 89 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index f40387cdc..5a6e0995f 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/index.d.ts 108 bytes [emitted] ../app.d.ts 11 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch2/output.txt index fde6c4aaa..88a870dc5 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch2/output.txt @@ -1,7 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main -../lib/index.d.ts 108 bytes [emitted] - ../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main +../app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] [2 errors] diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt index ed333e3ef..70bea34ef 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main - ../lib/index.d.ts 127 bytes [emitted] ../app.d.ts 11 bytes [emitted] + ../lib/index.d.ts 127 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch2/output.txt index aa33f5318..b24dcfcfb 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch2/output.txt @@ -1,6 +1,5 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main -../lib/index.d.ts 108 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.36 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] [2 errors] From 453ce344767a8122af40250390492bba4a976451 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 7 Oct 2019 14:16:32 -0700 Subject: [PATCH 06/20] Make every project include just app and not other lib files --- .../projectReferences/tsconfig.json | 3 +++ .../projectReferencesNoSourceMap/tsconfig.json | 3 +++ .../projectReferencesNotBuilt/tsconfig.json | 3 +++ .../tsconfig.json | 3 +++ .../expectedOutput-3.8/output.txt | 6 +----- .../expectedOutput-transpile-3.8/output.txt | 8 ++------ .../tsconfig.json | 3 +++ .../expectedOutput-3.8/output.txt | 6 +----- .../expectedOutput-transpile-3.8/output.txt | 8 ++------ .../expectedOutput-3.8/output.txt | 6 +----- .../expectedOutput-transpile-3.8/output.txt | 8 ++------ .../tsconfig.json | 3 +++ .../expectedOutput-3.8/output.txt | 6 +----- .../expectedOutput-transpile-3.8/output.txt | 8 ++------ .../projectReferencesOutDir/tsconfig.json | 3 +++ .../tsconfig.json | 3 +++ .../tsconfig.json | 15 +++++++++------ 17 files changed, 45 insertions(+), 50 deletions(-) diff --git a/test/comparison-tests/projectReferences/tsconfig.json b/test/comparison-tests/projectReferences/tsconfig.json index 03974daa7..6d9798ff7 100644 --- a/test/comparison-tests/projectReferences/tsconfig.json +++ b/test/comparison-tests/projectReferences/tsconfig.json @@ -1,4 +1,7 @@ { +"files": [ + "./app.ts" + ], "references": [ { "path": "./lib" } ] diff --git a/test/comparison-tests/projectReferencesNoSourceMap/tsconfig.json b/test/comparison-tests/projectReferencesNoSourceMap/tsconfig.json index 03974daa7..6d9798ff7 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/tsconfig.json +++ b/test/comparison-tests/projectReferencesNoSourceMap/tsconfig.json @@ -1,4 +1,7 @@ { +"files": [ + "./app.ts" + ], "references": [ { "path": "./lib" } ] diff --git a/test/comparison-tests/projectReferencesNotBuilt/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt/tsconfig.json index 03974daa7..6d9798ff7 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt/tsconfig.json @@ -1,4 +1,7 @@ { +"files": [ + "./app.ts" + ], "references": [ { "path": "./lib" } ] diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/tsconfig.json index 03974daa7..6d9798ff7 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/tsconfig.json @@ -1,4 +1,7 @@ { +"files": [ + "./app.ts" + ], "references": [ { "path": "./lib" } ] diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-3.8/output.txt index 2629a55d0..1de5e3500 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-3.8/output.txt @@ -12,11 +12,7 @@ Error: TypeScript emitted no output for lib\index.ts. The most common cause for at Object.loader (dist\index.js:22:12) @ ./app.ts 3:12-28 -ERROR in tsconfig.json -[tsl] ERROR - TS6305: Output file '/.test/projectReferencesNotBuilt_SemanticErrorInReference/lib/index.d.ts' has not been built from source file '/.test/projectReferencesNotBuilt_SemanticErrorInReference/lib/index.ts'. - ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib\index.ts(6,7) +[tsl] ERROR in lib\index.ts(6,7)  TS2322: Type '10' is not assignable to type 'string'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-transpile-3.8/output.txt index f00582869..c696028f0 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-transpile-3.8/output.txt @@ -1,12 +1,8 @@ Asset Size Chunks Chunk Names bundle.js 4.37 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} [built] [2 errors] +[./app.ts] 167 bytes {main} [built] [1 error] [./lib/index.ts] 145 bytes {main} [built] -ERROR in tsconfig.json -[tsl] ERROR - TS6305: Output file '/.test/projectReferencesNotBuilt_SemanticErrorInReference/lib/index.d.ts' has not been built from source file '/.test/projectReferencesNotBuilt_SemanticErrorInReference/lib/index.ts'. - -ERROR in [tsl] ERROR in lib\index.ts(6,7) +ERROR in [tsl] ERROR in lib\index.ts(6,7)  TS2322: Type '10' is not assignable to type 'string'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/tsconfig.json index 03974daa7..6d9798ff7 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/tsconfig.json @@ -1,4 +1,7 @@ { +"files": [ + "./app.ts" + ], "references": [ { "path": "./lib" } ] diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-3.8/output.txt index a9446a546..c3dcd4e32 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-3.8/output.txt @@ -12,11 +12,7 @@ Error: TypeScript emitted no output for lib\index.ts. The most common cause for at Object.loader (dist\index.js:22:12) @ ./app.ts 3:12-28 -ERROR in tsconfig.json -[tsl] ERROR - TS6305: Output file '/.test/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/lib/index.d.ts' has not been built from source file '/.test/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/lib/index.ts'. - ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib\index.ts(6,7) +[tsl] ERROR in lib\index.ts(6,7)  TS2322: Type '10' is not assignable to type 'string'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt index 1b2499099..c696028f0 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,12 +1,8 @@ Asset Size Chunks Chunk Names bundle.js 4.37 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} [built] [2 errors] +[./app.ts] 167 bytes {main} [built] [1 error] [./lib/index.ts] 145 bytes {main} [built] -ERROR in tsconfig.json -[tsl] ERROR - TS6305: Output file '/.test/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/lib/index.d.ts' has not been built from source file '/.test/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/lib/index.ts'. - -ERROR in [tsl] ERROR in lib\index.ts(6,7) +ERROR in [tsl] ERROR in lib\index.ts(6,7)  TS2322: Type '10' is not assignable to type 'string'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-3.8/output.txt index fdd0dfe4c..a474c3fb3 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-3.8/output.txt @@ -12,11 +12,7 @@ Error: TypeScript emitted no output for lib\index.ts. The most common cause for at Object.loader (dist\index.js:22:12) @ ./app.ts 3:12-28 -ERROR in tsconfig.json -[tsl] ERROR - TS6305: Output file '/.test/projectReferencesNotBuilt_SyntaxErrorInReference/lib/index.d.ts' has not been built from source file '/.test/projectReferencesNotBuilt_SyntaxErrorInReference/lib/index.ts'. - ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib\index.ts(4,12) +[tsl] ERROR in lib\index.ts(4,12)  TS1136: Property assignment expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-transpile-3.8/output.txt index 07bb3ce02..b247cbbdc 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-transpile-3.8/output.txt @@ -1,12 +1,8 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} [built] [2 errors] +[./app.ts] 167 bytes {main} [built] [1 error] [./lib/index.ts] 134 bytes {main} [built] -ERROR in tsconfig.json -[tsl] ERROR - TS6305: Output file '/.test/projectReferencesNotBuilt_SyntaxErrorInReference/lib/index.d.ts' has not been built from source file '/.test/projectReferencesNotBuilt_SyntaxErrorInReference/lib/index.ts'. - -ERROR in [tsl] ERROR in lib\index.ts(4,12) +ERROR in [tsl] ERROR in lib\index.ts(4,12)  TS1136: Property assignment expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/tsconfig.json index 03974daa7..6d9798ff7 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/tsconfig.json @@ -1,4 +1,7 @@ { +"files": [ + "./app.ts" + ], "references": [ { "path": "./lib" } ] diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-3.8/output.txt index 40fb18df5..e5b3f72ab 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-3.8/output.txt @@ -12,11 +12,7 @@ Error: TypeScript emitted no output for lib\index.ts. The most common cause for at Object.loader (dist\index.js:22:12) @ ./app.ts 3:12-28 -ERROR in tsconfig.json -[tsl] ERROR - TS6305: Output file '/.test/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/lib/index.d.ts' has not been built from source file '/.test/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/lib/index.ts'. - ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib\index.ts(4,12) +[tsl] ERROR in lib\index.ts(4,12)  TS1136: Property assignment expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt index 7de607cf2..b247cbbdc 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,12 +1,8 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} [built] [2 errors] +[./app.ts] 167 bytes {main} [built] [1 error] [./lib/index.ts] 134 bytes {main} [built] -ERROR in tsconfig.json -[tsl] ERROR - TS6305: Output file '/.test/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/lib/index.d.ts' has not been built from source file '/.test/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/lib/index.ts'. - -ERROR in [tsl] ERROR in lib\index.ts(4,12) +ERROR in [tsl] ERROR in lib\index.ts(4,12)  TS1136: Property assignment expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/tsconfig.json b/test/comparison-tests/projectReferencesOutDir/tsconfig.json index 03974daa7..6d9798ff7 100644 --- a/test/comparison-tests/projectReferencesOutDir/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDir/tsconfig.json @@ -1,4 +1,7 @@ { +"files": [ + "./app.ts" + ], "references": [ { "path": "./lib" } ] diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json b/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json index 03974daa7..6d9798ff7 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json @@ -1,4 +1,7 @@ { +"files": [ + "./app.ts" + ], "references": [ { "path": "./lib" } ] diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/tsconfig.json b/test/comparison-tests/projectReferencesRootDirInvalidConfig/tsconfig.json index cd33708ee..b908d50de 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/tsconfig.json +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/tsconfig.json @@ -1,8 +1,11 @@ { - "compilerOptions": { - "target": "esnext" - }, - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "target": "esnext" + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file From 35d283c2910453f34ba5771451ff9831465344de Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 7 Oct 2019 14:31:10 -0700 Subject: [PATCH 07/20] Fix watching for solution watched files Add test that doesnt pass yet. This is same as projectReferencesWatch so technically only change should be in bundled emit to have out to be lib\out\index.js instead --- src/index.ts | 5 +- src/instances.ts | 9 ++ .../expectedOutput-3.8/bundle.js | 12 +- .../expectedOutput-3.8/output.txt | 10 +- .../expectedOutput-3.8/patch0/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/patch0/output.txt | 7 ++ .../expectedOutput-3.8/patch1/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/patch1/output.txt | 5 + .../expectedOutput-3.8/patch2/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/patch2/output.txt | 15 +++ .../expectedOutput-3.8/patch3/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/patch3/output.txt | 7 ++ .../expectedOutput-3.8/patch4/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/patch4/output.txt | 10 ++ .../expectedOutput-3.8/patch5/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/patch5/output.txt | 5 + .../expectedOutput-transpile-3.8/bundle.js | 12 +- .../expectedOutput-transpile-3.8/output.txt | 4 +- .../patch0/bundle.js | 113 ++++++++++++++++++ .../patch0/output.txt | 5 + .../patch1/bundle.js | 113 ++++++++++++++++++ .../patch1/output.txt | 5 + .../patch2/bundle.js | 113 ++++++++++++++++++ .../patch2/output.txt | 5 + .../patch3/bundle.js | 113 ++++++++++++++++++ .../patch3/output.txt | 5 + .../patch4/bundle.js | 113 ++++++++++++++++++ .../patch4/output.txt | 5 + .../patch5/bundle.js | 113 ++++++++++++++++++ .../patch5/output.txt | 5 + .../patch0/lib/index.ts | 6 + .../patch1/app.ts | 3 + .../patch2/lib/index.ts | 7 ++ .../patch3/lib/index.ts | 7 ++ .../patch4/app.ts | 3 + .../patch5/app.ts | 3 + 36 files changed, 1496 insertions(+), 20 deletions(-) create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch1/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch1/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch2/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch2/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch4/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch4/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch5/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch5/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch1/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch1/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch4/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch4/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch5/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch5/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/patch0/lib/index.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/patch1/app.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/patch2/lib/index.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/patch3/lib/index.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/patch4/app.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJson/patch5/app.ts diff --git a/src/index.ts b/src/index.ts index 32984b00a..48e3cd348 100644 --- a/src/index.ts +++ b/src/index.ts @@ -502,7 +502,10 @@ function getEmit( defFilePath => defFilePath + '@' + - (instance.files.get(defFilePath) || { version: '?' }).version + ( + instance.files.get(defFilePath) || + instance.otherFiles.get(defFilePath) || { version: '?' } + ).version ); } diff --git a/src/instances.ts b/src/instances.ts index 50d53e821..2e3ae9dbe 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -370,6 +370,15 @@ function tryAndBuildSolutionReferences( { verbose: true } ); instance.solutionBuilder.buildReferences(instance.configFilePath); + for (const [fileName] of instance.solutionBuilderHost.watchedFiles) { + instance.otherFiles.set(path.resolve(fileName), { + version: 0, + text: instance.solutionBuilderHost.readFile(fileName) + }); + if (instance.loaderOptions.transpileOnly) { + loader.addDependency(fileName); + } + } } } diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/bundle.js index 60f7f137c..7b491a754 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/out/index.js": -/*!**************************!*\ - !*** ./lib/out/index.js ***! - \**************************/ +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt index 6a20f74f6..d3e7545db 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt @@ -1,7 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 4.34 KiB main [emitted] main - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.29 KiB main [emitted] main + ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/out/index.js] 130 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/bundle.js new file mode 100644 index 000000000..e41275feb --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt new file mode 100644 index 000000000..2eeefbb21 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt @@ -0,0 +1,7 @@ + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + ../lib/index.d.ts 108 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] +Entrypoint main = bundle.js +[./app.ts] 131 bytes {main} [built] +[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch1/bundle.js new file mode 100644 index 000000000..d7d6292ed --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch1/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch1/output.txt new file mode 100644 index 000000000..863917568 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch1/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.36 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 169 bytes {main} [built] +[./lib/index.ts] 136 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch2/bundle.js new file mode 100644 index 000000000..d7d6292ed --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch2/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch2/output.txt new file mode 100644 index 000000000..b24dcfcfb --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch2/output.txt @@ -0,0 +1,15 @@ + Asset Size Chunks Chunk Names +bundle.js 4.36 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 169 bytes {main} [built] +[./lib/index.ts] 136 bytes {main} [built] [2 errors] + +ERROR in lib\index.ts +./lib/index.ts +[tsl] ERROR in lib\index.ts(6,3) + TS1136: Property assignment expected. + +ERROR in lib\index.ts +./lib/index.ts +[tsl] ERROR in lib\index.ts(7,1) + TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/bundle.js new file mode 100644 index 000000000..4baf2067a --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt new file mode 100644 index 000000000..f9855ff04 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt @@ -0,0 +1,7 @@ + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + ../lib/index.d.ts 127 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] +Entrypoint main = bundle.js +[./app.ts] 169 bytes {main} [built] +[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch4/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch4/bundle.js new file mode 100644 index 000000000..5399bc407 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch4/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.ffive); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch4/output.txt new file mode 100644 index 000000000..0593bdf58 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch4/output.txt @@ -0,0 +1,10 @@ + Asset Size Chunks Chunk Names +bundle.js 4.38 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 186 bytes {main} [built] [1 error] +[./lib/index.ts] 132 bytes {main} + +ERROR in app.ts +./app.ts +[tsl] ERROR in app.ts(3,56) + TS2551: Property 'ffive' does not exist on type '{ one: number; two: number; three: number; four: number; five: number; }'. Did you mean 'five'? \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch5/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch5/bundle.js new file mode 100644 index 000000000..4d4687802 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch5/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.five); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch5/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch5/output.txt new file mode 100644 index 000000000..bd093b647 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch5/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.38 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 185 bytes {main} [built] +[./lib/index.ts] 132 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js index a4bc091aa..a59c4688b 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/out/index.js": -/*!**************************!*\ - !*** ./lib/out/index.js ***! - \**************************/ +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt index cef6997fc..f31c64018 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 4.37 KiB main [emitted] main +bundle.js 4.35 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/out/index.js] 130 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/bundle.js new file mode 100644 index 000000000..b8a11c082 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt new file mode 100644 index 000000000..5bdc311de --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.39 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 167 bytes {main} +[./lib/index.ts] 164 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch1/bundle.js new file mode 100644 index 000000000..4bfa7680a --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch1/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch1/output.txt new file mode 100644 index 000000000..055ff64ce --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch1/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.42 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 205 bytes {main} [built] +[./lib/index.ts] 164 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/bundle.js new file mode 100644 index 000000000..3ce80b633 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n} // Add new number\n;\n;\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/output.txt new file mode 100644 index 000000000..df2b4fb68 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.43 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 205 bytes {main} +[./lib/index.ts] 168 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/bundle.js new file mode 100644 index 000000000..dd7a8066e --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt new file mode 100644 index 000000000..2c28f842b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.42 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 205 bytes {main} +[./lib/index.ts] 160 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch4/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch4/bundle.js new file mode 100644 index 000000000..160d4488f --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch4/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.ffive); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch4/output.txt new file mode 100644 index 000000000..a866098ce --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch4/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.44 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 222 bytes {main} [built] +[./lib/index.ts] 160 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch5/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch5/bundle.js new file mode 100644 index 000000000..9a42c42f7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch5/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.five); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch5/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch5/output.txt new file mode 100644 index 000000000..dd53f5541 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch5/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.44 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 221 bytes {main} [built] +[./lib/index.ts] 160 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch0/lib/index.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch0/lib/index.ts new file mode 100644 index 000000000..bcc33a8ba --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch0/lib/index.ts @@ -0,0 +1,6 @@ +export const lib = { + one: 1, + two: 2, + three: 3, + four: 4 // Add new number +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch1/app.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch1/app.ts new file mode 100644 index 000000000..ef0588c25 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch1/app.ts @@ -0,0 +1,3 @@ +import { lib } from './lib'; + +console.log(lib.one, lib.two, lib.three, lib.four); // consume new number diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch2/lib/index.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch2/lib/index.ts new file mode 100644 index 000000000..50c5a28cf --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch2/lib/index.ts @@ -0,0 +1,7 @@ +export const lib = { + one: 1, + two: 2, + three: 3, + four: 4, // Add new number + , +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch3/lib/index.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch3/lib/index.ts new file mode 100644 index 000000000..2f41de9ea --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch3/lib/index.ts @@ -0,0 +1,7 @@ +export const lib = { + one: 1, + two: 2, + three: 3, + four: 4, // Add new number + five: 5, +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch4/app.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch4/app.ts new file mode 100644 index 000000000..60b81231a --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch4/app.ts @@ -0,0 +1,3 @@ +import { lib } from './lib'; + +console.log(lib.one, lib.two, lib.three, lib.four, lib.ffive); // consume new number diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch5/app.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch5/app.ts new file mode 100644 index 000000000..57f5f312c --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/patch5/app.ts @@ -0,0 +1,3 @@ +import { lib } from './lib'; + +console.log(lib.one, lib.two, lib.three, lib.four, lib.five); // consume new number From cecfc8a5df70340e7ce7e1f67a22d48db059fc3a Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 9 Oct 2019 12:54:04 -0700 Subject: [PATCH 08/20] Dont depend on .d.ts output of the referenced project since we are depending on .ts file for that This fixes initial build to complete in single pass --- src/index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 48e3cd348..34ed8c978 100644 --- a/src/index.ts +++ b/src/index.ts @@ -457,8 +457,13 @@ function getEmit( loaderContext.clearDependencies(); loaderContext.addDependency(rawFilePath); - const allDefinitionFiles = [...instance.files.keys()].filter(defFilePath => - defFilePath.match(constants.dtsDtsxOrDtsDtsxMapRegex) + const allDefinitionFiles = [...instance.files.keys()].filter( + defFilePath => + defFilePath.match(constants.dtsDtsxOrDtsDtsxMapRegex) && + // Remove the project reference d.ts as we are adding dependency for .ts later + // This removed extra build pass (resulting in new stats object in initial build) + (!instance.solutionBuilderHost || + !getInputFileNameFromOutput(instance, defFilePath)) ); // Make this file dependent on *all* definition files in the program From cdfce327aef26722a7f09397a8337aedc89cadf1 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 2 Apr 2020 13:34:47 -0700 Subject: [PATCH 09/20] Make sure to build all solution builder files before and track input and output --- src/after-compile.ts | 58 +-- src/index.ts | 184 ++++----- src/instances.ts | 354 ++++++++---------- src/interfaces.ts | 52 ++- src/servicesHost.ts | 325 ++++++++++++++-- src/utils.ts | 16 +- .../expectedOutput-3.8/output.txt | 8 +- .../expectedOutput-3.8/patch0/output.txt | 8 +- .../expectedOutput-3.8/patch3/output.txt | 8 +- .../expectedOutput-3.8/patch0/output.txt | 4 +- .../expectedOutput-3.8/output.txt | 11 +- .../expectedOutput-3.8/patch0/output.txt | 5 +- .../expectedOutput-3.8/patch1/output.txt | 4 +- .../expectedOutput-3.8/output.txt | 15 +- .../expectedOutput-3.8/patch0/output.txt | 5 +- .../expectedOutput-3.8/patch1/output.txt | 2 +- .../expectedOutput-3.8/output.txt | 11 +- .../expectedOutput-3.8/patch0/output.txt | 5 +- .../expectedOutput-3.8/patch1/output.txt | 2 +- .../expectedOutput-3.8/patch0/output.txt | 2 +- .../expectedOutput-3.8/patch0/output.txt | 2 +- 21 files changed, 679 insertions(+), 402 deletions(-) diff --git a/src/after-compile.ts b/src/after-compile.ts index d6547848d..8fa9da180 100644 --- a/src/after-compile.ts +++ b/src/after-compile.ts @@ -3,7 +3,11 @@ import * as ts from 'typescript'; import * as webpack from 'webpack'; import * as constants from './constants'; -import { getEmitFromWatchHost, getEmitOutput } from './instances'; +import { + getEmitFromWatchHost, + getEmitOutput, + isReferencedFile +} from './instances'; import { TSFile, TSFiles, @@ -339,25 +343,24 @@ function provideDeclarationFilesToWebpack( continue; } - addDeclarationFilesAsAsset( - getEmitOutput( - instance, - filePath, - /*skipActualOutputReadOfReferencedFile*/ true - ), - compilation - ); + if (!isReferencedFile(instance, filePath)) { + addDeclarationFilesAsAsset( + getEmitOutput(instance, filePath), + compilation + ); + } } } -function addDeclarationFilesAsAsset( - outputFiles: ts.OutputFile[] | IterableIterator, - compilation: webpack.compilation.Compilation +function addDeclarationFilesAsAsset( + outputFiles: T[] | IterableIterator, + compilation: webpack.compilation.Compilation, + skipOutputFile?: (outputFile: T) => boolean ) { - outputFilesToAsset( - outputFiles, - compilation, - outputFile => !outputFile.name.match(constants.dtsDtsxOrDtsDtsxMapRegex) + outputFilesToAsset(outputFiles, compilation, outputFile => + skipOutputFile && skipOutputFile(outputFile) + ? true + : !outputFile.name.match(constants.dtsDtsxOrDtsDtsxMapRegex) ); } @@ -375,10 +378,10 @@ function outputFileToAsset( }; } -function outputFilesToAsset( - outputFiles: ts.OutputFile[] | IterableIterator, +function outputFilesToAsset( + outputFiles: T[] | IterableIterator, compilation: webpack.compilation.Compilation, - skipOutputFile?: (outputFile: ts.OutputFile) => boolean + skipOutputFile?: (outputFile: T) => boolean ) { for (const outputFile of outputFiles) { if (!skipOutputFile || !skipOutputFile(outputFile)) { @@ -417,12 +420,21 @@ function provideAssetsFromSolutionBuilderHost( // written files addDeclarationFilesAsAsset( instance.solutionBuilderHost.outputFiles.values(), - compilation + compilation, + outputFile => !outputFile.isNew ); // tsbuild infos - outputFilesToAsset(instance.solutionBuilderHost.tsbuildinfos, compilation); - instance.solutionBuilderHost.outputFiles.clear(); - instance.solutionBuilderHost.tsbuildinfos.length = 0; + outputFilesToAsset( + instance.solutionBuilderHost.tsbuildinfos.values(), + compilation, + outputFile => !outputFile.isNew + ); + instance.solutionBuilderHost.outputFiles.forEach( + outputFile => (outputFile.isNew = false) + ); + instance.solutionBuilderHost.tsbuildinfos.forEach( + outputFile => (outputFile.isNew = false) + ); } } diff --git a/src/index.ts b/src/index.ts index 34ed8c978..be22b18a0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,9 +5,11 @@ import * as webpack from 'webpack'; import * as constants from './constants'; import { + buildSolutionReferences, getEmitOutput, getInputFileNameFromOutput, getTypeScriptInstance, + initializeInstance, isReferencedFile } from './instances'; import { @@ -44,36 +46,38 @@ function loader(this: webpack.loader.LoaderContext, contents: string) { return; } - return successLoader( - this, - contents, - callback, - options, - instanceOrError.instance! - ); + const instance = instanceOrError.instance!; + buildSolutionReferences(instance, this, instance.log); + successLoader(this, contents, callback, instance); } function successLoader( loaderContext: webpack.loader.LoaderContext, contents: string, callback: webpack.loader.loaderCallback, - options: LoaderOptions, instance: TSInstance ) { + initializeInstance(loaderContext, instance); const rawFilePath = path.normalize(loaderContext.resourcePath); const filePath = - options.appendTsSuffixTo.length > 0 || options.appendTsxSuffixTo.length > 0 + instance.loaderOptions.appendTsSuffixTo.length > 0 || + instance.loaderOptions.appendTsxSuffixTo.length > 0 ? appendSuffixesIfMatch( { - '.ts': options.appendTsSuffixTo, - '.tsx': options.appendTsxSuffixTo + '.ts': instance.loaderOptions.appendTsSuffixTo, + '.tsx': instance.loaderOptions.appendTsxSuffixTo }, rawFilePath ) : rawFilePath; - const fileVersion = updateFileInCache(options, filePath, contents, instance); + const fileVersion = updateFileInCache( + instance.loaderOptions, + filePath, + contents, + instance + ); const referencedProject = getAndCacheProjectReference(filePath, instance); if (referencedProject !== undefined) { const [relativeProjectConfigPath, relativeFilePath] = [ @@ -133,13 +137,12 @@ function successLoader( filePath, contents, loaderContext, - options, fileVersion, callback, instance ); } else { - const { outputText, sourceMapText } = options.transpileOnly + const { outputText, sourceMapText } = instance.loaderOptions.transpileOnly ? getTranspilationEmit(filePath, contents, instance, loaderContext) : getEmit(rawFilePath, filePath, instance, loaderContext); @@ -149,7 +152,6 @@ function successLoader( filePath, contents, loaderContext, - options, fileVersion, callback, instance @@ -163,23 +165,29 @@ function makeSourceMapAndFinish( filePath: string, contents: string, loaderContext: webpack.loader.LoaderContext, - options: LoaderOptions, fileVersion: number, callback: webpack.loader.loaderCallback, instance: TSInstance ) { if (outputText === null || outputText === undefined) { + setModuleMeta(loaderContext, instance, fileVersion); const additionalGuidance = isReferencedFile(instance, filePath) ? ' The most common cause for this is having errors when building referenced projects.' - : !options.allowTsInNodeModules && filePath.indexOf('node_modules') !== -1 + : !instance.loaderOptions.allowTsInNodeModules && + filePath.indexOf('node_modules') !== -1 ? ' By default, ts-loader will not compile .ts files in node_modules.\n' + 'You should not need to recompile .ts files there, but if you really want to, use the allowTsInNodeModules option.\n' + 'See: https://github.com/Microsoft/TypeScript/issues/12358' : ''; - throw new Error( - `TypeScript emitted no output for ${filePath}.${additionalGuidance}` + callback( + new Error( + `TypeScript emitted no output for ${filePath}.${additionalGuidance}` + ), + outputText, + undefined ); + return; } const { sourceMap, output } = makeSourceMap( @@ -190,15 +198,25 @@ function makeSourceMapAndFinish( loaderContext ); + setModuleMeta(loaderContext, instance, fileVersion); + callback(null, output, sourceMap); +} + +function setModuleMeta( + loaderContext: webpack.loader.LoaderContext, + instance: TSInstance, + fileVersion: number +) { // _module.meta is not available inside happypack - if (!options.happyPackMode && loaderContext._module.buildMeta !== undefined) { + if ( + !instance.loaderOptions.happyPackMode && + loaderContext._module.buildMeta !== undefined + ) { // Make sure webpack is aware that even though the emitted JavaScript may be the same as // a previously cached version the TypeScript may be different and therefore should be // treated as new loaderContext._module.buildMeta.tsLoaderFileVersion = fileVersion; } - - callback(null, output, sourceMap); } /** @@ -395,14 +413,15 @@ function updateFileInCache( // it is allowed by the options. (options.allowTsInNodeModules || filePath.indexOf('node_modules') === -1) ) { - instance.version!++; + instance.version++; instance.rootFileNames.add(filePath); } if (file.text !== contents) { file.version++; file.text = contents; - instance.version!++; + file.modifiedTime = new Date(); + instance.version++; if ( (instance.watchHost !== undefined || instance.solutionBuilderHost !== undefined) && @@ -447,73 +466,70 @@ function getEmit( instance: TSInstance, loaderContext: webpack.loader.LoaderContext ) { - const outputFiles = getEmitOutput( - instance, - filePath, - /*skipActualOutputReadOfReferencedFile*/ false - ); - - if (!isReferencedFile(instance, filePath)) { - loaderContext.clearDependencies(); - loaderContext.addDependency(rawFilePath); + const outputFiles = getEmitOutput(instance, filePath); + loaderContext.clearDependencies(); + loaderContext.addDependency(rawFilePath); - const allDefinitionFiles = [...instance.files.keys()].filter( - defFilePath => - defFilePath.match(constants.dtsDtsxOrDtsDtsxMapRegex) && - // Remove the project reference d.ts as we are adding dependency for .ts later - // This removed extra build pass (resulting in new stats object in initial build) - (!instance.solutionBuilderHost || - !getInputFileNameFromOutput(instance, defFilePath)) - ); + const allDefinitionFiles = isReferencedFile(instance, filePath) + ? [] + : [...instance.files.keys()].filter( + defFilePath => + defFilePath.match(constants.dtsDtsxOrDtsDtsxMapRegex) && + // Remove the project reference d.ts as we are adding dependency for .ts later + // This removed extra build pass (resulting in new stats object in initial build) + (!instance.solutionBuilderHost || + instance.solutionBuilderHost.getOutputFileFromReferencedProject( + defFilePath + ) !== undefined) + ); - // Make this file dependent on *all* definition files in the program - const addDependency = loaderContext.addDependency.bind(loaderContext); - allDefinitionFiles.forEach(addDependency); - - // Additionally make this file dependent on all imported files - const fileDependencies = instance.dependencyGraph[filePath]; - const additionalDependencies = - fileDependencies === undefined - ? [] - : fileDependencies.map(({ resolvedFileName, originalFileName }) => { - const projectReference = getAndCacheProjectReference( + // Make this file dependent on *all* definition files in the program + const addDependency = loaderContext.addDependency.bind(loaderContext); + allDefinitionFiles.forEach(addDependency); + + // Additionally make this file dependent on all imported files + const fileDependencies = instance.dependencyGraph[filePath]; + const additionalDependencies = + fileDependencies === undefined + ? [] + : fileDependencies.map(({ resolvedFileName, originalFileName }) => { + const projectReference = getAndCacheProjectReference( + resolvedFileName, + instance + ); + // In the case of dependencies that are part of a project reference, + // the real dependency that webpack should watch is the JS output file. + if (projectReference !== undefined) { + return getAndCacheOutputJSFileName( resolvedFileName, + projectReference, instance ); - // In the case of dependencies that are part of a project reference, - // the real dependency that webpack should watch is the JS output file. - if (projectReference !== undefined) { - return getAndCacheOutputJSFileName( - resolvedFileName, - projectReference, - instance - ); - } - return ( - getInputFileNameFromOutput( - instance, - path.resolve(resolvedFileName) - ) || originalFileName - ); - }); - - if (additionalDependencies.length > 0) { - additionalDependencies.forEach(addDependency); - } - - loaderContext._module.buildMeta.tsLoaderDefinitionFileVersions = allDefinitionFiles - .concat(additionalDependencies) - .map( - defFilePath => - defFilePath + - '@' + - ( - instance.files.get(defFilePath) || - instance.otherFiles.get(defFilePath) || { version: '?' } - ).version - ); + } + return ( + getInputFileNameFromOutput( + instance, + path.resolve(resolvedFileName) + ) || originalFileName + ); + }); + + if (additionalDependencies.length > 0) { + additionalDependencies.forEach(addDependency); } + loaderContext._module.buildMeta.tsLoaderDefinitionFileVersions = allDefinitionFiles + .concat(additionalDependencies) + .map( + defFilePath => + defFilePath + + '@' + + ( + instance.files.get(defFilePath) || + instance.otherFiles.get(defFilePath) || { version: '?' } + ).version + ); + const outputFile = outputFiles .filter(file => file.name.match(constants.jsJsx)) .pop(); diff --git a/src/instances.ts b/src/instances.ts index 2e3ae9dbe..0df6db1eb 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -48,7 +48,9 @@ export function getTypeScriptInstance( ): { instance?: TSInstance; error?: WebpackError } { if (instances.hasOwnProperty(loaderOptions.instance)) { const instance = instances[loaderOptions.instance]; - ensureProgram(instance); + if (!instance.initialSetupPending) { + ensureProgram(instance); + } return { instance: instances[loaderOptions.instance] }; } @@ -148,39 +150,6 @@ function successfulTypeScriptInstance( ) : (filePath: string) => filePath; - // same strategy as https://github.com/s-panferov/awesome-typescript-loader/pull/531/files - let { getCustomTransformers: customerTransformers } = loaderOptions; - let getCustomTransformers = Function.prototype; - - if (typeof customerTransformers === 'function') { - getCustomTransformers = customerTransformers; - } else if (typeof customerTransformers === 'string') { - try { - customerTransformers = require(customerTransformers); - } catch (err) { - throw new Error( - `Failed to load customTransformers from "${ - loaderOptions.getCustomTransformers - }": ${err.message}` - ); - } - - if (typeof customerTransformers !== 'function') { - throw new Error( - `Custom transformers in "${ - loaderOptions.getCustomTransformers - }" should export a function, got ${typeof getCustomTransformers}` - ); - } - getCustomTransformers = customerTransformers; - } - - // if allowJs is set then we should accept js(x) files - const scriptRegex = - configParseResult.options.allowJs === true - ? /\.tsx?$|\.jsx?$/i - : /\.tsx?$/i; - if (loaderOptions.transpileOnly) { // quick return for transpiling // we do need to check for any issues with TS options though @@ -192,47 +161,18 @@ function successfulTypeScriptInstance( rootFileNames, files, otherFiles, + version: 0, program: undefined, // temporary, to be set later dependencyGraph: {}, reverseDependencyGraph: {}, transformers: {} as typescript.CustomTransformers, // this is only set temporarily, custom transformers are created further down - colors + colors, + initialSetupPending: true, + configFilePath, + configParseResult, + log }); - tryAndBuildSolutionReferences( - transpileInstance, - loader, - log, - scriptRegex, - configFilePath - ); - const program = (transpileInstance.program = - configParseResult.projectReferences !== undefined - ? compiler!.createProgram({ - rootNames: configParseResult.fileNames, - options: configParseResult.options, - projectReferences: configParseResult.projectReferences - }) - : compiler!.createProgram([], compilerOptions)); - - // happypack does not have _module.errors - see https://github.com/TypeStrong/ts-loader/issues/336 - if (!loaderOptions.happyPackMode) { - const solutionErrors: WebpackError[] = getSolutionErrors( - transpileInstance, - loader.context - ); - const diagnostics = program.getOptionsDiagnostics(); - const errors = formatErrors( - diagnostics, - loaderOptions, - colors, - compiler!, - { file: configFilePath || 'tsconfig.json' }, - loader.context - ); - loader._module.errors.push(...solutionErrors, ...errors); - } - transpileInstance.transformers = getCustomTransformers(program); return { instance: transpileInstance }; } @@ -276,88 +216,166 @@ function successfulTypeScriptInstance( transformers: {} as typescript.CustomTransformers, // this is only set temporarily, custom transformers are created further down dependencyGraph: {}, reverseDependencyGraph: {}, - colors + colors, + initialSetupPending: true, + configFilePath, + configParseResult, + log }); - if (!loader._compiler.hooks) { - throw new Error( - "You may be using an old version of webpack; please check you're using at least version 4" - ); + return { instance }; +} + +export function initializeInstance( + loader: webpack.loader.LoaderContext, + instance: TSInstance +) { + if (!instance.initialSetupPending) { + return; } - tryAndBuildSolutionReferences( - instance, - loader, - log, - scriptRegex, - configFilePath - ); + instance.initialSetupPending = false; - if (loaderOptions.experimentalWatchApi && compiler.createWatchProgram) { - log.logInfo('Using watch api'); + // same strategy as https://github.com/s-panferov/awesome-typescript-loader/pull/531/files + let { getCustomTransformers: customerTransformers } = instance.loaderOptions; + let getCustomTransformers = Function.prototype; - // If there is api available for watch, use it instead of language service - instance.watchHost = makeWatchHost( - scriptRegex, - log, - loader, - instance, - configParseResult.projectReferences - ); - instance.watchOfFilesAndCompilerOptions = compiler.createWatchProgram( - instance.watchHost - ); - instance.builderProgram = instance.watchOfFilesAndCompilerOptions.getProgram(); - instance.program = instance.builderProgram.getProgram(); + if (typeof customerTransformers === 'function') { + getCustomTransformers = customerTransformers; + } else if (typeof customerTransformers === 'string') { + try { + customerTransformers = require(customerTransformers); + } catch (err) { + throw new Error( + `Failed to load customTransformers from "${ + instance.loaderOptions.getCustomTransformers + }": ${err.message}` + ); + } - instance.transformers = getCustomTransformers(instance.program); + if (typeof customerTransformers !== 'function') { + throw new Error( + `Custom transformers in "${ + instance.loaderOptions.getCustomTransformers + }" should export a function, got ${typeof getCustomTransformers}` + ); + } + getCustomTransformers = customerTransformers; + } + + if (instance.loaderOptions.transpileOnly) { + const program = (instance.program = + instance.configParseResult.projectReferences !== undefined + ? instance.compiler.createProgram({ + rootNames: instance.configParseResult.fileNames, + options: instance.configParseResult.options, + projectReferences: instance.configParseResult.projectReferences + }) + : instance.compiler.createProgram([], instance.compilerOptions)); + + // happypack does not have _module.errors - see https://github.com/TypeStrong/ts-loader/issues/336 + if (!instance.loaderOptions.happyPackMode) { + const solutionErrors: WebpackError[] = getSolutionErrors( + instance, + loader.context + ); + const diagnostics = program.getOptionsDiagnostics(); + const errors = formatErrors( + diagnostics, + instance.loaderOptions, + instance.colors, + instance.compiler, + { file: instance.configFilePath || 'tsconfig.json' }, + loader.context + ); + loader._module.errors.push(...solutionErrors, ...errors); + } + instance.transformers = getCustomTransformers(program); } else { - const servicesHost = makeServicesHost( - scriptRegex, - log, - loader, - instance, - loaderOptions.experimentalFileCaching, - configParseResult.projectReferences - ); + if (!loader._compiler.hooks) { + throw new Error( + "You may be using an old version of webpack; please check you're using at least version 4" + ); + } - instance.languageService = compiler.createLanguageService( - servicesHost.servicesHost, - compiler.createDocumentRegistry() - ); + if ( + instance.loaderOptions.experimentalWatchApi && + instance.compiler.createWatchProgram + ) { + instance.log.logInfo('Using watch api'); - if (servicesHost.clearCache !== null) { - loader._compiler.hooks.watchRun.tap('ts-loader', servicesHost.clearCache); + // If there is api available for watch, use it instead of language service + instance.watchHost = makeWatchHost( + getScriptRegexp(instance), + instance.log, + loader, + instance, + instance.configParseResult.projectReferences + ); + instance.watchOfFilesAndCompilerOptions = instance.compiler.createWatchProgram( + instance.watchHost + ); + instance.builderProgram = instance.watchOfFilesAndCompilerOptions.getProgram(); + instance.program = instance.builderProgram.getProgram(); + + instance.transformers = getCustomTransformers(instance.program); + } else { + instance.servicesHost = makeServicesHost( + getScriptRegexp(instance), + instance.log, + loader, + instance, + instance.loaderOptions.experimentalFileCaching, + instance.configParseResult.projectReferences + ); + + instance.languageService = instance.compiler.createLanguageService( + instance.servicesHost.servicesHost, + instance.compiler.createDocumentRegistry() + ); + + if (instance.servicesHost.clearCache !== null) { + loader._compiler.hooks.watchRun.tap( + 'ts-loader', + instance.servicesHost.clearCache + ); + } + + instance.transformers = getCustomTransformers( + instance.languageService!.getProgram() + ); } - instance.transformers = getCustomTransformers( - instance.languageService!.getProgram() + loader._compiler.hooks.afterCompile.tapAsync( + 'ts-loader', + makeAfterCompile(instance, instance.configFilePath) + ); + loader._compiler.hooks.watchRun.tapAsync( + 'ts-loader', + makeWatchRun(instance) ); } +} - loader._compiler.hooks.afterCompile.tapAsync( - 'ts-loader', - makeAfterCompile(instance, configFilePath) - ); - loader._compiler.hooks.watchRun.tapAsync('ts-loader', makeWatchRun(instance)); - - return { instance }; +function getScriptRegexp(instance: TSInstance) { + // if allowJs is set then we should accept js(x) files + return instance.configParseResult.options.allowJs === true + ? /\.tsx?$|\.jsx?$/i + : /\.tsx?$/i; } -function tryAndBuildSolutionReferences( +export function buildSolutionReferences( instance: TSInstance, loader: webpack.loader.LoaderContext, - log: logger.Logger, - scriptRegex: RegExp, - configFilePath: string | undefined + log: logger.Logger ) { - if ( - configFilePath && - supportsSolutionBuild(instance.loaderOptions, instance.compiler) - ) { + if (!supportsSolutionBuild(instance)) { + return; + } + if (!instance.solutionBuilderHost) { // Use solution builder log.logInfo('Using SolutionBuilder api'); - instance.configFilePath = configFilePath; + const scriptRegex = getScriptRegexp(instance); instance.solutionBuilderHost = makeSolutionBuilderHost( scriptRegex, log, @@ -366,20 +384,11 @@ function tryAndBuildSolutionReferences( ); instance.solutionBuilder = instance.compiler.createSolutionBuilderWithWatch( instance.solutionBuilderHost, - [configFilePath], + [instance.configFilePath!], { verbose: true } ); - instance.solutionBuilder.buildReferences(instance.configFilePath); - for (const [fileName] of instance.solutionBuilderHost.watchedFiles) { - instance.otherFiles.set(path.resolve(fileName), { - version: 0, - text: instance.solutionBuilderHost.readFile(fileName) - }); - if (instance.loaderOptions.transpileOnly) { - loader.addDependency(fileName); - } - } } + instance.solutionBuilder!.buildReferences(instance.configFilePath!); } export function forEachResolvedProjectReference( @@ -493,7 +502,7 @@ function getOutputJSFileName( : undefined; } -function getOutputFileNames( +export function getOutputFileNames( instance: TSInstance, configFile: typescript.ParsedCommandLine, inputFileName: string @@ -539,49 +548,6 @@ function getOutputFileNames( return outputs; } -function getOutputFilesFromReference( - program: typescript.Program, - instance: TSInstance, - filePath: string, - skipActualOutputRead: boolean -): typescript.OutputFile[] | undefined { - // May be api to get file - return forEachResolvedProjectReference( - program.getResolvedProjectReferences(), - ({ commandLine }) => { - const { options, fileNames } = commandLine; - if ( - !options.outFile && - !options.out && - fileNames.some(file => path.normalize(file) === filePath) - ) { - const outputFiles: typescript.OutputFile[] = []; - if (!skipActualOutputRead) { - getOutputFileNames( - instance, - commandLine, - (instance.compiler as any).resolvePath(filePath) - ).forEach(name => { - const output = instance.solutionBuilderHost!.outputFiles.get( - path.resolve(name) - ); - if (output) { - outputFiles.push(output); - } else { - const text = instance.compiler.sys.readFile(name); - if (text) { - outputFiles.push({ name, text, writeByteOrderMark: false }); - } - } - }); - } - return outputFiles; - } - return undefined; - } - ); -} - export function getInputFileNameFromOutput( instance: TSInstance, filePath: string @@ -589,9 +555,13 @@ export function getInputFileNameFromOutput( if (filePath.match(tsTsxRegex) && !fileExtensionIs(filePath, '.d.ts')) { return undefined; } + if (instance.solutionBuilderHost) { + return instance.solutionBuilderHost.getInputFileNameFromOutput(filePath); + } const program = ensureProgram(instance); return ( program && + program.getResolvedProjectReferences && forEachResolvedProjectReference( program.getResolvedProjectReferences(), ({ commandLine }) => { @@ -671,11 +641,7 @@ export function getEmitFromWatchHost(instance: TSInstance, filePath?: string) { return undefined; } -export function getEmitOutput( - instance: TSInstance, - filePath: string, - skipActualOutputReadOfReferencedFile: boolean -) { +export function getEmitOutput(instance: TSInstance, filePath: string) { if (fileExtensionIs(filePath, instance.compiler.Extension.Dts)) { return []; } @@ -683,15 +649,9 @@ export function getEmitOutput( if (program !== undefined) { const sourceFile = program.getSourceFile(filePath); if (isReferencedFile(instance, filePath)) { - const builtReferences = getOutputFilesFromReference( - program, - instance, - filePath, - skipActualOutputReadOfReferencedFile + return instance.solutionBuilderHost!.getOutputFilesFromReferencedProjectInput( + filePath ); - if (builtReferences) { - return builtReferences; - } } const outputFiles: typescript.OutputFile[] = []; const writeFile = ( diff --git a/src/interfaces.ts b/src/interfaces.ts index 0760c471a..31be0111f 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -2,6 +2,7 @@ export { ModuleResolutionHost, FormatDiagnosticsHost } from 'typescript'; import * as typescript from 'typescript'; import { Chalk } from 'chalk'; +import * as logger from './logger'; export interface ErrorInfo { code: number; @@ -37,6 +38,13 @@ export type ResolveSync = ( moduleName: string ) => string; +export type Action = () => void; + +export interface ServiceHostWhichMayBeCacheable { + servicesHost: typescript.LanguageServiceHost; + clearCache: Action | null; +} + export interface WatchHost extends typescript.WatchCompilerHostOfFilesAndCompilerOptions< typescript.EmitAndSemanticDiagnosticsBuilderProgram @@ -64,19 +72,9 @@ export interface WatchFactory { ): void; invokeDirectoryWatcher(directory: string, fileAddedOrRemoved: string): void; /** Used to watch changes in source files, missing files needed to update the program or config file */ - watchFile( - path: string, - callback: typescript.FileWatcherCallback, - pollingInterval?: number, - options?: typescript.CompilerOptions - ): typescript.FileWatcher; + watchFile: typescript.WatchHost['watchFile']; /** Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added */ - watchDirectory( - path: string, - callback: typescript.DirectoryWatcherCallback, - recursive?: boolean, - options?: typescript.CompilerOptions - ): typescript.FileWatcher; + watchDirectory: typescript.WatchHost['watchDirectory']; } export interface SolutionDiagnostics { @@ -91,8 +89,20 @@ export interface SolutionBuilderWithWatchHost >, WatchFactory { diagnostics: SolutionDiagnostics; - outputFiles: Map; - tsbuildinfos: typescript.OutputFile[]; + outputFiles: Map; + tsbuildinfos: Map; + outputAffectingInstanceVersion: Map; + getOutputFileFromReferencedProject( + outputFileName: string + ): OutputFile | false | undefined; + getInputFileNameFromOutput(outputFileName: string): string | undefined; + getOutputFilesFromReferencedProjectInput(inputFileName: string): OutputFile[]; +} + +export interface OutputFile extends typescript.OutputFile { + time: Date; + version: number; + isNew: boolean; } export interface TSInstance { @@ -116,8 +126,9 @@ export interface TSInstance { * warnings about source maps during a single compilation. */ projectsMissingSourceMaps?: Set; + servicesHost?: ServiceHostWhichMayBeCacheable; languageService?: typescript.LanguageService | null; - version?: number; + version: number; dependencyGraph: DependencyGraph; reverseDependencyGraph: ReverseDependencyGraph; filesWithErrors?: TSFiles; @@ -138,7 +149,15 @@ export interface TSInstance { solutionBuilder?: typescript.SolutionBuilder< typescript.EmitAndSemanticDiagnosticsBuilderProgram >; - configFilePath?: string; + configFilePath: string | undefined; + + initialSetupPending: boolean; + configParseResult: { + options: typescript.CompilerOptions; + fileNames: string[]; + projectReferences?: ReadonlyArray; + }; + log: logger.Logger; } export interface LoaderOptionsCache { @@ -220,6 +239,7 @@ export interface LoaderOptions { export interface TSFile { text?: string; version: number; + modifiedTime?: Date; projectReference?: { /** * Undefined here means we’ve already checked and confirmed there is no diff --git a/src/servicesHost.ts b/src/servicesHost.ts index 6be1f18a2..de245e7e6 100644 --- a/src/servicesHost.ts +++ b/src/servicesHost.ts @@ -4,13 +4,17 @@ import * as webpack from 'webpack'; import { getParsedCommandLine } from './config'; import * as constants from './constants'; +import { getOutputFileNames } from './instances'; import { + Action, CustomResolveModuleName, CustomResolveTypeReferenceDirective, FormatDiagnosticsHost, ModuleResolutionHost, + OutputFile, ResolvedModule, ResolveSync, + ServiceHostWhichMayBeCacheable, SolutionBuilderWithWatchHost, SolutionDiagnostics, TSFile, @@ -24,11 +28,23 @@ import * as logger from './logger'; import { makeResolver } from './resolver'; import { formatErrors, readFile, unorderedRemoveItem } from './utils'; -export type Action = () => void; - -export interface ServiceHostWhichMayBeCacheable { - servicesHost: typescript.LanguageServiceHost; - clearCache: Action | null; +function readFileWithInstance( + instance: TSInstance, + filePath: string, + encoding?: string | undefined +): string | undefined { + if (instance.solutionBuilderHost) { + const outputFile = instance.solutionBuilderHost.getOutputFileFromReferencedProject( + filePath + ); + if (outputFile !== undefined) { + return outputFile ? outputFile.text : undefined; + } + } + return ( + instance.compiler.sys.readFile(filePath, encoding) || + readFile(filePath, encoding) + ); } /** @@ -66,12 +82,22 @@ export function makeServicesHost( const readFileWithFallback = ( filePath: string, encoding?: string | undefined - ): string | undefined => - compiler.sys.readFile(filePath, encoding) || readFile(filePath, encoding); + ): string | undefined => readFileWithInstance(instance, filePath, encoding); - const fileExists = (filePathToCheck: string) => - compiler.sys.fileExists(filePathToCheck) || - readFile(filePathToCheck) !== undefined; + const fileExists = (filePathToCheck: string) => { + if (instance.solutionBuilderHost) { + const outputFile = instance.solutionBuilderHost.getOutputFileFromReferencedProject( + filePathToCheck + ); + if (outputFile !== undefined) { + return !!outputFile; + } + } + return ( + compiler.sys.fileExists(filePathToCheck) || + readFile(filePathToCheck) !== undefined + ); + }; let clearCache: Action | null = null; let moduleResolutionHost: ModuleResolutionHost = { @@ -115,7 +141,21 @@ export function makeServicesHost( getScriptVersion: (fileName: string) => { fileName = path.normalize(fileName); const file = files.get(fileName); - return file === undefined ? '' : file.version.toString(); + if (file) { + return file.version.toString(); + } + const outputFile = + instance.solutionBuilderHost && + instance.solutionBuilderHost.getOutputFileFromReferencedProject( + fileName + ); + if (outputFile !== undefined) { + instance.solutionBuilderHost!.outputAffectingInstanceVersion.set( + path.resolve(fileName), + true + ); + } + return outputFile ? outputFile.version.toString() : ''; }, getScriptSnapshot: (fileName: string) => { @@ -125,6 +165,21 @@ export function makeServicesHost( let file = files.get(fileName); if (file === undefined) { + if (instance.solutionBuilderHost) { + const outputFile = instance.solutionBuilderHost.getOutputFileFromReferencedProject( + fileName + ); + if (outputFile !== undefined) { + instance.solutionBuilderHost!.outputAffectingInstanceVersion.set( + path.resolve(fileName), + true + ); + return outputFile + ? compiler.ScriptSnapshot.fromString(outputFile.text) + : undefined; + } + } + const text = readFile(fileName); if (text === undefined) { return undefined; @@ -385,7 +440,8 @@ export function updateFileWithText( if (newText !== file.text) { file.text = newText; file.version++; - instance.version!++; + file.modifiedTime = new Date(); + instance.version++; if (!instance.modifiedFiles) { instance.modifiedFiles = new Map(); } @@ -441,8 +497,7 @@ export function makeWatchHost( const readFileWithFallback = ( filePath: string, encoding?: string | undefined - ): string | undefined => - compiler.sys.readFile(filePath, encoding) || readFile(filePath, encoding); + ): string | undefined => readFileWithInstance(instance, filePath, encoding); const moduleResolutionHost: ModuleResolutionHost = { fileExists, @@ -575,6 +630,16 @@ export function makeWatchHost( } } +function normalizeSlashes(file: string): string { + return file.replace(/\\/g, '/'); +} + +interface ConfigFileInfo { + config: typescript.ParsedCommandLine | undefined; + outputFileNames?: Map; + tsbuildInfoFile?: string; +} + /** * Create the TypeScript Watch host */ @@ -647,8 +712,11 @@ export function makeSolutionBuilderHost( compiler.sys.newLine )}${newLine + newLine}` ); - const tsbuildinfos = [] as typescript.OutputFile[]; - const outputFiles = new Map(); + const tsbuildinfos = new Map(); + const outputFiles = new Map(); + const outputAffectingInstanceVersion = new Map(); + + const configFileInfo = new Map(); const solutionBuilderHost: SolutionBuilderWithWatchHost = { ...compiler.createSolutionBuilderWithWatchHost( compiler.sys, @@ -661,31 +729,117 @@ export function makeSolutionBuilderHost( ...createWatchFactory(beforeWatchCallbacks), // Overrides getCurrentDirectory, + // behave as if there is no tsbuild info on disk since we want to generate all outputs in memory and only use those + readFile: (fileName, encoding) => { + const outputFile = getOutputFileFromReferencedProject(fileName); + return outputFile !== undefined + ? outputFile + ? outputFile.text + : undefined + : readInputFile(fileName, encoding).text; + }, writeFile: (name, text, writeByteOrderMark) => { - compiler.sys.writeFile(name, text, writeByteOrderMark); updateFileWithText(instance, name, () => text); - if (name.endsWith('.tsbuildinfo')) { - tsbuildinfos.push({ - name, - text, - writeByteOrderMark: !!writeByteOrderMark - }); + const map = name.endsWith('.tsbuildinfo') ? tsbuildinfos : outputFiles; + const resolvedFileName = path.resolve(name); + const existing = map.get(resolvedFileName); + map.set(resolvedFileName, { + name, + text, + writeByteOrderMark: !!writeByteOrderMark, + time: new Date(), + isNew: true, + version: existing + ? existing.text !== text + ? existing.version + 1 + : existing.version + : 0 + }); + if ( + outputAffectingInstanceVersion.has(resolvedFileName) && + (!existing || existing.text !== text) + ) { + instance.version++; + } + }, + getModifiedTime: fileName => { + const outputFile = getOutputFileFromReferencedProject(fileName); + if (outputFile !== undefined) { + return outputFile ? outputFile.time : undefined; + } + const existing = + instance.files.get(path.resolve(fileName)) || + instance.otherFiles.get(path.resolve(fileName)); + return existing + ? existing.modifiedTime + : compiler.sys.getModifiedTime!(fileName); + }, + setModifiedTime: (fileName, time) => { + const outputFile = getOutputFileFromReferencedProject(fileName); + if (outputFile !== undefined) { + if (outputFile) { + outputFile.time = time; + } } else { - outputFiles.set(path.resolve(name), { - name, - text, - writeByteOrderMark: !!writeByteOrderMark - }); + compiler.sys.setModifiedTime!(fileName, time); + } + const existing = + instance.files.get(path.resolve(fileName)) || + instance.otherFiles.get(path.resolve(fileName)); + if (existing) { + existing.modifiedTime = time; + } + }, + fileExists: fileName => { + const outputFile = getOutputFileFromReferencedProject(fileName); + if (outputFile !== undefined) { + return true; } + if (isOutputFromReferencedProject(fileName)) { + return false; + } + const existing = + instance.files.get(path.resolve(fileName)) || + instance.otherFiles.get(path.resolve(fileName)); + return existing + ? existing.text !== undefined + : compiler.sys.fileExists(fileName); + }, + directoryExists: directory => { + if (compiler.sys.directoryExists(directory)) { + return true; + } + const resolvedDirectory = normalizeSlashes(path.resolve(directory)) + '/'; + for (const outputFile of outputFiles.keys()) { + if (normalizeSlashes(outputFile).startsWith(resolvedDirectory)) { + return true; + } + } + for (const tsbuildInfo of tsbuildinfos.keys()) { + if (normalizeSlashes(tsbuildInfo).startsWith(resolvedDirectory)) { + return true; + } + } + return false; }, setTimeout: undefined, clearTimeout: undefined, outputFiles, - tsbuildinfos + tsbuildinfos, + outputAffectingInstanceVersion, + getOutputFileFromReferencedProject, + getInputFileNameFromOutput: fileName => { + const result = getInputFileNameFromOutput(fileName); + return typeof result === 'string' ? result : undefined; + }, + getOutputFilesFromReferencedProjectInput }; solutionBuilderHost.trace = logData => log.logInfo(logData); - solutionBuilderHost.getParsedCommandLine = file => - getParsedCommandLine(compiler, instance.loaderOptions, file); + solutionBuilderHost.getParsedCommandLine = file => { + const config = getParsedCommandLine(compiler, instance.loaderOptions, file); + configFileInfo.set(path.resolve(file), { config }); + return config; + }; // make a (sync) resolver that follows webpack's rules const resolveSync = makeResolver(loader._compiler.options); @@ -712,6 +866,115 @@ export function makeSolutionBuilderHost( diagnostics.perFile.clear(); diagnostics.transpileErrors.length = 0; } + + function findOutputFile(fileName: string) { + const resolvedFileName = path.resolve(fileName); + return fileName.endsWith('.tsbuildinfo') + ? tsbuildinfos.get(resolvedFileName) + : outputFiles.get(resolvedFileName); + } + + function getInputFileNameFromOutput( + outputFileName: string + ): string | true | undefined { + const resolvedFileName = path.resolve(outputFileName); + for (const [configFile, configInfo] of configFileInfo.entries()) { + ensureInputOutputInfo(configFile, configInfo); + if (configInfo.outputFileNames) { + for (const [ + inputFileName, + outputFilesOfInput + ] of configInfo.outputFileNames.entries()) { + if (outputFilesOfInput.indexOf(resolvedFileName) !== -1) { + return inputFileName; + } + } + } + if ( + configInfo.tsbuildInfoFile && + path.resolve(configInfo.tsbuildInfoFile) === resolvedFileName + ) { + return true; + } + } + return undefined; + } + + function isOutputFromReferencedProject(fileName: string) { + return !!getInputFileNameFromOutput(fileName); + } + + function ensureInputOutputInfo( + configFile: string, + configInfo: ConfigFileInfo + ) { + if ( + configInfo.outputFileNames || + !configInfo.config || + path.resolve(configFile) === path.resolve(instance.configFilePath!) + ) { + return; + } + configInfo.outputFileNames = new Map(); + configInfo.config.fileNames.forEach(inputFile => + configInfo.outputFileNames!.set( + path.resolve(inputFile), + getOutputFileNames(instance, configInfo.config!, inputFile).map( + output => path.resolve(output) + ) + ) + ); + + configInfo.tsbuildInfoFile = instance.compiler + .getTsBuildInfoEmitOutputFilePath + ? instance.compiler.getTsBuildInfoEmitOutputFilePath( + configInfo.config.options + ) + : // before api + (instance.compiler as any).getOutputPathForBuildInfo( + configInfo.config.options + ); + } + + function getOutputFileFromReferencedProject( + outputFileName: string + ): OutputFile | false | undefined { + return ( + findOutputFile(outputFileName) || + (isOutputFromReferencedProject(outputFileName) ? false : undefined) + ); + } + + function getOutputFilesFromReferencedProjectInput(inputFileName: string) { + const resolvedFileName = path.resolve(inputFileName); + for (const [configFile, configInfo] of configFileInfo.entries()) { + ensureInputOutputInfo(configFile, configInfo); + if (configInfo.outputFileNames) { + const result = configInfo.outputFileNames.get(resolvedFileName); + if (result) { + return result + .map(outputFile => outputFiles.get(outputFile)!) + .filter(output => !!output); + } + } + } + return []; + } + + function readInputFile(inputFileName: string, encoding: string | undefined) { + const resolvedFileName = path.resolve(inputFileName); + const existing = instance.otherFiles.get(resolvedFileName); + if (existing) { + return existing; + } + const tsFile: TSFile = { + version: 1, + text: compiler.sys.readFile(inputFileName, encoding), + modifiedTime: compiler.sys.getModifiedTime!(inputFileName) + }; + instance.otherFiles.set(resolvedFileName, tsFile); + return tsFile; + } } export function getSolutionErrors(instance: TSInstance, context: string) { diff --git a/src/utils.ts b/src/utils.ts index d64c119e8..46585ebe0 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -235,9 +235,6 @@ export function arrify(val: T | T[]) { } export function ensureProgram(instance: TSInstance) { - if (instance.solutionBuilder) { - instance.solutionBuilder.buildReferences(instance.configFilePath!); - } if (instance && instance.watchHost) { if (instance.hasUnaccountedModifiedFiles) { if (instance.changedFilesList) { @@ -358,11 +355,14 @@ export function validateSourceMapOncePerProject( } } -export function supportsSolutionBuild( - loaderOptions: LoaderOptions, - compiler: typeof typescript -) { - return !!loaderOptions.projectReferences && !!compiler.InvalidatedProjectKind; +export function supportsSolutionBuild(instance: TSInstance) { + return ( + !!instance.configFilePath && + !!instance.loaderOptions.projectReferences && + !!instance.compiler.InvalidatedProjectKind && + !!instance.configParseResult.projectReferences && + !!instance.configParseResult.projectReferences.length + ); } /** diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt index d3e7545db..64fcf5538 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt @@ -1,7 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.29 KiB main [emitted] main + ../lib/out/index.d.ts 89 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt index 2eeefbb21..87bcb1776 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt @@ -1,7 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + ../lib/out/index.d.ts 108 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt index f9855ff04..0408330b4 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt @@ -1,7 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.d.ts 127 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + ../lib/out/index.d.ts 127 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt index 1c3d5bb27..1b5e06e91 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt @@ -4,6 +4,6 @@ ../lib/index.d.ts 89 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js -[./app.ts] 131 bytes {main} [built] +[./app.ts] 131 bytes {main} [./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} \ No newline at end of file +[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt index 8486d9d82..ad0d1d354 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt @@ -1,6 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.77 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.8 KiB main [emitted] main + ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} [built] -[./lib/index.ts] 189 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 107 bytes {main} [built] +[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt index ee2f58669..734cb3fac 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt @@ -1,9 +1,8 @@ Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../lib/helper.d.ts 92 bytes [emitted] + bundle.js 4.82 KiB main [emitted] main ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} +[./lib/helper.ts] 107 bytes {main} [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt index 7e9c5b9b0..4137e4207 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt @@ -4,6 +4,6 @@ ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js -[./app.ts] 131 bytes {main} [built] +[./app.ts] 131 bytes {main} [./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} \ No newline at end of file +[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt index 5645df8f1..e73b7c2b1 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -1,8 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.77 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] -../tsconfig.tsbuildinfo 51.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.8 KiB main [emitted] main + ../app.d.ts 11 bytes [emitted] + ../tsconfig.tsbuildinfo 51.8 KiB [emitted] + ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} [built] -[./lib/index.ts] 189 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 107 bytes {main} [built] +[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index 7db149fe5..e17a418d1 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,10 +1,9 @@ Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main + bundle.js 4.82 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} +[./lib/helper.ts] 107 bytes {main} [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt index 4df8353e2..4036a0cf2 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt @@ -7,4 +7,4 @@ Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} \ No newline at end of file +[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt index 8486d9d82..ad0d1d354 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt @@ -1,6 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.77 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.8 KiB main [emitted] main + ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} [built] -[./lib/index.ts] 189 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 107 bytes {main} [built] +[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt index ee2f58669..734cb3fac 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,9 +1,8 @@ Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../lib/helper.d.ts 92 bytes [emitted] + bundle.js 4.82 KiB main [emitted] main ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} +[./lib/helper.ts] 107 bytes {main} [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt index 24bc679a7..4137e4207 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt @@ -6,4 +6,4 @@ Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} \ No newline at end of file +[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index 6a22a2be6..5bf34afaf 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -7,4 +7,4 @@ Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} \ No newline at end of file +[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt index f4f1ffdbd..1b5e06e91 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -6,4 +6,4 @@ Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} \ No newline at end of file +[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file From bf498567a7a194614660c2980b2a161f41637330 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 6 Apr 2020 14:54:56 -0700 Subject: [PATCH 10/20] Add all the files from composite project as dependencies as any change in them can result in errors resulting in changes to the own output of the file --- src/index.ts | 189 +++++++++++++----- src/instances.ts | 87 +++++--- src/interfaces.ts | 10 + src/servicesHost.ts | 89 +++++---- src/watch-run.ts | 40 ++-- .../projectReferencesMultiple/app.ts | 5 + .../projectReferencesMultiple/common/index.ts | 3 + .../common/tsconfig.json | 5 + .../expectedOutput-3.8/bundle.js | 123 ++++++++++++ .../expectedOutput-3.8/output.txt | 36 ++++ .../expectedOutput-3.8/patch0/bundle.js | 124 ++++++++++++ .../expectedOutput-3.8/patch0/output.txt | 21 ++ .../expectedOutput-3.8/patch1/bundle.js | 137 +++++++++++++ .../expectedOutput-3.8/patch1/output.txt | 12 ++ .../expectedOutput-3.8/patch2/bundle.js | 137 +++++++++++++ .../expectedOutput-3.8/patch2/output.txt | 9 + .../expectedOutput-3.8/patch3/bundle.js | 137 +++++++++++++ .../expectedOutput-3.8/patch3/output.txt | 11 + .../expectedOutput-3.8/patch4/bundle.js | 137 +++++++++++++ .../expectedOutput-3.8/patch4/output.txt | 9 + .../expectedOutput-3.8/patch5/bundle.js | 137 +++++++++++++ .../expectedOutput-3.8/patch5/output.txt | 11 + .../expectedOutput-transpile-3.8/bundle.js | 137 +++++++++++++ .../expectedOutput-transpile-3.8/output.txt | 13 ++ .../patch0/output.txt | 10 + .../patch1/output.txt | 7 + .../patch3/output.txt | 10 + .../patch4/output.txt | 7 + .../patch5/output.txt | 10 + .../indirectWithError/fileWithError.ts | 3 + .../indirectWithError/index.ts | 5 + .../indirectWithError/tsconfig.json | 5 + .../lib/fileWithError.ts | 3 + .../projectReferencesMultiple/lib/index.ts | 5 + .../lib/tsconfig.json | 5 + .../patch0/lib/fileWithError.ts | 3 + .../patch1/indirectWithError/fileWithError.ts | 3 + .../patch2/unreferenced/index.ts | 3 + .../patch3/unreferencedIndirect/index.ts | 3 + .../patch4/unreferencedIndirect/index.ts | 3 + .../patch5/unreferenced/index.ts | 3 + .../projectReferencesMultiple/tsconfig.json | 10 + .../unreferenced/index.ts | 3 + .../unreferenced/tsconfig.json | 8 + .../unreferencedIndirect/index.ts | 3 + .../unreferencedIndirect/tsconfig.json | 5 + .../projectReferencesMultiple/utils/index.ts | 4 + .../utils/tsconfig.json | 9 + .../webpack.config.js | 21 ++ .../patch0/output.txt | 2 +- .../patch2/output.txt | 10 +- .../patch3/output.txt | 2 +- .../patch0/output.txt | 2 +- .../patch2/output.txt | 10 +- .../patch3/output.txt | 2 +- .../expectedOutput-3.8/patch0/output.txt | 2 +- .../patch0/output.txt | 2 +- .../expectedOutput-3.8/patch1/output.txt | 2 +- .../patch0/output.txt | 2 +- .../patch1/output.txt | 2 +- .../expectedOutput-3.8/patch0/output.txt | 3 +- .../expectedOutput-3.8/patch1/output.txt | 2 +- .../patch0/output.txt | 2 +- .../patch1/output.txt | 2 +- .../expectedOutput-3.8/patch1/output.txt | 2 +- .../patch0/output.txt | 2 +- .../patch1/output.txt | 2 +- .../expectedOutput-3.8/patch0/output.txt | 5 +- .../patch0/output.txt | 2 +- .../expectedOutput-3.8/patch0/output.txt | 2 +- .../patch0/output.txt | 2 +- .../expectedOutput-3.8/patch0/output.txt | 3 +- .../expectedOutput-3.8/patch3/output.txt | 3 +- .../patch0/output.txt | 2 +- .../patch2/output.txt | 10 +- .../patch3/output.txt | 2 +- .../patch0/output.txt | 2 +- .../patch2/output.txt | 10 +- .../patch3/output.txt | 2 +- 79 files changed, 1703 insertions(+), 165 deletions(-) create mode 100644 test/comparison-tests/projectReferencesMultiple/app.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/common/index.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/common/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/bundle.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/output.txt create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/bundle.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/output.txt create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/bundle.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/output.txt create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/bundle.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/output.txt create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch3/bundle.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch3/output.txt create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/bundle.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/output.txt create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch5/bundle.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch5/output.txt create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/bundle.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch3/output.txt create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch4/output.txt create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch5/output.txt create mode 100644 test/comparison-tests/projectReferencesMultiple/indirectWithError/fileWithError.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/indirectWithError/index.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/indirectWithError/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesMultiple/lib/fileWithError.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/lib/index.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/lib/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesMultiple/patch0/lib/fileWithError.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/patch1/indirectWithError/fileWithError.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/patch2/unreferenced/index.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/patch3/unreferencedIndirect/index.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/patch4/unreferencedIndirect/index.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/patch5/unreferenced/index.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesMultiple/unreferenced/index.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/unreferenced/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/index.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesMultiple/utils/index.ts create mode 100644 test/comparison-tests/projectReferencesMultiple/utils/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesMultiple/webpack.config.js diff --git a/src/index.ts b/src/index.ts index be22b18a0..77b10cd79 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,7 +10,8 @@ import { getInputFileNameFromOutput, getTypeScriptInstance, initializeInstance, - isReferencedFile + isReferencedFile, + reportTranspileErrors } from './instances'; import { LoaderOptions, @@ -45,9 +46,8 @@ function loader(this: webpack.loader.LoaderContext, contents: string) { callback(new Error(instanceOrError.error.message)); return; } - const instance = instanceOrError.instance!; - buildSolutionReferences(instance, this, instance.log); + buildSolutionReferences(instance, this); successLoader(this, contents, callback, instance); } @@ -58,6 +58,7 @@ function successLoader( instance: TSInstance ) { initializeInstance(loaderContext, instance); + reportTranspileErrors(instance, loaderContext); const rawFilePath = path.normalize(loaderContext.resourcePath); const filePath = @@ -470,65 +471,70 @@ function getEmit( loaderContext.clearDependencies(); loaderContext.addDependency(rawFilePath); - const allDefinitionFiles = isReferencedFile(instance, filePath) - ? [] - : [...instance.files.keys()].filter( - defFilePath => - defFilePath.match(constants.dtsDtsxOrDtsDtsxMapRegex) && - // Remove the project reference d.ts as we are adding dependency for .ts later - // This removed extra build pass (resulting in new stats object in initial build) - (!instance.solutionBuilderHost || - instance.solutionBuilderHost.getOutputFileFromReferencedProject( - defFilePath - ) !== undefined) - ); + const dependencies: string[] = []; + const addDependency = (file: string) => { + file = path.resolve(file); + loaderContext.addDependency(file); + dependencies.push(file); + }; // Make this file dependent on *all* definition files in the program - const addDependency = loaderContext.addDependency.bind(loaderContext); - allDefinitionFiles.forEach(addDependency); + if (!isReferencedFile(instance, filePath)) { + for (const defFilePath of instance.files.keys()) { + if ( + defFilePath.match(constants.dtsDtsxOrDtsDtsxMapRegex) && + // Remove the project reference d.ts as we are adding dependency for .ts later + // This removed extra build pass (resulting in new stats object in initial build) + (!instance.solutionBuilderHost || + instance.solutionBuilderHost.getOutputFileFromReferencedProject( + defFilePath + ) !== undefined) + ) { + addDependency(defFilePath); + } + } + } // Additionally make this file dependent on all imported files const fileDependencies = instance.dependencyGraph[filePath]; - const additionalDependencies = - fileDependencies === undefined - ? [] - : fileDependencies.map(({ resolvedFileName, originalFileName }) => { - const projectReference = getAndCacheProjectReference( + if (fileDependencies) { + for (const { resolvedFileName, originalFileName } of fileDependencies) { + const projectReference = getAndCacheProjectReference( + resolvedFileName, + instance + ); + // In the case of dependencies that are part of a project reference, + // the real dependency that webpack should watch is the JS output file. + if (projectReference !== undefined) { + addDependency( + getAndCacheOutputJSFileName( resolvedFileName, + projectReference, instance - ); - // In the case of dependencies that are part of a project reference, - // the real dependency that webpack should watch is the JS output file. - if (projectReference !== undefined) { - return getAndCacheOutputJSFileName( - resolvedFileName, - projectReference, - instance - ); - } - return ( - getInputFileNameFromOutput( - instance, - path.resolve(resolvedFileName) - ) || originalFileName - ); - }); - - if (additionalDependencies.length > 0) { - additionalDependencies.forEach(addDependency); + ) + ); + } else { + addDependency( + getInputFileNameFromOutput( + instance, + path.resolve(resolvedFileName) + ) || originalFileName + ); + } + } } - loaderContext._module.buildMeta.tsLoaderDefinitionFileVersions = allDefinitionFiles - .concat(additionalDependencies) - .map( - defFilePath => - defFilePath + - '@' + - ( - instance.files.get(defFilePath) || - instance.otherFiles.get(defFilePath) || { version: '?' } - ).version - ); + addDependenciesFromSolutionBuilder(instance, filePath, addDependency); + + loaderContext._module.buildMeta.tsLoaderDefinitionFileVersions = dependencies.map( + defFilePath => + defFilePath + + '@' + + ( + instance.files.get(defFilePath) || + instance.otherFiles.get(defFilePath) || { version: '?' } + ).version + ); const outputFile = outputFiles .filter(file => file.name.match(constants.jsJsx)) @@ -540,10 +546,81 @@ function getEmit( .pop(); const sourceMapText = sourceMapFile === undefined ? undefined : sourceMapFile.text; - return { outputText, sourceMapText }; } +function addDependenciesFromSolutionBuilder( + instance: TSInstance, + filePath: string, + addDependency: (file: string) => void +) { + if (!instance.solutionBuilderHost) { + return; + } + // Add all the input files from the references as + const resolvedFilePath = path.resolve(filePath); + for (const [ + configFile, + configInfo + ] of instance.solutionBuilderHost.configFileInfo.entries()) { + if ( + !configInfo.config || + !configInfo.config.projectReferences || + !configInfo.config.projectReferences.length + ) { + continue; + } + if (configInfo.outputFileNames) { + if (!configInfo.outputFileNames.has(resolvedFilePath)) { + continue; + } + } else if ( + !configInfo.config.fileNames.some( + f => path.resolve(f) === resolvedFilePath + ) + ) { + continue; + } + + // This is the config for the input file + const seenMap = new Map(); + seenMap.set(configFile, true); + + // Depend on all the dts files from the program + if (configInfo.dtsFiles) { + configInfo.dtsFiles.forEach(addDependency); + } + + // Add dependencies to all the input files from the project reference files since building them + const queue = configInfo.config.projectReferences.slice(); + while (true) { + const currentRef = queue.pop(); + if (!currentRef) { + break; + } + const refConfigFile = path.resolve( + instance.compiler.resolveProjectReferencePath(currentRef) + ); + if (seenMap.has(refConfigFile)) { + continue; + } + const refConfigInfo = instance.solutionBuilderHost.configFileInfo.get( + refConfigFile + ); + if (!refConfigInfo) { + continue; + } + seenMap.set(refConfigFile, true); + if (refConfigInfo.config) { + refConfigInfo.config.fileNames.forEach(addDependency); + if (refConfigInfo.config.projectReferences) { + queue.push(...refConfigInfo.config.projectReferences); + } + } + } + } +} + /** * Transpile file */ @@ -564,6 +641,10 @@ function getTranspilationEmit( fileName }); + addDependenciesFromSolutionBuilder(instance, fileName, file => + loaderContext.addDependency(path.resolve(file)) + ); + // _module.errors is not available inside happypack - see https://github.com/TypeStrong/ts-loader/issues/336 if ( !instance.loaderOptions.happyPackMode && diff --git a/src/instances.ts b/src/instances.ts index 0df6db1eb..a5e5d50bf 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -168,6 +168,7 @@ function successfulTypeScriptInstance( transformers: {} as typescript.CustomTransformers, // this is only set temporarily, custom transformers are created further down colors, initialSetupPending: true, + reportTranspileErrors: true, configFilePath, configParseResult, log @@ -273,24 +274,14 @@ export function initializeInstance( }) : instance.compiler.createProgram([], instance.compilerOptions)); - // happypack does not have _module.errors - see https://github.com/TypeStrong/ts-loader/issues/336 - if (!instance.loaderOptions.happyPackMode) { - const solutionErrors: WebpackError[] = getSolutionErrors( - instance, - loader.context - ); - const diagnostics = program.getOptionsDiagnostics(); - const errors = formatErrors( - diagnostics, - instance.loaderOptions, - instance.colors, - instance.compiler, - { file: instance.configFilePath || 'tsconfig.json' }, - loader.context + instance.transformers = getCustomTransformers(program); + // Setup watch run for solution building + if (instance.solutionBuilderHost) { + loader._compiler.hooks.watchRun.tapAsync( + 'ts-loader', + makeWatchRun(instance) ); - loader._module.errors.push(...solutionErrors, ...errors); } - instance.transformers = getCustomTransformers(program); } else { if (!loader._compiler.hooks) { throw new Error( @@ -307,7 +298,6 @@ export function initializeInstance( // If there is api available for watch, use it instead of language service instance.watchHost = makeWatchHost( getScriptRegexp(instance), - instance.log, loader, instance, instance.configParseResult.projectReferences @@ -322,7 +312,6 @@ export function initializeInstance( } else { instance.servicesHost = makeServicesHost( getScriptRegexp(instance), - instance.log, loader, instance, instance.loaderOptions.experimentalFileCaching, @@ -364,21 +353,46 @@ function getScriptRegexp(instance: TSInstance) { : /\.tsx?$/i; } +export function reportTranspileErrors( + instance: TSInstance, + loader: webpack.loader.LoaderContext +) { + if (!instance.reportTranspileErrors) { + return; + } + instance.reportTranspileErrors = false; + // happypack does not have _module.errors - see https://github.com/TypeStrong/ts-loader/issues/336 + if (!instance.loaderOptions.happyPackMode) { + const solutionErrors: WebpackError[] = getSolutionErrors( + instance, + loader.context + ); + const diagnostics = instance.program!.getOptionsDiagnostics(); + const errors = formatErrors( + diagnostics, + instance.loaderOptions, + instance.colors, + instance.compiler, + { file: instance.configFilePath || 'tsconfig.json' }, + loader.context + ); + loader._module.errors.push(...solutionErrors, ...errors); + } +} + export function buildSolutionReferences( instance: TSInstance, - loader: webpack.loader.LoaderContext, - log: logger.Logger + loader: webpack.loader.LoaderContext ) { if (!supportsSolutionBuild(instance)) { return; } if (!instance.solutionBuilderHost) { // Use solution builder - log.logInfo('Using SolutionBuilder api'); + instance.log.logInfo('Using SolutionBuilder api'); const scriptRegex = getScriptRegexp(instance); instance.solutionBuilderHost = makeSolutionBuilderHost( scriptRegex, - log, loader, instance ); @@ -387,8 +401,35 @@ export function buildSolutionReferences( [instance.configFilePath!], { verbose: true } ); + instance.solutionBuilder!.buildReferences(instance.configFilePath!); + ensureAllReferences(instance); + } else { + instance.solutionBuilderHost.buildReferences(); + } +} + +function ensureAllReferences(instance: TSInstance) { + // Return result from the json without errors so that the extra errors from config are digested here + const rootConfigInfo = instance.solutionBuilderHost!.configFileInfo.get( + instance.configFilePath! + ); + for (const configInfo of instance.solutionBuilderHost!.configFileInfo.values()) { + if (configInfo === rootConfigInfo || !configInfo.config) { + continue; + } + // Load all the input files + configInfo.config.fileNames.forEach(file => { + const resolvedFileName = path.resolve(file); + const existing = instance.otherFiles.get(resolvedFileName); + if (!existing) { + instance.otherFiles.set(resolvedFileName, { + version: 1, + text: instance.compiler.sys.readFile(file), + modifiedTime: instance.compiler.sys.getModifiedTime!(file) + }); + } + }); } - instance.solutionBuilder!.buildReferences(instance.configFilePath!); } export function forEachResolvedProjectReference( diff --git a/src/interfaces.ts b/src/interfaces.ts index 31be0111f..7a56191d7 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -91,12 +91,21 @@ export interface SolutionBuilderWithWatchHost diagnostics: SolutionDiagnostics; outputFiles: Map; tsbuildinfos: Map; + configFileInfo: Map; outputAffectingInstanceVersion: Map; getOutputFileFromReferencedProject( outputFileName: string ): OutputFile | false | undefined; getInputFileNameFromOutput(outputFileName: string): string | undefined; getOutputFilesFromReferencedProjectInput(inputFileName: string): OutputFile[]; + buildReferences(): void; +} + +export interface ConfigFileInfo { + config: typescript.ParsedCommandLine | undefined; + outputFileNames?: Map; + tsbuildInfoFile?: string; + dtsFiles?: string[]; } export interface OutputFile extends typescript.OutputFile { @@ -145,6 +154,7 @@ export interface TSInstance { hasUnaccountedModifiedFiles?: boolean; changedFilesList?: boolean; + reportTranspileErrors?: boolean; solutionBuilderHost?: SolutionBuilderWithWatchHost; solutionBuilder?: typescript.SolutionBuilder< typescript.EmitAndSemanticDiagnosticsBuilderProgram diff --git a/src/servicesHost.ts b/src/servicesHost.ts index de245e7e6..f63d6cf29 100644 --- a/src/servicesHost.ts +++ b/src/servicesHost.ts @@ -7,6 +7,7 @@ import * as constants from './constants'; import { getOutputFileNames } from './instances'; import { Action, + ConfigFileInfo, CustomResolveModuleName, CustomResolveTypeReferenceDirective, FormatDiagnosticsHost, @@ -24,7 +25,6 @@ import { WatchHost, WebpackError } from './interfaces'; -import * as logger from './logger'; import { makeResolver } from './resolver'; import { formatErrors, readFile, unorderedRemoveItem } from './utils'; @@ -52,7 +52,6 @@ function readFileWithInstance( */ export function makeServicesHost( scriptRegex: RegExp, - log: logger.Logger, loader: webpack.loader.LoaderContext, instance: TSInstance, enableFileCaching: boolean, @@ -218,8 +217,8 @@ export function makeServicesHost( getDefaultLibFileName: (options: typescript.CompilerOptions) => compiler.getDefaultLibFilePath(options), getNewLine: () => newLine, - trace: log.log, - log: log.log, + trace: instance.log.log, + log: instance.log.log, // used for (/// ) see https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/250#issuecomment-485061329 resolveTypeReferenceDirectives: resolvers.resolveTypeReferenceDirectives, @@ -299,12 +298,7 @@ function makeResolvers( }; } -function createWatchFactory( - beforeCallbacks?: ( - key: string, - cb: typescript.FileWatcherCallback[] | typescript.DirectoryWatcherCallback[] - ) => void -): WatchFactory { +function createWatchFactory(): WatchFactory { const watchedFiles: WatchCallbacks< typescript.FileWatcherCallback > = new Map(); @@ -338,9 +332,6 @@ function createWatchFactory( // The array copy is made to ensure that even if one of the callback removes the callbacks, // we dont miss any callbacks following it const cbs = callbacks.slice(); - if (beforeCallbacks) { - beforeCallbacks(key, cbs); - } for (const cb of cbs) { cb(fileName, eventKind as typescript.FileWatcherEventKind); } @@ -467,7 +458,6 @@ export function updateFileWithText( */ export function makeWatchHost( scriptRegex: RegExp, - log: logger.Logger, loader: webpack.loader.LoaderContext, instance: TSInstance, projectReferences?: ReadonlyArray @@ -550,7 +540,7 @@ export function makeWatchHost( depth ), realpath: dirPath => compiler.sys.resolvePath(path.normalize(dirPath)), - trace: logData => log.log(logData), + trace: logData => instance.log.log(logData), watchFile, watchDirectory, @@ -634,18 +624,11 @@ function normalizeSlashes(file: string): string { return file.replace(/\\/g, '/'); } -interface ConfigFileInfo { - config: typescript.ParsedCommandLine | undefined; - outputFileNames?: Map; - tsbuildInfoFile?: string; -} - /** * Create the TypeScript Watch host */ export function makeSolutionBuilderHost( scriptRegex: RegExp, - log: logger.Logger, loader: webpack.loader.LoaderContext, instance: TSInstance ): SolutionBuilderWithWatchHost { @@ -696,17 +679,17 @@ export function makeSolutionBuilderHost( } else { diagnostics.global.push(d); } - log.logInfo(compiler.formatDiagnostic(d, formatDiagnosticHost)); + instance.log.logInfo(compiler.formatDiagnostic(d, formatDiagnosticHost)); }; const reportSolutionBuilderStatus = (d: typescript.Diagnostic) => - log.logInfo(compiler.formatDiagnostic(d, formatDiagnosticHost)); + instance.log.logInfo(compiler.formatDiagnostic(d, formatDiagnosticHost)); const reportWatchStatus = ( d: typescript.Diagnostic, newLine: string, _options: typescript.CompilerOptions ) => - log.logInfo( + instance.log.logInfo( `${compiler.flattenDiagnosticMessageText( d.messageText, compiler.sys.newLine @@ -715,6 +698,7 @@ export function makeSolutionBuilderHost( const tsbuildinfos = new Map(); const outputFiles = new Map(); const outputAffectingInstanceVersion = new Map(); + let timeoutId: [(...args: any[]) => void, any[]] | undefined; const configFileInfo = new Map(); const solutionBuilderHost: SolutionBuilderWithWatchHost = { @@ -726,7 +710,7 @@ export function makeSolutionBuilderHost( reportWatchStatus ), diagnostics, - ...createWatchFactory(beforeWatchCallbacks), + ...createWatchFactory(), // Overrides getCurrentDirectory, // behave as if there is no tsbuild info on disk since we want to generate all outputs in memory and only use those @@ -793,10 +777,7 @@ export function makeSolutionBuilderHost( fileExists: fileName => { const outputFile = getOutputFileFromReferencedProject(fileName); if (outputFile !== undefined) { - return true; - } - if (isOutputFromReferencedProject(fileName)) { - return false; + return !!outputFile; } const existing = instance.files.get(path.resolve(fileName)) || @@ -822,19 +803,27 @@ export function makeSolutionBuilderHost( } return false; }, - setTimeout: undefined, - clearTimeout: undefined, + afterProgramEmitAndDiagnostics: transpileOnly ? undefined : storeDtsFiles, + setTimeout: (callback, _time, ...args) => { + timeoutId = [callback, args]; + return timeoutId; + }, + clearTimeout: _timeoutId => { + timeoutId = undefined; + }, outputFiles, tsbuildinfos, + configFileInfo, outputAffectingInstanceVersion, getOutputFileFromReferencedProject, getInputFileNameFromOutput: fileName => { const result = getInputFileNameFromOutput(fileName); return typeof result === 'string' ? result : undefined; }, - getOutputFilesFromReferencedProjectInput + getOutputFilesFromReferencedProjectInput, + buildReferences }; - solutionBuilderHost.trace = logData => log.logInfo(logData); + solutionBuilderHost.trace = logData => instance.log.logInfo(logData); solutionBuilderHost.getParsedCommandLine = file => { const config = getParsedCommandLine(compiler, instance.loaderOptions, file); configFileInfo.set(path.resolve(file), { config }); @@ -861,10 +850,40 @@ export function makeSolutionBuilderHost( return solutionBuilderHost; - function beforeWatchCallbacks() { + function buildReferences() { + if (!timeoutId) { + return; + } diagnostics.global.length = 0; diagnostics.perFile.clear(); diagnostics.transpileErrors.length = 0; + + while (timeoutId) { + const [callback, args] = timeoutId; + timeoutId = undefined; + callback(...args); + } + } + + function storeDtsFiles( + builderProgram: typescript.EmitAndSemanticDiagnosticsBuilderProgram + ) { + const program = builderProgram.getProgram(); + for (const configInfo of configFileInfo.values()) { + if ( + !configInfo.config || + program.getRootFileNames() !== configInfo.config.fileNames || + program.getCompilerOptions() !== configInfo.config.options || + program.getProjectReferences() !== configInfo.config.projectReferences + ) { + continue; + } + configInfo.dtsFiles = program + .getSourceFiles() + .map(file => path.resolve(file.fileName)) + .filter(fileName => fileName.match(constants.dtsDtsxOrDtsDtsxMapRegex)); + return; + } } function findOutputFile(fileName: string) { diff --git a/src/watch-run.ts b/src/watch-run.ts index 737070f62..5a9df90d6 100644 --- a/src/watch-run.ts +++ b/src/watch-run.ts @@ -15,26 +15,30 @@ export function makeWatchRun(instance: TSInstance) { return (compiler: webpack.Compiler, callback: () => void) => { const times = compiler.fileTimestamps; - for (const [filePath, date] of times) { - if ( - date > (lastTimes.get(filePath) || startTime) && - filePath.match(constants.tsTsxJsJsxRegex) !== null - ) { - continue; + if (instance.loaderOptions.transpileOnly) { + instance.reportTranspileErrors = true; + } else { + for (const [filePath, date] of times) { + if ( + date > (lastTimes.get(filePath) || startTime) && + filePath.match(constants.tsTsxJsJsxRegex) !== null + ) { + continue; + } + + lastTimes.set(filePath, date); + updateFile(instance, filePath); } - lastTimes.set(filePath, date); - updateFile(instance, filePath); - } - - // On watch update add all known dts files expect the ones in node_modules - // (skip @types/* and modules with typings) - for (const filePath of instance.files.keys()) { - if ( - filePath.match(constants.dtsDtsxOrDtsDtsxMapRegex) !== null && - filePath.match(constants.nodeModules) === null - ) { - updateFile(instance, filePath); + // On watch update add all known dts files expect the ones in node_modules + // (skip @types/* and modules with typings) + for (const filePath of instance.files.keys()) { + if ( + filePath.match(constants.dtsDtsxOrDtsDtsxMapRegex) !== null && + filePath.match(constants.nodeModules) === null + ) { + updateFile(instance, filePath); + } } } diff --git a/test/comparison-tests/projectReferencesMultiple/app.ts b/test/comparison-tests/projectReferencesMultiple/app.ts new file mode 100644 index 000000000..0bce1f52e --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/app.ts @@ -0,0 +1,5 @@ +import { lib } from './lib'; +import { utils } from "./utils"; + +console.log(lib.one, lib.two, lib.three); +utils(); diff --git a/test/comparison-tests/projectReferencesMultiple/common/index.ts b/test/comparison-tests/projectReferencesMultiple/common/index.ts new file mode 100644 index 000000000..cee4c5145 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/common/index.ts @@ -0,0 +1,3 @@ +export function common() { + return 30; +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/common/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/common/tsconfig.json new file mode 100644 index 000000000..7f8ad846d --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/common/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "composite": true, + } +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/bundle.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/bundle.js new file mode 100644 index 000000000..8c836ba39 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/bundle.js @@ -0,0 +1,123 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar utils_1 = __webpack_require__(/*! ./utils */ \"./utils/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\nutils_1.utils();\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: TypeScript emitted no output for c://github//ts-loader//.test//projectReferencesMultiple//lib//index.ts. The most common cause for this is having errors when building referenced projects./n at makeSourceMapAndFinish (c://github//ts-loader//dist//index.js:87:18)/n at successLoader (c://github//ts-loader//dist//index.js:73:9)/n at Object.loader (c://github//ts-loader//dist//index.js:24:5)\");\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }), + +/***/ "./utils/index.ts": +/*!************************!*\ + !*** ./utils/index.ts ***! + \************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: TypeScript emitted no output for c://github//ts-loader//.test//projectReferencesMultiple//utils//index.ts. The most common cause for this is having errors when building referenced projects./n at makeSourceMapAndFinish (c://github//ts-loader//dist//index.js:87:18)/n at successLoader (c://github//ts-loader//dist//index.js:73:9)/n at Object.loader (c://github//ts-loader//dist//index.js:24:5)\");\n\n//# sourceURL=webpack:///./utils/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/output.txt new file mode 100644 index 000000000..bee6c0c9e --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/output.txt @@ -0,0 +1,36 @@ + Asset Size Chunks Chunk Names + bundle.js 5.52 KiB main [emitted] main + ../common/index.d.ts 43 bytes [emitted] + ../unreferencedIndirect/index.d.ts 57 bytes [emitted] + ../unreferenced/index.d.ts 49 bytes [emitted] + ../common/tsconfig.tsbuildinfo 67.4 KiB [emitted] +../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] +Entrypoint main = bundle.js +[./app.ts] 182 bytes {main} [built] +[./lib/index.ts] 483 bytes {main} [built] [failed] [1 error] +[./utils/index.ts] 485 bytes {main} [built] [failed] [1 error] + +ERROR in ./lib/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 3:12-28 + +ERROR in ./utils/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for utils\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 4:14-32 + +ERROR in lib\fileWithError.ts +[tsl] ERROR in lib\fileWithError.ts(2,5) + TS2322: Type 'false' is not assignable to type 'string'. + +ERROR in indirectWithError\fileWithError.ts +[tsl] ERROR in indirectWithError\fileWithError.ts(2,5) + TS2322: Type 'false' is not assignable to type 'string'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/bundle.js new file mode 100644 index 000000000..3680c1295 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/bundle.js @@ -0,0 +1,124 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar utils_1 = __webpack_require__(/*! ./utils */ \"./utils/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\nutils_1.utils();\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }), + +/***/ "./utils/index.ts": +/*!************************!*\ + !*** ./utils/index.ts ***! + \************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: TypeScript emitted no output for c://github//ts-loader//.test//projectReferencesMultiple//utils//index.ts. The most common cause for this is having errors when building referenced projects./n at makeSourceMapAndFinish (c://github//ts-loader//dist//index.js:87:18)/n at successLoader (c://github//ts-loader//dist//index.js:73:9)/n at Object.loader (c://github//ts-loader//dist//index.js:24:5)\");\n\n//# sourceURL=webpack:///./utils/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/output.txt new file mode 100644 index 000000000..c09e07d33 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/output.txt @@ -0,0 +1,21 @@ + Asset Size Chunks Chunk Names + bundle.js 5.14 KiB main [emitted] main + ../lib/fileWithError.d.ts 40 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] +Entrypoint main = bundle.js +[./app.ts] 182 bytes {main} [built] +[./lib/index.ts] 104 bytes {main} [built] +[./utils/index.ts] 485 bytes {main} [built] [failed] [1 error] + +ERROR in ./utils/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for utils\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 4:14-32 + +ERROR in indirectWithError\fileWithError.ts +[tsl] ERROR in indirectWithError\fileWithError.ts(2,5) + TS2322: Type 'false' is not assignable to type 'string'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/bundle.js new file mode 100644 index 000000000..3141fcd5f --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/bundle.js @@ -0,0 +1,137 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar utils_1 = __webpack_require__(/*! ./utils */ \"./utils/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\nutils_1.utils();\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./common/index.ts": +/*!*************************!*\ + !*** ./common/index.ts ***! + \*************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nfunction common() {\r\n return 30;\r\n}\r\nexports.common = common;\r\n\n\n//# sourceURL=webpack:///./common/index.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }), + +/***/ "./utils/index.ts": +/*!************************!*\ + !*** ./utils/index.ts ***! + \************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nvar common_1 = __webpack_require__(/*! ../common */ \"./common/index.ts\");\r\nfunction utils() {\r\n common_1.common();\r\n}\r\nexports.utils = utils;\r\n\n\n//# sourceURL=webpack:///./utils/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/output.txt new file mode 100644 index 000000000..ca3ffe5a0 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/output.txt @@ -0,0 +1,12 @@ + Asset Size Chunks Chunk Names + bundle.js 5.24 KiB main [emitted] main + ../indirectWithError/fileWithError.d.ts 40 bytes [emitted] + ../indirectWithError/index.d.ts 89 bytes [emitted] + ../utils/index.d.ts 40 bytes [emitted] +../indirectWithError/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../utils/tsconfig.tsbuildinfo 68 KiB [emitted] +Entrypoint main = bundle.js +[./app.ts] 182 bytes {main} [built] +[./common/index.ts] 109 bytes {main} [built] +[./lib/index.ts] 104 bytes {main} +[./utils/index.ts] 152 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/bundle.js new file mode 100644 index 000000000..3141fcd5f --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/bundle.js @@ -0,0 +1,137 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar utils_1 = __webpack_require__(/*! ./utils */ \"./utils/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\nutils_1.utils();\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./common/index.ts": +/*!*************************!*\ + !*** ./common/index.ts ***! + \*************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nfunction common() {\r\n return 30;\r\n}\r\nexports.common = common;\r\n\n\n//# sourceURL=webpack:///./common/index.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }), + +/***/ "./utils/index.ts": +/*!************************!*\ + !*** ./utils/index.ts ***! + \************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nvar common_1 = __webpack_require__(/*! ../common */ \"./common/index.ts\");\r\nfunction utils() {\r\n common_1.common();\r\n}\r\nexports.utils = utils;\r\n\n\n//# sourceURL=webpack:///./utils/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/output.txt new file mode 100644 index 000000000..37d274632 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + bundle.js 5.24 KiB main [emitted] main + ../unreferenced/index.d.ts 49 bytes [emitted] +../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] +Entrypoint main = bundle.js +[./app.ts] 182 bytes {main} [built] +[./common/index.ts] 109 bytes {main} +[./lib/index.ts] 104 bytes {main} +[./utils/index.ts] 152 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch3/bundle.js new file mode 100644 index 000000000..3141fcd5f --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch3/bundle.js @@ -0,0 +1,137 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar utils_1 = __webpack_require__(/*! ./utils */ \"./utils/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\nutils_1.utils();\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./common/index.ts": +/*!*************************!*\ + !*** ./common/index.ts ***! + \*************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nfunction common() {\r\n return 30;\r\n}\r\nexports.common = common;\r\n\n\n//# sourceURL=webpack:///./common/index.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }), + +/***/ "./utils/index.ts": +/*!************************!*\ + !*** ./utils/index.ts ***! + \************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nvar common_1 = __webpack_require__(/*! ../common */ \"./common/index.ts\");\r\nfunction utils() {\r\n common_1.common();\r\n}\r\nexports.utils = utils;\r\n\n\n//# sourceURL=webpack:///./utils/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch3/output.txt new file mode 100644 index 000000000..346fffd8c --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch3/output.txt @@ -0,0 +1,11 @@ + Asset Size Chunks Chunk Names +bundle.js 5.24 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 182 bytes {main} [built] +[./common/index.ts] 109 bytes {main} +[./lib/index.ts] 104 bytes {main} +[./utils/index.ts] 152 bytes {main} + +ERROR in unreferencedIndirect\index.ts +[tsl] ERROR in unreferencedIndirect\index.ts(2,3) + TS2322: Type '"i am unreferencedIndirect now is error"' is not assignable to type 'number'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/bundle.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/bundle.js new file mode 100644 index 000000000..3141fcd5f --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/bundle.js @@ -0,0 +1,137 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar utils_1 = __webpack_require__(/*! ./utils */ \"./utils/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\nutils_1.utils();\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./common/index.ts": +/*!*************************!*\ + !*** ./common/index.ts ***! + \*************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nfunction common() {\r\n return 30;\r\n}\r\nexports.common = common;\r\n\n\n//# sourceURL=webpack:///./common/index.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }), + +/***/ "./utils/index.ts": +/*!************************!*\ + !*** ./utils/index.ts ***! + \************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nvar common_1 = __webpack_require__(/*! ../common */ \"./common/index.ts\");\r\nfunction utils() {\r\n common_1.common();\r\n}\r\nexports.utils = utils;\r\n\n\n//# sourceURL=webpack:///./utils/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/output.txt new file mode 100644 index 000000000..5bf7aafad --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + bundle.js 5.24 KiB main [emitted] main + ../unreferencedIndirect/index.d.ts 57 bytes [emitted] +../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] +Entrypoint main = bundle.js +[./app.ts] 182 bytes {main} [built] +[./common/index.ts] 109 bytes {main} +[./lib/index.ts] 104 bytes {main} +[./utils/index.ts] 152 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch5/bundle.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch5/bundle.js new file mode 100644 index 000000000..3141fcd5f --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch5/bundle.js @@ -0,0 +1,137 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar utils_1 = __webpack_require__(/*! ./utils */ \"./utils/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\nutils_1.utils();\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./common/index.ts": +/*!*************************!*\ + !*** ./common/index.ts ***! + \*************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nfunction common() {\r\n return 30;\r\n}\r\nexports.common = common;\r\n\n\n//# sourceURL=webpack:///./common/index.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }), + +/***/ "./utils/index.ts": +/*!************************!*\ + !*** ./utils/index.ts ***! + \************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nvar common_1 = __webpack_require__(/*! ../common */ \"./common/index.ts\");\r\nfunction utils() {\r\n common_1.common();\r\n}\r\nexports.utils = utils;\r\n\n\n//# sourceURL=webpack:///./utils/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch5/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch5/output.txt new file mode 100644 index 000000000..142ed9fd4 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch5/output.txt @@ -0,0 +1,11 @@ + Asset Size Chunks Chunk Names +bundle.js 5.24 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 182 bytes {main} [built] +[./common/index.ts] 109 bytes {main} +[./lib/index.ts] 104 bytes {main} +[./utils/index.ts] 152 bytes {main} + +ERROR in unreferenced\index.ts +[tsl] ERROR in unreferenced\index.ts(2,3) + TS2322: Type '"i am unreferenced with error"' is not assignable to type 'number'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/bundle.js new file mode 100644 index 000000000..8415e05ce --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/bundle.js @@ -0,0 +1,137 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar utils_1 = __webpack_require__(/*! ./utils */ \"./utils/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\nutils_1.utils();\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./common/index.ts": +/*!*************************!*\ + !*** ./common/index.ts ***! + \*************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction common() {\n return 30;\n}\nexports.common = common;\n\n\n//# sourceURL=webpack:///./common/index.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }), + +/***/ "./utils/index.ts": +/*!************************!*\ + !*** ./utils/index.ts ***! + \************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar common_1 = __webpack_require__(/*! ../common */ \"./common/index.ts\");\nfunction utils() {\n common_1.common();\n}\nexports.utils = utils;\n\n\n//# sourceURL=webpack:///./utils/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt new file mode 100644 index 000000000..15cb08751 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt @@ -0,0 +1,13 @@ + Asset Size Chunks Chunk Names +bundle.js 5.35 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 218 bytes {main} [built] [2 errors] +[./common/index.ts] 139 bytes {main} [built] +[./lib/index.ts] 133 bytes {main} [built] +[./utils/index.ts] 181 bytes {main} [built] + +ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5) + TS2322: Type 'false' is not assignable to type 'string'. + +ERROR in [tsl] ERROR in lib\fileWithError.ts(2,5) + TS2322: Type 'false' is not assignable to type 'string'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt new file mode 100644 index 000000000..2e775726d --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt @@ -0,0 +1,10 @@ + Asset Size Chunks Chunk Names +bundle.js 5.35 KiB main main +Entrypoint main = bundle.js +[./app.ts] 218 bytes {main} [built] [1 error] +[./common/index.ts] 139 bytes {main} +[./lib/index.ts] 133 bytes {main} +[./utils/index.ts] 181 bytes {main} + +ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5) + TS2322: Type 'false' is not assignable to type 'string'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt new file mode 100644 index 000000000..7103d84df --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt @@ -0,0 +1,7 @@ + Asset Size Chunks Chunk Names +bundle.js 5.35 KiB main main +Entrypoint main = bundle.js +[./app.ts] 218 bytes {main} [built] +[./common/index.ts] 139 bytes {main} +[./lib/index.ts] 133 bytes {main} +[./utils/index.ts] 181 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch3/output.txt new file mode 100644 index 000000000..449b2a89a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch3/output.txt @@ -0,0 +1,10 @@ + Asset Size Chunks Chunk Names +bundle.js 5.35 KiB main main +Entrypoint main = bundle.js +[./app.ts] 218 bytes {main} [built] [1 error] +[./common/index.ts] 139 bytes {main} +[./lib/index.ts] 133 bytes {main} +[./utils/index.ts] 181 bytes {main} + +ERROR in [tsl] ERROR in unreferencedIndirect\index.ts(2,3) + TS2322: Type '"i am unreferencedIndirect now is error"' is not assignable to type 'number'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch4/output.txt new file mode 100644 index 000000000..13e89eef3 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch4/output.txt @@ -0,0 +1,7 @@ + Asset Size Chunks Chunk Names +bundle.js 5.35 KiB main main +Entrypoint main = bundle.js +[./app.ts] 218 bytes {main} [built] +[./common/index.ts] 139 bytes {main} +[./lib/index.ts] 133 bytes {main} +[./utils/index.ts] 181 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch5/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch5/output.txt new file mode 100644 index 000000000..783ffc726 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch5/output.txt @@ -0,0 +1,10 @@ + Asset Size Chunks Chunk Names +bundle.js 5.35 KiB main main +Entrypoint main = bundle.js +[./app.ts] 218 bytes {main} [built] [1 error] +[./common/index.ts] 139 bytes {main} +[./lib/index.ts] 133 bytes {main} +[./utils/index.ts] 181 bytes {main} + +ERROR in [tsl] ERROR in unreferenced\index.ts(2,3) + TS2322: Type '"i am unreferenced with error"' is not assignable to type 'number'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/indirectWithError/fileWithError.ts b/test/comparison-tests/projectReferencesMultiple/indirectWithError/fileWithError.ts new file mode 100644 index 000000000..0df3311ab --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/indirectWithError/fileWithError.ts @@ -0,0 +1,3 @@ +export function foo(): string { + return false; +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/indirectWithError/index.ts b/test/comparison-tests/projectReferencesMultiple/indirectWithError/index.ts new file mode 100644 index 000000000..669ca7b3d --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/indirectWithError/index.ts @@ -0,0 +1,5 @@ +export const lib = { + one: 1, + two: 2, + three: 3 +}; diff --git a/test/comparison-tests/projectReferencesMultiple/indirectWithError/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/indirectWithError/tsconfig.json new file mode 100644 index 000000000..b3df08516 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/indirectWithError/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "composite": true + } +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/lib/fileWithError.ts b/test/comparison-tests/projectReferencesMultiple/lib/fileWithError.ts new file mode 100644 index 000000000..0df3311ab --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/lib/fileWithError.ts @@ -0,0 +1,3 @@ +export function foo(): string { + return false; +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/lib/index.ts b/test/comparison-tests/projectReferencesMultiple/lib/index.ts new file mode 100644 index 000000000..669ca7b3d --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/lib/index.ts @@ -0,0 +1,5 @@ +export const lib = { + one: 1, + two: 2, + three: 3 +}; diff --git a/test/comparison-tests/projectReferencesMultiple/lib/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/lib/tsconfig.json new file mode 100644 index 000000000..b3df08516 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/lib/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "composite": true + } +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/patch0/lib/fileWithError.ts b/test/comparison-tests/projectReferencesMultiple/patch0/lib/fileWithError.ts new file mode 100644 index 000000000..9c7ffaa4a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/patch0/lib/fileWithError.ts @@ -0,0 +1,3 @@ +export function foo(): string { + return "hello world"; +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/patch1/indirectWithError/fileWithError.ts b/test/comparison-tests/projectReferencesMultiple/patch1/indirectWithError/fileWithError.ts new file mode 100644 index 000000000..950dc3761 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/patch1/indirectWithError/fileWithError.ts @@ -0,0 +1,3 @@ +export function foo(): string { + return "hello i fixed this error"; +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/patch2/unreferenced/index.ts b/test/comparison-tests/projectReferencesMultiple/patch2/unreferenced/index.ts new file mode 100644 index 000000000..14345b5e2 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/patch2/unreferenced/index.ts @@ -0,0 +1,3 @@ +export function unreferenced() { + return "i am unreferenced without error"; +} diff --git a/test/comparison-tests/projectReferencesMultiple/patch3/unreferencedIndirect/index.ts b/test/comparison-tests/projectReferencesMultiple/patch3/unreferencedIndirect/index.ts new file mode 100644 index 000000000..6813358de --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/patch3/unreferencedIndirect/index.ts @@ -0,0 +1,3 @@ +export function unreferencedIndirect(): number { + return "i am unreferencedIndirect now is error"; +} diff --git a/test/comparison-tests/projectReferencesMultiple/patch4/unreferencedIndirect/index.ts b/test/comparison-tests/projectReferencesMultiple/patch4/unreferencedIndirect/index.ts new file mode 100644 index 000000000..3e6f53212 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/patch4/unreferencedIndirect/index.ts @@ -0,0 +1,3 @@ +export function unreferencedIndirect() { + return "i am unreferencedIndirect now fixed error"; +} diff --git a/test/comparison-tests/projectReferencesMultiple/patch5/unreferenced/index.ts b/test/comparison-tests/projectReferencesMultiple/patch5/unreferenced/index.ts new file mode 100644 index 000000000..cfa941c30 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/patch5/unreferenced/index.ts @@ -0,0 +1,3 @@ +export function unreferenced(): number { + return "i am unreferenced with error"; +} diff --git a/test/comparison-tests/projectReferencesMultiple/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/tsconfig.json new file mode 100644 index 000000000..97f04b7ee --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/tsconfig.json @@ -0,0 +1,10 @@ +{ +"files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" }, + { "path": "./utils" }, + { "path": "./unreferenced" }, + ] +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/unreferenced/index.ts b/test/comparison-tests/projectReferencesMultiple/unreferenced/index.ts new file mode 100644 index 000000000..3601112f7 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/unreferenced/index.ts @@ -0,0 +1,3 @@ +export function unreferenced() { + return "i am unreferenced"; +} diff --git a/test/comparison-tests/projectReferencesMultiple/unreferenced/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/unreferenced/tsconfig.json new file mode 100644 index 000000000..fde6864ed --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/unreferenced/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { "path": "../unreferencedIndirect" } + ] +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/index.ts b/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/index.ts new file mode 100644 index 000000000..3ac50dc17 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/index.ts @@ -0,0 +1,3 @@ +export function unreferencedIndirect() { + return "i am unreferencedIndirect"; +} diff --git a/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/tsconfig.json new file mode 100644 index 000000000..b3df08516 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "composite": true + } +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/utils/index.ts b/test/comparison-tests/projectReferencesMultiple/utils/index.ts new file mode 100644 index 000000000..713ee249d --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/utils/index.ts @@ -0,0 +1,4 @@ +import { common } from "../common"; +export function utils() { + common(); +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/utils/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/utils/tsconfig.json new file mode 100644 index 000000000..996b12d7c --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/utils/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { "path": "../common" }, + { "path": "../indirectWithError" } + ] +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/webpack.config.js b/test/comparison-tests/projectReferencesMultiple/webpack.config.js new file mode 100644 index 000000000..a8a142774 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/webpack.config.js @@ -0,0 +1,21 @@ +var path = require('path') + +module.exports = { + mode: 'development', + entry: './app.ts', + output: { + filename: 'bundle.js' + }, + resolve: { + extensions: ['.ts', '.js'] + }, + module: { + rules: [ + { test: /\.ts$/, loader: 'ts-loader', options: { projectReferences: true } } + ] + } +} + +// for test harness purposes only, you would not need this in a normal project +module.exports.resolveLoader = { alias: { 'ts-loader': require('path').join(__dirname, "../../../index.js") } } + diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt index 5bdc311de..9b075a7bc 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names bundle.js 4.39 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} +[./app.ts] 167 bytes {main} [built] [./lib/index.ts] 164 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/output.txt index df2b4fb68..a60242613 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/output.txt @@ -1,5 +1,11 @@ Asset Size Chunks Chunk Names bundle.js 4.43 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 205 bytes {main} -[./lib/index.ts] 168 bytes {main} [built] \ No newline at end of file +[./app.ts] 205 bytes {main} [built] [2 errors] +[./lib/index.ts] 168 bytes {main} [built] + +ERROR in [tsl] ERROR in lib\index.ts(6,3) + TS1136: Property assignment expected. + +ERROR in [tsl] ERROR in lib\index.ts(7,1) + TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt index 2c28f842b..7ff631214 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names bundle.js 4.42 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 205 bytes {main} +[./app.ts] 205 bytes {main} [built] [./lib/index.ts] 160 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/output.txt index 5bdc311de..9b075a7bc 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names bundle.js 4.39 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} +[./app.ts] 167 bytes {main} [built] [./lib/index.ts] 164 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch2/output.txt index df2b4fb68..a60242613 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch2/output.txt @@ -1,5 +1,11 @@ Asset Size Chunks Chunk Names bundle.js 4.43 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 205 bytes {main} -[./lib/index.ts] 168 bytes {main} [built] \ No newline at end of file +[./app.ts] 205 bytes {main} [built] [2 errors] +[./lib/index.ts] 168 bytes {main} [built] + +ERROR in [tsl] ERROR in lib\index.ts(6,3) + TS1136: Property assignment expected. + +ERROR in [tsl] ERROR in lib\index.ts(7,1) + TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/output.txt index 2c28f842b..7ff631214 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names bundle.js 4.42 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 205 bytes {main} +[./app.ts] 205 bytes {main} [built] [./lib/index.ts] 160 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt index 1b5e06e91..d769864b2 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt @@ -4,6 +4,6 @@ ../lib/index.d.ts 89 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js -[./app.ts] 131 bytes {main} +[./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] [./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/output.txt index 89950814d..4a8c14dee 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,6 +1,6 @@ Asset Size Chunks Chunk Names bundle.js 4.9 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} +[./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 149 bytes {main} [built] [./lib/index.ts] 225 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt index 4137e4207..8e5f8001c 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt @@ -4,6 +4,6 @@ ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js -[./app.ts] 131 bytes {main} +[./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt index 82d28664a..ac0689b76 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,6 +1,6 @@ Asset Size Chunks Chunk Names bundle.js 4.9 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} +[./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 136 bytes {main} [./lib/index.ts] 238 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt index 724ac0f9a..a26fe5f90 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt @@ -1,6 +1,6 @@ Asset Size Chunks Chunk Names bundle.js 4.91 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} +[./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 149 bytes {main} [built] [./lib/index.ts] 238 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index e17a418d1..55acfba32 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,8 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.82 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] + ../app.d.ts 12 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../tsconfig.tsbuildinfo 65.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 107 bytes {main} diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt index 4036a0cf2..ade960709 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt @@ -5,6 +5,6 @@ ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js -[./app.ts] 131 bytes {main} +[./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 82d28664a..ac0689b76 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,6 +1,6 @@ Asset Size Chunks Chunk Names bundle.js 4.9 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} +[./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 136 bytes {main} [./lib/index.ts] 238 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt index 724ac0f9a..a26fe5f90 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt @@ -1,6 +1,6 @@ Asset Size Chunks Chunk Names bundle.js 4.91 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} +[./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 149 bytes {main} [built] [./lib/index.ts] 238 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt index 4137e4207..8e5f8001c 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt @@ -4,6 +4,6 @@ ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js -[./app.ts] 131 bytes {main} +[./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 82d28664a..ac0689b76 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,6 +1,6 @@ Asset Size Chunks Chunk Names bundle.js 4.9 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} +[./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 136 bytes {main} [./lib/index.ts] 238 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt index 724ac0f9a..a26fe5f90 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt @@ -1,6 +1,6 @@ Asset Size Chunks Chunk Names bundle.js 4.91 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} +[./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 149 bytes {main} [built] [./lib/index.ts] 238 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index 5bf34afaf..65bb5f0d0 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,10 +1,11 @@ Asset Size Chunks Chunk Names bundle.js 4.82 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] + ../app.d.ts 12 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../tsconfig.tsbuildinfo 65.4 KiB [emitted] Entrypoint main = bundle.js -[./app.ts] 131 bytes {main} +[./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] [./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 89950814d..4a8c14dee 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,6 +1,6 @@ Asset Size Chunks Chunk Names bundle.js 4.9 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} +[./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 149 bytes {main} [built] [./lib/index.ts] 225 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt index 1b5e06e91..d769864b2 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -4,6 +4,6 @@ ../lib/index.d.ts 89 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js -[./app.ts] 131 bytes {main} +[./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] [./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 89950814d..4a8c14dee 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,6 +1,6 @@ Asset Size Chunks Chunk Names bundle.js 4.9 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} +[./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 149 bytes {main} [built] [./lib/index.ts] 225 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index 5a6e0995f..ba8ecb89e 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,8 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] + ../app.d.ts 12 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../tsconfig.tsbuildinfo 65.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt index 70bea34ef..9756f11a2 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt @@ -1,8 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] + ../app.d.ts 12 bytes [emitted] ../lib/index.d.ts 127 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../tsconfig.tsbuildinfo 65.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 5bdc311de..9b075a7bc 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names bundle.js 4.39 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} +[./app.ts] 167 bytes {main} [built] [./lib/index.ts] 164 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch2/output.txt index df2b4fb68..a60242613 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch2/output.txt @@ -1,5 +1,11 @@ Asset Size Chunks Chunk Names bundle.js 4.43 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 205 bytes {main} -[./lib/index.ts] 168 bytes {main} [built] \ No newline at end of file +[./app.ts] 205 bytes {main} [built] [2 errors] +[./lib/index.ts] 168 bytes {main} [built] + +ERROR in [tsl] ERROR in lib\index.ts(6,3) + TS1136: Property assignment expected. + +ERROR in [tsl] ERROR in lib\index.ts(7,1) + TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt index 2c28f842b..7ff631214 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names bundle.js 4.42 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 205 bytes {main} +[./app.ts] 205 bytes {main} [built] [./lib/index.ts] 160 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 5bdc311de..9b075a7bc 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names bundle.js 4.39 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} +[./app.ts] 167 bytes {main} [built] [./lib/index.ts] 164 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch2/output.txt index df2b4fb68..a60242613 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch2/output.txt @@ -1,5 +1,11 @@ Asset Size Chunks Chunk Names bundle.js 4.43 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 205 bytes {main} -[./lib/index.ts] 168 bytes {main} [built] \ No newline at end of file +[./app.ts] 205 bytes {main} [built] [2 errors] +[./lib/index.ts] 168 bytes {main} [built] + +ERROR in [tsl] ERROR in lib\index.ts(6,3) + TS1136: Property assignment expected. + +ERROR in [tsl] ERROR in lib\index.ts(7,1) + TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt index 2c28f842b..7ff631214 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names bundle.js 4.42 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 205 bytes {main} +[./app.ts] 205 bytes {main} [built] [./lib/index.ts] 160 bytes {main} [built] \ No newline at end of file From 0561a9f9d11c33e5c98a457e6ef0f11c5e4fe0e7 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 8 Apr 2020 11:00:34 -0700 Subject: [PATCH 11/20] Get output from solutionBuilder for referenced files in transpileOnly mode as well --- src/index.ts | 21 ++- src/instances.ts | 10 +- .../create-and-execute-test.js | 9 +- .../expectedOutput-transpile-3.8/bundle.js | 2 +- .../expectedOutput-transpile-3.8/bundle.js | 22 +-- .../expectedOutput-transpile-3.8/output.txt | 25 +++- .../patch0/bundle.js | 124 ++++++++++++++++ .../patch0/output.txt | 19 ++- .../patch1/bundle.js | 137 ++++++++++++++++++ .../patch1/output.txt | 10 +- .../expectedOutput-transpile-3.8/bundle.js | 4 +- .../expectedOutput-transpile-3.8/bundle.js | 2 +- .../expectedOutput-transpile-3.8/bundle.js | 2 +- .../expectedOutput-transpile-3.8/bundle.js | 2 +- .../expectedOutput-transpile-3.8/bundle.js | 2 +- .../expectedOutput-transpile-3.8/bundle.js | 2 +- .../expectedOutput-transpile-3.8/bundle.js | 5 +- .../expectedOutput-transpile-3.8/output.txt | 14 +- .../expectedOutput-transpile-3.8/bundle.js | 5 +- .../expectedOutput-transpile-3.8/output.txt | 16 +- .../expectedOutput-transpile-3.8/bundle.js | 5 +- .../expectedOutput-transpile-3.8/output.txt | 14 +- .../expectedOutput-transpile-3.8/bundle.js | 5 +- .../expectedOutput-transpile-3.8/output.txt | 14 +- .../expectedOutput-transpile-3.8/bundle.js | 5 +- .../expectedOutput-transpile-3.8/output.txt | 16 +- .../expectedOutput-transpile-3.8/bundle.js | 5 +- .../expectedOutput-transpile-3.8/output.txt | 14 +- .../expectedOutput-transpile-3.8/bundle.js | 2 +- .../expectedOutput-transpile-3.8/bundle.js | 2 +- .../expectedOutput-transpile-3.8/bundle.js | 2 +- .../patch0/bundle.js | 2 +- .../patch1/bundle.js | 2 +- .../patch2/bundle.js | 2 +- .../patch3/bundle.js | 2 +- .../patch4/bundle.js | 2 +- .../patch5/bundle.js | 2 +- .../expectedOutput-transpile-3.8/bundle.js | 2 +- .../patch0/bundle.js | 2 +- .../patch1/bundle.js | 2 +- .../patch2/bundle.js | 2 +- .../patch3/bundle.js | 2 +- .../patch4/bundle.js | 2 +- .../patch5/bundle.js | 2 +- .../expectedOutput-transpile-3.8/bundle.js | 4 +- .../patch0/bundle.js | 4 +- .../patch1/bundle.js | 4 +- .../expectedOutput-transpile-3.8/bundle.js | 4 +- .../patch0/bundle.js | 4 +- .../patch1/bundle.js | 4 +- .../patch2/bundle.js | 4 +- .../expectedOutput-transpile-3.8/bundle.js | 4 +- .../patch0/bundle.js | 4 +- .../patch1/bundle.js | 4 +- .../patch2/bundle.js | 4 +- .../expectedOutput-transpile-3.8/bundle.js | 4 +- .../patch0/bundle.js | 4 +- .../patch1/bundle.js | 4 +- .../patch2/bundle.js | 4 +- .../expectedOutput-transpile-3.8/bundle.js | 4 +- .../patch0/bundle.js | 4 +- .../patch1/bundle.js | 4 +- .../expectedOutput-transpile-3.8/bundle.js | 4 +- .../patch0/bundle.js | 4 +- .../patch1/bundle.js | 4 +- .../expectedOutput-transpile-3.8/bundle.js | 2 +- .../patch0/bundle.js | 2 +- .../patch1/bundle.js | 2 +- .../patch2/bundle.js | 2 +- .../patch3/bundle.js | 2 +- .../patch4/bundle.js | 2 +- .../patch5/bundle.js | 2 +- .../expectedOutput-transpile-3.8/bundle.js | 2 +- .../patch0/bundle.js | 2 +- .../patch1/bundle.js | 2 +- .../patch2/bundle.js | 2 +- .../patch3/bundle.js | 2 +- .../patch4/bundle.js | 2 +- .../patch5/bundle.js | 2 +- 79 files changed, 493 insertions(+), 162 deletions(-) create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/bundle.js create mode 100644 test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/bundle.js diff --git a/src/index.ts b/src/index.ts index 77b10cd79..a756b97cb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -536,6 +536,12 @@ function getEmit( ).version ); + return getOutputAndSourceMapFromOutputFiles(outputFiles); +} + +function getOutputAndSourceMapFromOutputFiles( + outputFiles: typescript.OutputFile[] +) { const outputFile = outputFiles .filter(file => file.name.match(constants.jsJsx)) .pop(); @@ -630,6 +636,16 @@ function getTranspilationEmit( instance: TSInstance, loaderContext: webpack.loader.LoaderContext ) { + if (isReferencedFile(instance, fileName)) { + const outputFiles = instance.solutionBuilderHost!.getOutputFilesFromReferencedProjectInput( + fileName + ); + addDependenciesFromSolutionBuilder(instance, fileName, file => + loaderContext.addDependency(path.resolve(file)) + ); + return getOutputAndSourceMapFromOutputFiles(outputFiles); + } + const { outputText, sourceMapText, @@ -646,10 +662,7 @@ function getTranspilationEmit( ); // _module.errors is not available inside happypack - see https://github.com/TypeStrong/ts-loader/issues/336 - if ( - !instance.loaderOptions.happyPackMode && - !isReferencedFile(instance, fileName) - ) { + if (!instance.loaderOptions.happyPackMode) { const errors = formatErrors( diagnostics, instance.loaderOptions, diff --git a/src/instances.ts b/src/instances.ts index a5e5d50bf..2442624d0 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -686,14 +686,14 @@ export function getEmitOutput(instance: TSInstance, filePath: string) { if (fileExtensionIs(filePath, instance.compiler.Extension.Dts)) { return []; } + if (isReferencedFile(instance, filePath)) { + return instance.solutionBuilderHost!.getOutputFilesFromReferencedProjectInput( + filePath + ); + } const program = ensureProgram(instance); if (program !== undefined) { const sourceFile = program.getSourceFile(filePath); - if (isReferencedFile(instance, filePath)) { - return instance.solutionBuilderHost!.getOutputFilesFromReferencedProjectInput( - filePath - ); - } const outputFiles: typescript.OutputFile[] = []; const writeFile = ( fileName: string, diff --git a/test/comparison-tests/create-and-execute-test.js b/test/comparison-tests/create-and-execute-test.js index 0a7d37a6b..f3c750ae5 100644 --- a/test/comparison-tests/create-and-execute-test.js +++ b/test/comparison-tests/create-and-execute-test.js @@ -245,7 +245,14 @@ function storeStats(stats, testState, paths) { function compareFiles(paths, test, patch) { if (saveOutputMode) { - copySync(paths.actualOutput, paths.originalExpectedOutput); + const actualFiles = glob.sync('**/*', { cwd: paths.actualOutput, nodir: true }); + actualFiles.forEach(function (file) { + const actual = getNormalisedFileContent(file, paths.actualOutput); + const expected = getNormalisedFileContent(file, paths.expectedOutput); + if (actual !== expected) { + fs.copyFileSync(path.join(paths.actualOutput, file), path.join(paths.originalExpectedOutput, file)); + } + }); } else { // compare actual to expected diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.8/bundle.js index a59c4688b..3c799c9b5 100644 --- a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/bundle.js index 8415e05ce..f12df4940 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/bundle.js @@ -98,27 +98,14 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ }), -/***/ "./common/index.ts": -/*!*************************!*\ - !*** ./common/index.ts ***! - \*************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction common() {\n return 30;\n}\nexports.common = common;\n\n\n//# sourceURL=webpack:///./common/index.ts?"); - -/***/ }), - /***/ "./lib/index.ts": /*!**********************!*\ !*** ./lib/index.ts ***! \**********************/ /*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ (function(module, exports) { -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: TypeScript emitted no output for c://github//ts-loader//.test//projectReferencesMultiple.transpile//lib//index.ts. The most common cause for this is having errors when building referenced projects./n at makeSourceMapAndFinish (c://github//ts-loader//dist//index.js:87:18)/n at successLoader (c://github//ts-loader//dist//index.js:73:9)/n at Object.loader (c://github//ts-loader//dist//index.js:24:5)\");\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }), @@ -127,10 +114,9 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport !*** ./utils/index.ts ***! \************************/ /*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ (function(module, exports) { -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar common_1 = __webpack_require__(/*! ../common */ \"./common/index.ts\");\nfunction utils() {\n common_1.common();\n}\nexports.utils = utils;\n\n\n//# sourceURL=webpack:///./utils/index.ts?"); +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: TypeScript emitted no output for c://github//ts-loader//.test//projectReferencesMultiple.transpile//utils//index.ts. The most common cause for this is having errors when building referenced projects./n at makeSourceMapAndFinish (c://github//ts-loader//dist//index.js:87:18)/n at successLoader (c://github//ts-loader//dist//index.js:73:9)/n at Object.loader (c://github//ts-loader//dist//index.js:24:5)\");\n\n//# sourceURL=webpack:///./utils/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt index 15cb08751..76c842f58 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt @@ -1,13 +1,28 @@ Asset Size Chunks Chunk Names -bundle.js 5.35 KiB main [emitted] main +bundle.js 5.57 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] [2 errors] -[./common/index.ts] 139 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] -[./utils/index.ts] 181 bytes {main} [built] +[./lib/index.ts] 493 bytes {main} [built] [failed] [1 error] +[./utils/index.ts] 495 bytes {main} [built] [failed] [1 error] ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. ERROR in [tsl] ERROR in lib\fileWithError.ts(2,5) - TS2322: Type 'false' is not assignable to type 'string'. \ No newline at end of file + TS2322: Type 'false' is not assignable to type 'string'. + +ERROR in ./lib/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 3:12-28 + +ERROR in ./utils/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for utils\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 4:14-32 \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/bundle.js new file mode 100644 index 000000000..c97f16047 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/bundle.js @@ -0,0 +1,124 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar utils_1 = __webpack_require__(/*! ./utils */ \"./utils/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\nutils_1.utils();\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }), + +/***/ "./utils/index.ts": +/*!************************!*\ + !*** ./utils/index.ts ***! + \************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: TypeScript emitted no output for c://github//ts-loader//.test//projectReferencesMultiple.transpile//utils//index.ts. The most common cause for this is having errors when building referenced projects./n at makeSourceMapAndFinish (c://github//ts-loader//dist//index.js:87:18)/n at successLoader (c://github//ts-loader//dist//index.js:73:9)/n at Object.loader (c://github//ts-loader//dist//index.js:24:5)\");\n\n//# sourceURL=webpack:///./utils/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt index 2e775726d..de930b783 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,10 +1,17 @@ - Asset Size Chunks Chunk Names -bundle.js 5.35 KiB main main + Asset Size Chunks Chunk Names +bundle.js 5.19 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] [1 error] -[./common/index.ts] 139 bytes {main} -[./lib/index.ts] 133 bytes {main} -[./utils/index.ts] 181 bytes {main} +[./lib/index.ts] 104 bytes {main} [built] +[./utils/index.ts] 495 bytes {main} [built] [failed] [1 error] ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5) - TS2322: Type 'false' is not assignable to type 'string'. \ No newline at end of file + TS2322: Type 'false' is not assignable to type 'string'. + +ERROR in ./utils/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for utils\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 4:14-32 \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/bundle.js new file mode 100644 index 000000000..6cf43eb7b --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/bundle.js @@ -0,0 +1,137 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar utils_1 = __webpack_require__(/*! ./utils */ \"./utils/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\nutils_1.utils();\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./common/index.ts": +/*!*************************!*\ + !*** ./common/index.ts ***! + \*************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nfunction common() {\r\n return 30;\r\n}\r\nexports.common = common;\r\n\n\n//# sourceURL=webpack:///./common/index.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }), + +/***/ "./utils/index.ts": +/*!************************!*\ + !*** ./utils/index.ts ***! + \************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nvar common_1 = __webpack_require__(/*! ../common */ \"./common/index.ts\");\r\nfunction utils() {\r\n common_1.common();\r\n}\r\nexports.utils = utils;\r\n\n\n//# sourceURL=webpack:///./utils/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt index 7103d84df..296e1b6f8 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt @@ -1,7 +1,7 @@ - Asset Size Chunks Chunk Names -bundle.js 5.35 KiB main main + Asset Size Chunks Chunk Names +bundle.js 5.27 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] -[./common/index.ts] 139 bytes {main} -[./lib/index.ts] 133 bytes {main} -[./utils/index.ts] 181 bytes {main} [built] \ No newline at end of file +[./common/index.ts] 109 bytes {main} [built] +[./lib/index.ts] 104 bytes {main} +[./utils/index.ts] 152 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.8/bundle.js index a5f3848a9..70a05d82f 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.foo = 'foo';\n\n\n//# sourceURL=webpack:///./lib/foo.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.foo = 'foo';\r\n\n\n//# sourceURL=webpack:///./lib/foo.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar foo_1 = __webpack_require__(/*! ./foo */ \"./lib/foo.ts\");\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n foo: foo_1.foo\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar foo_1 = __webpack_require__(/*! ./foo */ \"./lib/foo.ts\");\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n foo: foo_1.foo\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.8/bundle.js index a59c4688b..3c799c9b5 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js index a59c4688b..3c799c9b5 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.8/bundle.js index 6cc3ae78e..bb805dd67 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js index 6cc3ae78e..bb805dd67 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.8/bundle.js index 6cc3ae78e..bb805dd67 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-transpile-3.8/bundle.js index 12b30effa..c49e3d931 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-transpile-3.8/bundle.js @@ -103,10 +103,9 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li !*** ./lib/index.ts ***! \**********************/ /*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ (function(module, exports) { -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\nvar y = 10;\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: TypeScript emitted no output for c://github//ts-loader//.test//projectReferencesNotBuilt_SemanticErrorInReference.transpile//lib//index.ts. The most common cause for this is having errors when building referenced projects./n at makeSourceMapAndFinish (c://github//ts-loader//dist//index.js:87:18)/n at successLoader (c://github//ts-loader//dist//index.js:73:9)/n at Object.loader (c://github//ts-loader//dist//index.js:24:5)\");\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-transpile-3.8/output.txt index c696028f0..b6a02f4ad 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/expectedOutput-transpile-3.8/output.txt @@ -1,8 +1,16 @@ Asset Size Chunks Chunk Names -bundle.js 4.37 KiB main [emitted] main +bundle.js 4.74 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [1 error] -[./lib/index.ts] 145 bytes {main} [built] +[./lib/index.ts] 518 bytes {main} [built] [failed] [1 error] ERROR in [tsl] ERROR in lib\index.ts(6,7) - TS2322: Type '10' is not assignable to type 'string'. \ No newline at end of file + TS2322: Type '10' is not assignable to type 'string'. + +ERROR in ./lib/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 3:12-28 \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js index 12b30effa..29a1495a0 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -103,10 +103,9 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li !*** ./lib/index.ts ***! \**********************/ /*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ (function(module, exports) { -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\nvar y = 10;\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: TypeScript emitted no output for c://github//ts-loader//.test//projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi.transpile//lib//index.ts. The most common cause for this is having errors when building referenced projects./n at makeSourceMapAndFinish (c://github//ts-loader//dist//index.js:87:18)/n at successLoader (c://github//ts-loader//dist//index.js:73:9)/n at Object.loader (c://github//ts-loader//dist//index.js:24:5)\");\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt index 237768484..9ba3b5891 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,8 +1,16 @@ Asset Size Chunks Chunk Names -bundle.js 4.37 KiB main [emitted] main +bundle.js 4.76 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [1 error] -[./lib/index.ts] 145 bytes {main} [built] +[./lib/index.ts] 537 bytes {main} [built] [failed] [1 error] -ERROR in [tsl] ERROR in lib\index.ts(6,7) - TS2322: Type '10' is not assignable to type 'string'. \ No newline at end of file +ERROR in [tsl] ERROR in lib\index.ts(6,7) + TS2322: Type '10' is not assignable to type 'string'. + +ERROR in ./lib/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 3:12-28 \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-transpile-3.8/bundle.js index 12b30effa..e370ce74d 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -103,10 +103,9 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li !*** ./lib/index.ts ***! \**********************/ /*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ (function(module, exports) { -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\nvar y = 10;\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: TypeScript emitted no output for c://github//ts-loader//.test//projectReferencesNotBuilt_SemanticErrorInReference_WatchApi.transpile//lib//index.ts. The most common cause for this is having errors when building referenced projects./n at makeSourceMapAndFinish (c://github//ts-loader//dist//index.js:87:18)/n at successLoader (c://github//ts-loader//dist//index.js:73:9)/n at Object.loader (c://github//ts-loader//dist//index.js:24:5)\");\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt index c696028f0..8030ed7c8 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,8 +1,16 @@ Asset Size Chunks Chunk Names -bundle.js 4.37 KiB main [emitted] main +bundle.js 4.75 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [1 error] -[./lib/index.ts] 145 bytes {main} [built] +[./lib/index.ts] 527 bytes {main} [built] [failed] [1 error] ERROR in [tsl] ERROR in lib\index.ts(6,7) - TS2322: Type '10' is not assignable to type 'string'. \ No newline at end of file + TS2322: Type '10' is not assignable to type 'string'. + +ERROR in ./lib/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 3:12-28 \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-transpile-3.8/bundle.js index cf22a4206..45fa337aa 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-transpile-3.8/bundle.js @@ -103,10 +103,9 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li !*** ./lib/index.ts ***! \**********************/ /*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ (function(module, exports) { -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: TypeScript emitted no output for c://github//ts-loader//.test//projectReferencesNotBuilt_SyntaxErrorInReference.transpile//lib//index.ts. The most common cause for this is having errors when building referenced projects./n at makeSourceMapAndFinish (c://github//ts-loader//dist//index.js:87:18)/n at successLoader (c://github//ts-loader//dist//index.js:73:9)/n at Object.loader (c://github//ts-loader//dist//index.js:24:5)\");\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-transpile-3.8/output.txt index b247cbbdc..3a2d8b229 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/expectedOutput-transpile-3.8/output.txt @@ -1,8 +1,16 @@ Asset Size Chunks Chunk Names -bundle.js 4.36 KiB main [emitted] main +bundle.js 4.74 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [1 error] -[./lib/index.ts] 134 bytes {main} [built] +[./lib/index.ts] 516 bytes {main} [built] [failed] [1 error] ERROR in [tsl] ERROR in lib\index.ts(4,12) - TS1136: Property assignment expected. \ No newline at end of file + TS1136: Property assignment expected. + +ERROR in ./lib/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 3:12-28 \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js index cf22a4206..4518f301e 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -103,10 +103,9 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li !*** ./lib/index.ts ***! \**********************/ /*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ (function(module, exports) { -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: TypeScript emitted no output for c://github//ts-loader//.test//projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi.transpile//lib//index.ts. The most common cause for this is having errors when building referenced projects./n at makeSourceMapAndFinish (c://github//ts-loader//dist//index.js:87:18)/n at successLoader (c://github//ts-loader//dist//index.js:73:9)/n at Object.loader (c://github//ts-loader//dist//index.js:24:5)\");\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt index 1fdad5f13..4805eefbb 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,8 +1,16 @@ Asset Size Chunks Chunk Names -bundle.js 4.36 KiB main [emitted] main +bundle.js 4.76 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [1 error] -[./lib/index.ts] 134 bytes {main} [built] +[./lib/index.ts] 535 bytes {main} [built] [failed] [1 error] -ERROR in [tsl] ERROR in lib\index.ts(4,12) - TS1136: Property assignment expected. \ No newline at end of file +ERROR in [tsl] ERROR in lib\index.ts(4,12) + TS1136: Property assignment expected. + +ERROR in ./lib/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 3:12-28 \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-transpile-3.8/bundle.js index cf22a4206..09e2fc8da 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -103,10 +103,9 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li !*** ./lib/index.ts ***! \**********************/ /*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ (function(module, exports) { -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: TypeScript emitted no output for c://github//ts-loader//.test//projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi.transpile//lib//index.ts. The most common cause for this is having errors when building referenced projects./n at makeSourceMapAndFinish (c://github//ts-loader//dist//index.js:87:18)/n at successLoader (c://github//ts-loader//dist//index.js:73:9)/n at Object.loader (c://github//ts-loader//dist//index.js:24:5)\");\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt index b247cbbdc..0fdc347cf 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,8 +1,16 @@ Asset Size Chunks Chunk Names -bundle.js 4.36 KiB main [emitted] main +bundle.js 4.75 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [1 error] -[./lib/index.ts] 134 bytes {main} [built] +[./lib/index.ts] 525 bytes {main} [built] [failed] [1 error] ERROR in [tsl] ERROR in lib\index.ts(4,12) - TS1136: Property assignment expected. \ No newline at end of file + TS1136: Property assignment expected. + +ERROR in ./lib/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 3:12-28 \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.8/bundle.js index a59c4688b..3c799c9b5 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.8/bundle.js index a59c4688b..3c799c9b5 100644 --- a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js index a59c4688b..3c799c9b5 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/bundle.js index b8a11c082..dd819fcfc 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch1/bundle.js index 4bfa7680a..edc165433 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch1/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/bundle.js index 3ce80b633..edc165433 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch2/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n} // Add new number\n;\n;\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/bundle.js index dd7a8066e..659fba3e4 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch4/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch4/bundle.js index 160d4488f..a60eee078 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch4/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch5/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch5/bundle.js index 9a42c42f7..8f0add3cc 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch5/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/bundle.js index a59c4688b..3c799c9b5 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/bundle.js index b8a11c082..dd819fcfc 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch1/bundle.js index 4bfa7680a..edc165433 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch1/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch2/bundle.js index 3ce80b633..edc165433 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch2/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n} // Add new number\n;\n;\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/bundle.js index dd7a8066e..659fba3e4 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch4/bundle.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch4/bundle.js index 160d4488f..a60eee078 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch4/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch5/bundle.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch5/bundle.js index 9a42c42f7..8f0add3cc 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch5/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/bundle.js index 958994b3b..820866611 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/bundle.js index 9b67527c2..16955d634 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch1/bundle.js index f4b1a4280..1a3b535ff 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch1/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/bundle.js index 958994b3b..820866611 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js index b43d2a289..a7014013d 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/bundle.js index 489621be1..d8c1cbcfe 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch2/bundle.js index 448f9dade..ca8971b44 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch2/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js index 958994b3b..820866611 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js index b43d2a289..a7014013d 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js index 489621be1..d8c1cbcfe 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js index 448f9dade..ca8971b44 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/bundle.js index 958994b3b..820866611 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js index b43d2a289..a7014013d 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js index 489621be1..d8c1cbcfe 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js index 448f9dade..ca8971b44 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js index 958994b3b..820866611 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js index 9b67527c2..16955d634 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js index f4b1a4280..1a3b535ff 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/bundle.js index 958994b3b..820866611 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js index 9b67527c2..16955d634 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js index f4b1a4280..1a3b535ff 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\nexports.lib = {\n one: helper_1.helper.one,\n two: helper_1.helper.two,\n three: helper_1.helper.three\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./lib/helper.ts\");\r\nexports.lib = {\r\n one: helper_1.helper.one,\r\n two: helper_1.helper.two,\r\n three: helper_1.helper.three\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js index a59c4688b..3c799c9b5 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js index b8a11c082..dd819fcfc 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js index 4bfa7680a..edc165433 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js index 3ce80b633..edc165433 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n} // Add new number\n;\n;\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/bundle.js index dd7a8066e..659fba3e4 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch4/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch4/bundle.js index 160d4488f..a60eee078 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch4/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch5/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch5/bundle.js index 9a42c42f7..8f0add3cc 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch5/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/bundle.js index a59c4688b..3c799c9b5 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js index b8a11c082..dd819fcfc 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js index 4bfa7680a..edc165433 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch1/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js index 3ce80b633..edc165433 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch2/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n} // Add new number\n;\n;\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/bundle.js index dd7a8066e..659fba3e4 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch4/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch4/bundle.js index 160d4488f..a60eee078 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch4/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch5/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch5/bundle.js index 9a42c42f7..8f0add3cc 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch5/bundle.js @@ -106,7 +106,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar li /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5,\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) From eb4b4fca3063ba61fbae003141bb9e47e68c944a Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 9 Apr 2020 11:41:19 -0700 Subject: [PATCH 12/20] Read and write output files from referenced projects to disk --- src/after-compile.ts | 31 +++---- src/index.ts | 93 +++++++++++++------ src/instances.ts | 13 +-- src/interfaces.ts | 9 +- src/servicesHost.ts | 92 +++++++++--------- .../expectedOutput-3.8/output.txt | 10 +- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../expectedOutput-3.8/output.txt | 19 ++-- .../expectedOutput-3.8/patch0/output.txt | 12 ++- .../expectedOutput-3.8/patch1/output.txt | 17 ++-- .../expectedOutput-3.8/patch2/output.txt | 9 +- .../expectedOutput-3.8/patch4/output.txt | 9 +- .../expectedOutput-transpile-3.8/output.txt | 13 ++- .../patch0/output.txt | 9 +- .../patch1/output.txt | 12 ++- .../patch4/output.txt | 13 ++- .../expectedOutput-3.8/output.txt | 4 +- .../expectedOutput-transpile-3.8/output.txt | 13 ++- .../expectedOutput-3.8/output.txt | 10 +- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../expectedOutput-3.8/output.txt | 14 +-- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../expectedOutput-3.8/output.txt | 12 ++- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../expectedOutput-3.8/output.txt | 14 +-- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../expectedOutput-3.8/output.txt | 12 ++- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../expectedOutput-3.8/output.txt | 10 +- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../expectedOutput-3.8/output.txt | 10 +- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../expectedOutput-3.8/output.txt | 10 +- .../expectedOutput-3.8/patch0/output.txt | 4 +- .../expectedOutput-3.8/patch3/output.txt | 4 +- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../patch0/output.txt | 10 +- .../patch3/output.txt | 10 +- .../expectedOutput-3.8/output.txt | 10 +- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../expectedOutput-3.8/output.txt | 10 +- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../expectedOutput-3.8/output.txt | 10 +- .../expectedOutput-3.8/patch0/output.txt | 4 +- .../expectedOutput-3.8/patch3/output.txt | 4 +- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../patch0/output.txt | 10 +- .../patch3/output.txt | 10 +- .../expectedOutput-3.8/output.txt | 14 ++- .../expectedOutput-3.8/patch0/output.txt | 6 +- .../expectedOutput-transpile-3.8/output.txt | 15 ++- .../patch0/output.txt | 15 ++- .../expectedOutput-3.8/output.txt | 11 +-- .../expectedOutput-3.8/patch0/output.txt | 9 +- .../expectedOutput-3.8/patch1/output.txt | 6 +- .../patch0/output.txt | 15 ++- .../patch1/output.txt | 15 ++- .../expectedOutput-3.8/output.txt | 15 ++- .../expectedOutput-3.8/patch0/output.txt | 12 ++- .../expectedOutput-3.8/patch1/output.txt | 6 +- .../patch0/output.txt | 15 ++- .../patch1/output.txt | 15 ++- .../expectedOutput-3.8/output.txt | 11 +-- .../expectedOutput-3.8/patch0/output.txt | 9 +- .../expectedOutput-3.8/patch1/output.txt | 6 +- .../patch0/output.txt | 15 ++- .../patch1/output.txt | 15 ++- .../expectedOutput-3.8/output.txt | 18 ++-- .../expectedOutput-3.8/patch0/output.txt | 9 +- .../expectedOutput-transpile-3.8/output.txt | 15 ++- .../patch0/output.txt | 15 ++- .../expectedOutput-3.8/output.txt | 14 ++- .../expectedOutput-3.8/patch0/output.txt | 6 +- .../expectedOutput-transpile-3.8/output.txt | 15 ++- .../patch0/output.txt | 15 ++- .../expectedOutput-3.8/output.txt | 14 +-- .../expectedOutput-3.8/patch0/output.txt | 7 +- .../expectedOutput-3.8/patch3/output.txt | 7 +- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../patch0/output.txt | 10 +- .../patch3/output.txt | 10 +- .../expectedOutput-3.8/output.txt | 10 +- .../expectedOutput-3.8/patch0/output.txt | 4 +- .../expectedOutput-3.8/patch3/output.txt | 4 +- .../expectedOutput-transpile-3.8/output.txt | 10 +- .../patch0/output.txt | 10 +- .../patch3/output.txt | 10 +- 87 files changed, 719 insertions(+), 395 deletions(-) diff --git a/src/after-compile.ts b/src/after-compile.ts index 8fa9da180..d64128327 100644 --- a/src/after-compile.ts +++ b/src/after-compile.ts @@ -39,6 +39,12 @@ export function makeAfterCompile( return; } + if (instance.loaderOptions.transpileOnly) { + provideAssetsFromSolutionBuilderHost(instance, compilation); + callback(); + return; + } + removeTSLoaderErrors(compilation.errors); provideCompilerOptionDiagnosticErrorsToWebpack( @@ -418,23 +424,14 @@ function provideAssetsFromSolutionBuilderHost( ) { if (instance.solutionBuilderHost) { // written files - addDeclarationFilesAsAsset( - instance.solutionBuilderHost.outputFiles.values(), - compilation, - outputFile => !outputFile.isNew - ); - // tsbuild infos - outputFilesToAsset( - instance.solutionBuilderHost.tsbuildinfos.values(), - compilation, - outputFile => !outputFile.isNew - ); - instance.solutionBuilderHost.outputFiles.forEach( - outputFile => (outputFile.isNew = false) - ); - instance.solutionBuilderHost.tsbuildinfos.forEach( - outputFile => (outputFile.isNew = false) - ); + for (const outputFile of instance.solutionBuilderHost.outputFiles.values()) { + if (outputFile) { + if (outputFile.isNew) { + outputFileToAsset(outputFile, compilation); + } + outputFile.isNew = false; + } + } } } diff --git a/src/index.ts b/src/index.ts index a756b97cb..fbe75eaff 100644 --- a/src/index.ts +++ b/src/index.ts @@ -563,8 +563,26 @@ function addDependenciesFromSolutionBuilder( if (!instance.solutionBuilderHost) { return; } + // Add all the input files from the references as const resolvedFilePath = path.resolve(filePath); + if (!isReferencedFile(instance, filePath)) { + if ( + instance.configParseResult.fileNames.some( + f => path.resolve(f) === resolvedFilePath + ) + ) { + addDependenciesFromProjectReferences( + instance, + path.resolve(instance.configFilePath!), + instance.configParseResult.projectReferences, + addDependency + ); + } + return; + } + + // Referenced file find the config for it for (const [ configFile, configInfo @@ -588,40 +606,57 @@ function addDependenciesFromSolutionBuilder( continue; } - // This is the config for the input file - const seenMap = new Map(); - seenMap.set(configFile, true); - // Depend on all the dts files from the program if (configInfo.dtsFiles) { configInfo.dtsFiles.forEach(addDependency); } + addDependenciesFromProjectReferences( + instance, + configFile, + configInfo.config.projectReferences, + addDependency + ); + break; + } +} - // Add dependencies to all the input files from the project reference files since building them - const queue = configInfo.config.projectReferences.slice(); - while (true) { - const currentRef = queue.pop(); - if (!currentRef) { - break; - } - const refConfigFile = path.resolve( - instance.compiler.resolveProjectReferencePath(currentRef) - ); - if (seenMap.has(refConfigFile)) { - continue; - } - const refConfigInfo = instance.solutionBuilderHost.configFileInfo.get( - refConfigFile - ); - if (!refConfigInfo) { - continue; - } - seenMap.set(refConfigFile, true); - if (refConfigInfo.config) { - refConfigInfo.config.fileNames.forEach(addDependency); - if (refConfigInfo.config.projectReferences) { - queue.push(...refConfigInfo.config.projectReferences); - } +function addDependenciesFromProjectReferences( + instance: TSInstance, + configFile: string, + projectReferences: readonly typescript.ProjectReference[] | undefined, + addDependency: (file: string) => void +) { + if (!projectReferences || !projectReferences.length) { + return; + } + // This is the config for the input file + const seenMap = new Map(); + seenMap.set(configFile, true); + + // Add dependencies to all the input files from the project reference files since building them + const queue = projectReferences.slice(); + while (true) { + const currentRef = queue.pop(); + if (!currentRef) { + break; + } + const refConfigFile = path.resolve( + instance.compiler.resolveProjectReferencePath(currentRef) + ); + if (seenMap.has(refConfigFile)) { + continue; + } + const refConfigInfo = instance.solutionBuilderHost!.configFileInfo.get( + refConfigFile + ); + if (!refConfigInfo) { + continue; + } + seenMap.set(refConfigFile, true); + if (refConfigInfo.config) { + refConfigInfo.config.fileNames.forEach(addDependency); + if (refConfigInfo.config.projectReferences) { + queue.push(...refConfigInfo.config.projectReferences); } } } diff --git a/src/instances.ts b/src/instances.ts index 2442624d0..c8b99c1e5 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -277,6 +277,10 @@ export function initializeInstance( instance.transformers = getCustomTransformers(program); // Setup watch run for solution building if (instance.solutionBuilderHost) { + loader._compiler.hooks.afterCompile.tapAsync( + 'ts-loader', + makeAfterCompile(instance, instance.configFilePath) + ); loader._compiler.hooks.watchRun.tapAsync( 'ts-loader', makeWatchRun(instance) @@ -398,10 +402,10 @@ export function buildSolutionReferences( ); instance.solutionBuilder = instance.compiler.createSolutionBuilderWithWatch( instance.solutionBuilderHost, - [instance.configFilePath!], + instance.configParseResult.projectReferences!.map(ref => ref.path), { verbose: true } ); - instance.solutionBuilder!.buildReferences(instance.configFilePath!); + instance.solutionBuilder!.build(); ensureAllReferences(instance); } else { instance.solutionBuilderHost.buildReferences(); @@ -410,11 +414,8 @@ export function buildSolutionReferences( function ensureAllReferences(instance: TSInstance) { // Return result from the json without errors so that the extra errors from config are digested here - const rootConfigInfo = instance.solutionBuilderHost!.configFileInfo.get( - instance.configFilePath! - ); for (const configInfo of instance.solutionBuilderHost!.configFileInfo.values()) { - if (configInfo === rootConfigInfo || !configInfo.config) { + if (!configInfo.config) { continue; } // Load all the input files diff --git a/src/interfaces.ts b/src/interfaces.ts index 7a56191d7..1fd864f16 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -89,8 +89,7 @@ export interface SolutionBuilderWithWatchHost >, WatchFactory { diagnostics: SolutionDiagnostics; - outputFiles: Map; - tsbuildinfos: Map; + outputFiles: Map; configFileInfo: Map; outputAffectingInstanceVersion: Map; getOutputFileFromReferencedProject( @@ -162,11 +161,7 @@ export interface TSInstance { configFilePath: string | undefined; initialSetupPending: boolean; - configParseResult: { - options: typescript.CompilerOptions; - fileNames: string[]; - projectReferences?: ReadonlyArray; - }; + configParseResult: typescript.ParsedCommandLine; log: logger.Logger; } diff --git a/src/servicesHost.ts b/src/servicesHost.ts index f63d6cf29..bdf1b9384 100644 --- a/src/servicesHost.ts +++ b/src/servicesHost.ts @@ -695,8 +695,7 @@ export function makeSolutionBuilderHost( compiler.sys.newLine )}${newLine + newLine}` ); - const tsbuildinfos = new Map(); - const outputFiles = new Map(); + const outputFiles = new Map(); const outputAffectingInstanceVersion = new Map(); let timeoutId: [(...args: any[]) => void, any[]] | undefined; @@ -715,7 +714,7 @@ export function makeSolutionBuilderHost( getCurrentDirectory, // behave as if there is no tsbuild info on disk since we want to generate all outputs in memory and only use those readFile: (fileName, encoding) => { - const outputFile = getOutputFileFromReferencedProject(fileName); + const outputFile = ensureOutputFile(fileName); return outputFile !== undefined ? outputFile ? outputFile.text @@ -724,10 +723,9 @@ export function makeSolutionBuilderHost( }, writeFile: (name, text, writeByteOrderMark) => { updateFileWithText(instance, name, () => text); - const map = name.endsWith('.tsbuildinfo') ? tsbuildinfos : outputFiles; const resolvedFileName = path.resolve(name); - const existing = map.get(resolvedFileName); - map.set(resolvedFileName, { + const existing = outputFiles.get(resolvedFileName); + outputFiles.set(resolvedFileName, { name, text, writeByteOrderMark: !!writeByteOrderMark, @@ -747,7 +745,7 @@ export function makeSolutionBuilderHost( } }, getModifiedTime: fileName => { - const outputFile = getOutputFileFromReferencedProject(fileName); + const outputFile = ensureOutputFile(fileName); if (outputFile !== undefined) { return outputFile ? outputFile.time : undefined; } @@ -759,14 +757,13 @@ export function makeSolutionBuilderHost( : compiler.sys.getModifiedTime!(fileName); }, setModifiedTime: (fileName, time) => { - const outputFile = getOutputFileFromReferencedProject(fileName); + const outputFile = ensureOutputFile(fileName); if (outputFile !== undefined) { if (outputFile) { outputFile.time = time; } - } else { - compiler.sys.setModifiedTime!(fileName, time); } + compiler.sys.setModifiedTime!(fileName, time); const existing = instance.files.get(path.resolve(fileName)) || instance.otherFiles.get(path.resolve(fileName)); @@ -775,7 +772,7 @@ export function makeSolutionBuilderHost( } }, fileExists: fileName => { - const outputFile = getOutputFileFromReferencedProject(fileName); + const outputFile = ensureOutputFile(fileName); if (outputFile !== undefined) { return !!outputFile; } @@ -796,11 +793,6 @@ export function makeSolutionBuilderHost( return true; } } - for (const tsbuildInfo of tsbuildinfos.keys()) { - if (normalizeSlashes(tsbuildInfo).startsWith(resolvedDirectory)) { - return true; - } - } return false; }, afterProgramEmitAndDiagnostics: transpileOnly ? undefined : storeDtsFiles, @@ -812,7 +804,6 @@ export function makeSolutionBuilderHost( timeoutId = undefined; }, outputFiles, - tsbuildinfos, configFileInfo, outputAffectingInstanceVersion, getOutputFileFromReferencedProject, @@ -886,19 +877,12 @@ export function makeSolutionBuilderHost( } } - function findOutputFile(fileName: string) { - const resolvedFileName = path.resolve(fileName); - return fileName.endsWith('.tsbuildinfo') - ? tsbuildinfos.get(resolvedFileName) - : outputFiles.get(resolvedFileName); - } - function getInputFileNameFromOutput( outputFileName: string ): string | true | undefined { const resolvedFileName = path.resolve(outputFileName); - for (const [configFile, configInfo] of configFileInfo.entries()) { - ensureInputOutputInfo(configFile, configInfo); + for (const configInfo of configFileInfo.values()) { + ensureInputOutputInfo(configInfo); if (configInfo.outputFileNames) { for (const [ inputFileName, @@ -919,19 +903,8 @@ export function makeSolutionBuilderHost( return undefined; } - function isOutputFromReferencedProject(fileName: string) { - return !!getInputFileNameFromOutput(fileName); - } - - function ensureInputOutputInfo( - configFile: string, - configInfo: ConfigFileInfo - ) { - if ( - configInfo.outputFileNames || - !configInfo.config || - path.resolve(configFile) === path.resolve(instance.configFilePath!) - ) { + function ensureInputOutputInfo(configInfo: ConfigFileInfo) { + if (configInfo.outputFileNames || !configInfo.config) { return; } configInfo.outputFileNames = new Map(); @@ -958,22 +931,49 @@ export function makeSolutionBuilderHost( function getOutputFileFromReferencedProject( outputFileName: string ): OutputFile | false | undefined { - return ( - findOutputFile(outputFileName) || - (isOutputFromReferencedProject(outputFileName) ? false : undefined) - ); + const resolvedFileName = path.resolve(outputFileName); + return outputFiles.get(resolvedFileName); + } + + function ensureOutputFile( + outputFileName: string, + encoding?: string + ): OutputFile | false | undefined { + const outputFile = getOutputFileFromReferencedProject(outputFileName); + if (outputFile !== undefined) { + return outputFile; + } + if (!getInputFileNameFromOutput(outputFileName)) { + return undefined; + } + const resolvedFileName = path.resolve(outputFileName); + const text = compiler.sys.readFile(outputFileName, encoding); + if (text === undefined) { + outputFiles.set(resolvedFileName, false); + return false; + } + const newOutputFile: OutputFile = { + name: outputFileName, + text, + writeByteOrderMark: false, + time: compiler.sys.getModifiedTime!(outputFileName)!, + isNew: false, + version: 0 + }; + outputFiles.set(resolvedFileName, newOutputFile); + return newOutputFile; } function getOutputFilesFromReferencedProjectInput(inputFileName: string) { const resolvedFileName = path.resolve(inputFileName); - for (const [configFile, configInfo] of configFileInfo.entries()) { - ensureInputOutputInfo(configFile, configInfo); + for (const configInfo of configFileInfo.values()) { + ensureInputOutputInfo(configInfo); if (configInfo.outputFileNames) { const result = configInfo.outputFileNames.get(resolvedFileName); if (result) { return result .map(outputFile => outputFiles.get(outputFile)!) - .filter(output => !!output); + .filter(output => !!output) as OutputFile[]; } } } diff --git a/test/comparison-tests/projectReferences/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferences/expectedOutput-3.8/output.txt index d3e7545db..3abfad665 100644 --- a/test/comparison-tests/projectReferences/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferences/expectedOutput-3.8/output.txt @@ -1,7 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.29 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.8/output.txt index f31c64018..f798b82b8 100644 --- a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.35 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/output.txt index bee6c0c9e..0841f4054 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/output.txt @@ -1,11 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 5.52 KiB main [emitted] main - ../common/index.d.ts 43 bytes [emitted] - ../unreferencedIndirect/index.d.ts 57 bytes [emitted] - ../unreferenced/index.d.ts 49 bytes [emitted] - ../common/tsconfig.tsbuildinfo 67.4 KiB [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.52 KiB main [emitted] main + ../common/index.js 109 bytes [emitted] + ../common/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../common/index.d.ts 43 bytes [emitted] + ../unreferencedIndirect/index.js 176 bytes [emitted] +../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../unreferencedIndirect/index.d.ts 57 bytes [emitted] + ../unreferenced/index.js 144 bytes [emitted] + ../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../unreferenced/index.d.ts 49 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] [./lib/index.ts] 483 bytes {main} [built] [failed] [1 error] diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/output.txt index c09e07d33..cda16475f 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/output.txt @@ -1,8 +1,10 @@ - Asset Size Chunks Chunk Names - bundle.js 5.14 KiB main [emitted] main - ../lib/fileWithError.d.ts 40 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.14 KiB main [emitted] main + ../lib/fileWithError.js 111 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/fileWithError.d.ts 40 bytes [emitted] + ../lib/index.js 104 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/output.txt index ca3ffe5a0..fd1dc68ce 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/output.txt @@ -1,10 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 5.24 KiB main [emitted] main - ../indirectWithError/fileWithError.d.ts 40 bytes [emitted] - ../indirectWithError/index.d.ts 89 bytes [emitted] - ../utils/index.d.ts 40 bytes [emitted] -../indirectWithError/tsconfig.tsbuildinfo 67.8 KiB [emitted] - ../utils/tsconfig.tsbuildinfo 68 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.24 KiB main [emitted] main + ../indirectWithError/fileWithError.js 124 bytes [emitted] +../indirectWithError/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../utils/index.js 152 bytes [emitted] + ../indirectWithError/fileWithError.d.ts 40 bytes [emitted] + ../indirectWithError/index.js 104 bytes [emitted] + ../indirectWithError/index.d.ts 89 bytes [emitted] + ../utils/tsconfig.tsbuildinfo 68 KiB [emitted] + ../utils/index.d.ts 40 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] [./common/index.ts] 109 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/output.txt index 37d274632..e71343843 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/output.txt @@ -1,7 +1,8 @@ - Asset Size Chunks Chunk Names - bundle.js 5.24 KiB main [emitted] main - ../unreferenced/index.d.ts 49 bytes [emitted] -../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.24 KiB main [emitted] main + ../unreferenced/index.js 158 bytes [emitted] +../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../unreferenced/index.d.ts 49 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] [./common/index.ts] 109 bytes {main} diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/output.txt index 5bf7aafad..4b868fcd6 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/output.txt @@ -1,7 +1,8 @@ - Asset Size Chunks Chunk Names - bundle.js 5.24 KiB main [emitted] main - ../unreferencedIndirect/index.d.ts 57 bytes [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.24 KiB main [emitted] main + ../unreferencedIndirect/index.js 192 bytes [emitted] +../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../unreferencedIndirect/index.d.ts 57 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] [./common/index.ts] 109 bytes {main} diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt index 76c842f58..ec72fb2d7 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,14 @@ - Asset Size Chunks Chunk Names -bundle.js 5.57 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 5.57 KiB main [emitted] main + ../common/index.js 109 bytes [emitted] + ../common/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../common/index.d.ts 43 bytes [emitted] + ../unreferencedIndirect/index.js 176 bytes [emitted] +../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../unreferencedIndirect/index.d.ts 57 bytes [emitted] + ../unreferenced/index.js 144 bytes [emitted] + ../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../unreferenced/index.d.ts 49 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] [2 errors] [./lib/index.ts] 493 bytes {main} [built] [failed] [1 error] diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt index de930b783..1967eb3c7 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,5 +1,10 @@ - Asset Size Chunks Chunk Names -bundle.js 5.19 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 5.19 KiB main [emitted] main + ../lib/fileWithError.js 111 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/fileWithError.d.ts 40 bytes [emitted] + ../lib/index.js 104 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] [1 error] [./lib/index.ts] 104 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt index 296e1b6f8..cf02ca0df 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt @@ -1,5 +1,13 @@ - Asset Size Chunks Chunk Names -bundle.js 5.27 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 5.27 KiB main [emitted] main + ../indirectWithError/fileWithError.js 124 bytes [emitted] +../indirectWithError/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../utils/index.js 152 bytes [emitted] + ../indirectWithError/fileWithError.d.ts 40 bytes [emitted] + ../indirectWithError/index.js 104 bytes [emitted] + ../indirectWithError/index.d.ts 89 bytes [emitted] + ../utils/tsconfig.tsbuildinfo 68 KiB [emitted] + ../utils/index.d.ts 40 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] [./common/index.ts] 109 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch4/output.txt index 13e89eef3..e6612deb2 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch4/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch4/output.txt @@ -1,7 +1,10 @@ - Asset Size Chunks Chunk Names -bundle.js 5.35 KiB main main + Asset Size Chunks Chunk Names + bundle.js 5.27 KiB main main + ../unreferencedIndirect/index.js 192 bytes [emitted] +../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../unreferencedIndirect/index.d.ts 57 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] -[./common/index.ts] 139 bytes {main} -[./lib/index.ts] 133 bytes {main} -[./utils/index.ts] 181 bytes {main} \ No newline at end of file +[./common/index.ts] 109 bytes {main} +[./lib/index.ts] 104 bytes {main} +[./utils/index.ts] 152 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.8/output.txt index f18a67b4a..170ed4ca9 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.8/output.txt @@ -1,8 +1,10 @@ Asset Size Chunks Chunk Names bundle.js 4.7 KiB main [emitted] main + ../lib/index.js 156 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/foo.js 65 bytes [emitted] ../lib/foo.d.ts 35 bytes [emitted] ../lib/index.d.ts 107 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/foo.ts] 65 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.8/output.txt index f24a8ccf2..f989ceca7 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.8/output.txt @@ -1,6 +1,11 @@ - Asset Size Chunks Chunk Names -bundle.js 4.79 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.73 KiB main [emitted] main + ../lib/index.js 156 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/foo.js 65 bytes [emitted] + ../lib/foo.d.ts 35 bytes [emitted] + ../lib/index.d.ts 107 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/foo.ts] 98 bytes {main} [built] -[./lib/index.ts] 183 bytes {main} [built] \ No newline at end of file +[./lib/foo.ts] 65 bytes {main} [built] +[./lib/index.ts] 156 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.8/output.txt index d3e7545db..3abfad665 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.8/output.txt @@ -1,7 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.29 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.8/output.txt index f31c64018..f798b82b8 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.35 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt index 8bc16e5b7..5197d0791 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -1,9 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.29 KiB main [emitted] main + ../app.d.ts 11 bytes [emitted] + ../tsconfig.tsbuildinfo 51.8 KiB [emitted] + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt index f31c64018..f798b82b8 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.35 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.8/output.txt index 411ded624..56546d0f3 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.8/output.txt @@ -1,12 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.31 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 147 bytes {main} [built] [1 error] [./lib/index.ts] 104 bytes {main} [built] ERROR in app.ts ./app.ts -[tsl] ERROR in app.ts(3,46) +[tsl] ERROR in app.ts(3,46)  TS2339: Property 'four' does not exist on type '{ one: number; two: number; three: number; }'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.8/output.txt index d15b24b9a..11eb2325e 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.37 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.35 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 183 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.8/output.txt index 17d23ce7d..259b62487 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -1,9 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.31 KiB main [emitted] main + ../app.d.ts 11 bytes [emitted] + ../tsconfig.tsbuildinfo 51.8 KiB [emitted] + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 147 bytes {main} [built] [1 error] [./lib/index.ts] 104 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt index d15b24b9a..11eb2325e 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.37 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.35 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 183 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.8/output.txt index 411ded624..56546d0f3 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.8/output.txt @@ -1,12 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.31 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 147 bytes {main} [built] [1 error] [./lib/index.ts] 104 bytes {main} [built] ERROR in app.ts ./app.ts -[tsl] ERROR in app.ts(3,46) +[tsl] ERROR in app.ts(3,46)  TS2339: Property 'four' does not exist on type '{ one: number; two: number; three: number; }'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.8/output.txt index d15b24b9a..11eb2325e 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.37 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.35 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 183 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.8/output.txt index d3e7545db..3abfad665 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.8/output.txt @@ -1,7 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.29 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.8/output.txt index f31c64018..f798b82b8 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.35 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.8/output.txt index 64fcf5538..820b3c83d 100644 --- a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.8/output.txt @@ -1,7 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.29 KiB main [emitted] main + ../lib/out/index.js 137 bytes [emitted] + ../lib/out/index.js.map 190 bytes [emitted] + ../lib/out/index.d.ts 89 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.8/output.txt index f31c64018..241cb6c02 100644 --- a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.35 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + ../lib/out/index.js 137 bytes [emitted] + ../lib/out/index.js.map 190 bytes [emitted] + ../lib/out/index.d.ts 89 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt index 64fcf5538..d282782f5 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt @@ -1,7 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.29 KiB main [emitted] main + ../lib/out/index.js 137 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + ../lib/out/index.js.map 190 bytes [emitted] + ../lib/out/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt index 87bcb1776..934e72556 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt @@ -1,7 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/out/index.d.ts 108 bytes [emitted] + ../lib/out/index.js 169 bytes [emitted] ../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + ../lib/out/index.js.map 223 bytes [emitted] + ../lib/out/index.d.ts 108 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt index 0408330b4..7e17949bb 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt @@ -1,7 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main - ../lib/out/index.d.ts 127 bytes [emitted] + ../lib/out/index.js 165 bytes [emitted] ../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + ../lib/out/index.js.map 230 bytes [emitted] + ../lib/out/index.d.ts 127 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt index f31c64018..700f13106 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.35 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + ../lib/out/index.js 137 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + ../lib/out/index.js.map 190 bytes [emitted] + ../lib/out/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt index 9b075a7bc..280bf0622 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.39 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + ../lib/out/index.js 169 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + ../lib/out/index.js.map 223 bytes [emitted] + ../lib/out/index.d.ts 108 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 164 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt index 7ff631214..9101ef755 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.42 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.4 KiB main [emitted] main + ../lib/out/index.js 165 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + ../lib/out/index.js.map 230 bytes [emitted] + ../lib/out/index.d.ts 127 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 160 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.8/output.txt index 772038f58..8b39aeab9 100644 --- a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.8/output.txt @@ -1,7 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.66 KiB main [emitted] main + ../lib/out/index.js 99 bytes [emitted] +../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + ../lib/out/index.js.map 202 bytes [emitted] + ../lib/out/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.8/output.txt index fa144b2cd..8b39aeab9 100644 --- a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.65 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.66 KiB main [emitted] main + ../lib/out/index.js 99 bytes [emitted] +../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + ../lib/out/index.js.map 202 bytes [emitted] + ../lib/out/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] -[./lib/src/index.ts] 61 bytes {main} [built] \ No newline at end of file +[./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.8/output.txt index 772038f58..8b39aeab9 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.8/output.txt @@ -1,7 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.66 KiB main [emitted] main + ../lib/out/index.js 99 bytes [emitted] +../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + ../lib/out/index.js.map 202 bytes [emitted] + ../lib/out/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.8/output.txt index fa144b2cd..8b39aeab9 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.65 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.66 KiB main [emitted] main + ../lib/out/index.js 99 bytes [emitted] +../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + ../lib/out/index.js.map 202 bytes [emitted] + ../lib/out/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] -[./lib/src/index.ts] 61 bytes {main} [built] \ No newline at end of file +[./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/output.txt index d3e7545db..3abfad665 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/output.txt @@ -1,7 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.29 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch0/output.txt index 2eeefbb21..cdab9dc12 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch0/output.txt @@ -1,7 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/index.d.ts 108 bytes [emitted] + ../lib/index.js 169 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 220 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch3/output.txt index f9855ff04..9ce7fd07d 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch3/output.txt @@ -1,7 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main - ../lib/index.d.ts 127 bytes [emitted] + ../lib/index.js 165 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 227 bytes [emitted] + ../lib/index.d.ts 127 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/output.txt index f31c64018..f798b82b8 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.35 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/output.txt index 9b075a7bc..4b26d8b2a 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.39 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + ../lib/index.js 169 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 220 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 164 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/output.txt index 7ff631214..c5c58beb7 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.42 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.4 KiB main [emitted] main + ../lib/index.js 165 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 227 bytes [emitted] + ../lib/index.d.ts 127 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 160 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/output.txt index ad0d1d354..1a9e1e5e1 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/output.txt @@ -1,8 +1,12 @@ - Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.8 KiB main [emitted] main + ../lib/index.js 230 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] + ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.js.map 231 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 107 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt index d769864b2..12ff1a8bf 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt @@ -1,8 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.82 KiB main [emitted] main + ../lib/index.js 230 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js.map 231 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/output.txt index af28e43ce..8e54873af 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/output.txt @@ -1,6 +1,13 @@ - Asset Size Chunks Chunk Names -bundle.js 4.88 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.84 KiB main [emitted] main + ../lib/index.js 230 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] + ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.js.map 231 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 136 bytes {main} [built] -[./lib/index.ts] 225 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 107 bytes {main} [built] +[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/output.txt index 4a8c14dee..5503d535c 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,6 +1,13 @@ - Asset Size Chunks Chunk Names -bundle.js 4.9 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.85 KiB main [emitted] main + ../lib/index.js 230 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] + ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js.map 231 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 149 bytes {main} [built] -[./lib/index.ts] 225 bytes {main} \ No newline at end of file +[./lib/helper.ts] 121 bytes {main} [built] +[./lib/index.ts] 197 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt index ad0d1d354..8486d9d82 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/output.txt @@ -1,9 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.77 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 100 bytes {main} [built] +[./lib/index.ts] 189 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt index 734cb3fac..b00e09ae7 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt @@ -1,8 +1,13 @@ Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main + bundle.js 4.8 KiB main [emitted] main + ../lib/index.js 244 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] + ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.d.ts 92 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} +[./lib/helper.ts] 100 bytes {main} [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt index 8e5f8001c..a0b717243 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt @@ -1,7 +1,11 @@ Asset Size Chunks Chunk Names bundle.js 4.83 KiB main [emitted] main - ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] + ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.d.ts 111 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt index ac0689b76..5f716cc5f 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,6 +1,13 @@ - Asset Size Chunks Chunk Names -bundle.js 4.9 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.84 KiB main [emitted] main + ../lib/index.js 244 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] + ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.d.ts 92 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 136 bytes {main} -[./lib/index.ts] 238 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 100 bytes {main} +[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt index a26fe5f90..de52b15f3 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt @@ -1,6 +1,13 @@ - Asset Size Chunks Chunk Names -bundle.js 4.91 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + ../lib/index.js 244 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] + ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.d.ts 111 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 149 bytes {main} [built] -[./lib/index.ts] 238 bytes {main} \ No newline at end of file +[./lib/helper.ts] 121 bytes {main} [built] +[./lib/index.ts] 211 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt index e73b7c2b1..5645df8f1 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -1,11 +1,8 @@ - Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.77 KiB main [emitted] main + ../app.d.ts 11 bytes [emitted] +../tsconfig.tsbuildinfo 51.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 100 bytes {main} [built] +[./lib/index.ts] 189 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index 55acfba32..a28a55cb8 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,10 +1,14 @@ Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main - ../app.d.ts 12 bytes [emitted] + bundle.js 4.8 KiB main [emitted] main + ../app.d.ts 11 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] + ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.d.ts 92 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] - ../tsconfig.tsbuildinfo 65.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} +[./lib/helper.ts] 100 bytes {main} [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt index ade960709..ceaa8e219 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt @@ -1,8 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.83 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] + ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.d.ts 111 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index ac0689b76..5f716cc5f 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,6 +1,13 @@ - Asset Size Chunks Chunk Names -bundle.js 4.9 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.84 KiB main [emitted] main + ../lib/index.js 244 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] + ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.d.ts 92 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 136 bytes {main} -[./lib/index.ts] 238 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 100 bytes {main} +[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt index a26fe5f90..de52b15f3 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt @@ -1,6 +1,13 @@ - Asset Size Chunks Chunk Names -bundle.js 4.91 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + ../lib/index.js 244 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] + ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.d.ts 111 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 149 bytes {main} [built] -[./lib/index.ts] 238 bytes {main} \ No newline at end of file +[./lib/helper.ts] 121 bytes {main} [built] +[./lib/index.ts] 211 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt index ad0d1d354..8486d9d82 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/output.txt @@ -1,9 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.77 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 100 bytes {main} [built] +[./lib/index.ts] 189 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt index 734cb3fac..b00e09ae7 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,8 +1,13 @@ Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main + bundle.js 4.8 KiB main [emitted] main + ../lib/index.js 244 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] + ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.d.ts 92 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} +[./lib/helper.ts] 100 bytes {main} [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt index 8e5f8001c..a0b717243 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt @@ -1,7 +1,11 @@ Asset Size Chunks Chunk Names bundle.js 4.83 KiB main [emitted] main - ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] + ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.d.ts 111 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index ac0689b76..5f716cc5f 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,6 +1,13 @@ - Asset Size Chunks Chunk Names -bundle.js 4.9 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.84 KiB main [emitted] main + ../lib/index.js 244 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] + ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.d.ts 92 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 136 bytes {main} -[./lib/index.ts] 238 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 100 bytes {main} +[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt index a26fe5f90..de52b15f3 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt @@ -1,6 +1,13 @@ - Asset Size Chunks Chunk Names -bundle.js 4.91 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + ../lib/index.js 244 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] + ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.d.ts 111 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 149 bytes {main} [built] -[./lib/index.ts] 238 bytes {main} \ No newline at end of file +[./lib/helper.ts] 121 bytes {main} [built] +[./lib/index.ts] 211 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/output.txt index e73b7c2b1..4e7d4aac2 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -1,10 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.8 KiB main [emitted] main + ../app.d.ts 11 bytes [emitted] + ../tsconfig.tsbuildinfo 51.8 KiB [emitted] + ../lib/index.js 230 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] + ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.js.map 231 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 107 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index 65bb5f0d0..68ba6d36b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,10 +1,13 @@ Asset Size Chunks Chunk Names bundle.js 4.82 KiB main [emitted] main - ../app.d.ts 12 bytes [emitted] + ../app.d.ts 11 bytes [emitted] + ../lib/index.js 230 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js.map 231 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] - ../tsconfig.tsbuildinfo 65.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt index af28e43ce..8e54873af 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,6 +1,13 @@ - Asset Size Chunks Chunk Names -bundle.js 4.88 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.84 KiB main [emitted] main + ../lib/index.js 230 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] + ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.js.map 231 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 136 bytes {main} [built] -[./lib/index.ts] 225 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 107 bytes {main} [built] +[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 4a8c14dee..5503d535c 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,6 +1,13 @@ - Asset Size Chunks Chunk Names -bundle.js 4.9 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.85 KiB main [emitted] main + ../lib/index.js 230 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] + ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js.map 231 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 149 bytes {main} [built] -[./lib/index.ts] 225 bytes {main} \ No newline at end of file +[./lib/helper.ts] 121 bytes {main} [built] +[./lib/index.ts] 197 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/output.txt index ad0d1d354..1a9e1e5e1 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/output.txt @@ -1,8 +1,12 @@ - Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.8 KiB main [emitted] main + ../lib/index.js 230 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] + ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.js.map 231 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 107 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt index d769864b2..12ff1a8bf 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,8 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.82 KiB main [emitted] main + ../lib/index.js 230 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js.map 231 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/output.txt index af28e43ce..8e54873af 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,6 +1,13 @@ - Asset Size Chunks Chunk Names -bundle.js 4.88 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.84 KiB main [emitted] main + ../lib/index.js 230 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] + ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.js.map 231 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 136 bytes {main} [built] -[./lib/index.ts] 225 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 107 bytes {main} [built] +[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 4a8c14dee..5503d535c 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,6 +1,13 @@ - Asset Size Chunks Chunk Names -bundle.js 4.9 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.85 KiB main [emitted] main + ../lib/index.js 230 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] + ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js.map 231 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 149 bytes {main} [built] -[./lib/index.ts] 225 bytes {main} \ No newline at end of file +[./lib/helper.ts] 121 bytes {main} [built] +[./lib/index.ts] 197 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/output.txt index 8bc16e5b7..5197d0791 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -1,9 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.29 KiB main [emitted] main + ../app.d.ts 11 bytes [emitted] + ../tsconfig.tsbuildinfo 51.8 KiB [emitted] + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index ba8ecb89e..2cab81cec 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,9 +1,10 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../app.d.ts 12 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] + ../app.d.ts 11 bytes [emitted] + ../lib/index.js 169 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../tsconfig.tsbuildinfo 65.4 KiB [emitted] + ../lib/index.js.map 220 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt index 9756f11a2..1e585bb6c 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt @@ -1,9 +1,10 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main - ../app.d.ts 12 bytes [emitted] - ../lib/index.d.ts 127 bytes [emitted] + ../app.d.ts 11 bytes [emitted] + ../lib/index.js 165 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../tsconfig.tsbuildinfo 65.4 KiB [emitted] + ../lib/index.js.map 227 bytes [emitted] + ../lib/index.d.ts 127 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt index f31c64018..f798b82b8 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.35 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 9b075a7bc..4b26d8b2a 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.39 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + ../lib/index.js 169 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 220 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 164 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt index 7ff631214..c5c58beb7 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.42 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.4 KiB main [emitted] main + ../lib/index.js 165 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 227 bytes [emitted] + ../lib/index.d.ts 127 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 160 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/output.txt index d3e7545db..3abfad665 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/output.txt @@ -1,7 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.29 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch0/output.txt index 2eeefbb21..cdab9dc12 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,7 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/index.d.ts 108 bytes [emitted] + ../lib/index.js 169 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 220 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch3/output.txt index f9855ff04..9ce7fd07d 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch3/output.txt @@ -1,7 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main - ../lib/index.d.ts 127 bytes [emitted] + ../lib/index.js 165 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 227 bytes [emitted] + ../lib/index.d.ts 127 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/output.txt index f31c64018..f798b82b8 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.35 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + ../lib/index.js 137 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 187 bytes [emitted] + ../lib/index.d.ts 89 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 133 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 9b075a7bc..4b26d8b2a 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.39 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + ../lib/index.js 169 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 220 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 164 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt index 7ff631214..c5c58beb7 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt @@ -1,5 +1,9 @@ - Asset Size Chunks Chunk Names -bundle.js 4.42 KiB main [emitted] main + Asset Size Chunks Chunk Names + bundle.js 4.4 KiB main [emitted] main + ../lib/index.js 165 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + ../lib/index.js.map 227 bytes [emitted] + ../lib/index.d.ts 127 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 160 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file From 61e7b3a03b4317967a836525ac1a9a69a7db7be7 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 9 Apr 2020 13:18:33 -0700 Subject: [PATCH 13/20] Test on already built --- .../create-and-execute-test.js | 18 ++- .../app.ts | 3 + .../expectedOutput-3.8/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/output.txt | 5 + .../expectedOutput-3.8/patch0/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/patch0/output.txt | 9 ++ .../expectedOutput-3.8/patch1/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/patch1/output.txt | 5 + .../expectedOutput-3.8/patch2/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/patch2/output.txt | 13 ++ .../expectedOutput-3.8/patch3/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/patch3/output.txt | 9 ++ .../expectedOutput-3.8/patch4/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/patch4/output.txt | 10 ++ .../expectedOutput-3.8/patch5/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-3.8/patch5/output.txt | 5 + .../expectedOutput-transpile-3.8/bundle.js | 113 ++++++++++++++++++ .../expectedOutput-transpile-3.8/output.txt | 5 + .../patch0/bundle.js | 113 ++++++++++++++++++ .../patch0/output.txt | 9 ++ .../patch1/bundle.js | 113 ++++++++++++++++++ .../patch1/output.txt | 5 + .../patch2/bundle.js | 113 ++++++++++++++++++ .../patch2/output.txt | 11 ++ .../patch3/bundle.js | 113 ++++++++++++++++++ .../patch3/output.txt | 9 ++ .../patch4/bundle.js | 113 ++++++++++++++++++ .../patch4/output.txt | 5 + .../patch5/bundle.js | 113 ++++++++++++++++++ .../patch5/output.txt | 5 + .../lib/.gitignore | 1 + .../lib/index.ts | 5 + .../lib/package.json | 12 ++ .../lib/tsconfig.json | 10 ++ .../patch0/lib/index.ts | 6 + .../patch1/app.ts | 3 + .../patch2/lib/index.ts | 7 ++ .../patch3/lib/index.ts | 7 ++ .../patch4/app.ts | 3 + .../patch5/app.ts | 3 + .../tsconfig.json | 8 ++ .../webpack.config.js | 20 ++++ 42 files changed, 1787 insertions(+), 6 deletions(-) create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/app.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch2/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch2/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch5/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch5/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch2/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch2/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch5/bundle.js create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch5/output.txt create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/.gitignore create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/index.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/package.json create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch0/lib/index.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch1/app.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch2/lib/index.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch3/lib/index.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch4/app.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch5/app.ts create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/tsconfig.json create mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/webpack.config.js diff --git a/test/comparison-tests/create-and-execute-test.js b/test/comparison-tests/create-and-execute-test.js index f3c750ae5..511218430 100644 --- a/test/comparison-tests/create-and-execute-test.js +++ b/test/comparison-tests/create-and-execute-test.js @@ -13,6 +13,7 @@ const glob = require('glob'); const pathExists = require('../pathExists'); const aliasLoader = require('../aliasLoader'); const copySync = require('./copySync'); +const { Compiler } = require("webpack"); const saveOutputMode = process.argv.indexOf('--save-output') !== -1; @@ -99,12 +100,17 @@ function createTest(test, testPath, options) { } } copySync(testPath, paths.testStagingPath); - if (test.startsWith("projectReferencesWatchRefWithTwoFilesAlreadyBuilt")) { - // Copy output - copySync(path.resolve(paths.testStagingPath, "libOutput"), path.resolve(paths.testStagingPath, "lib")); - // Change the buildinfo to use typescript version we have - const buildInfoPath = path.resolve(paths.testStagingPath, "lib/tsconfig.tsbuildinfo"); - fs.writeFileSync(buildInfoPath, fs.readFileSync(buildInfoPath, "utf8").replace("FakeTSVersion", typescript.version)); + if (test.indexOf("AlreadyBuilt") !== -1) { + const parsedCommandLine = typescript.getParsedCommandLineOfConfigFile(path.resolve(paths.testStagingPath, "lib/tsconfig.json"), {}, { + fileExists: typescript.sys.fileExists, + getCurrentDirectory: typescript.sys.getCurrentDirectory, + onUnRecoverableConfigFileDiagnostic: function () { throw new Error("Error building project")}, + readFile: typescript.sys.readFile, + readDirectory: typescript.sys.readDirectory, + useCaseSensitiveFileNames: typescript.sys.useCaseSensitiveFileNames, + }); + const program = typescript.createProgram({ rootNames: parsedCommandLine.fileNames, options: parsedCommandLine.options }); + program.emit(); } // ensure output directories diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/app.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/app.ts new file mode 100644 index 000000000..a83f2065b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/app.ts @@ -0,0 +1,3 @@ +import { lib } from './lib'; + +console.log(lib.one, lib.two, lib.three); diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/bundle.js new file mode 100644 index 000000000..60f7f137c --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/output.txt new file mode 100644 index 000000000..07231c09e --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.34 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 131 bytes {main} [built] +[./lib/out/index.js] 130 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/bundle.js new file mode 100644 index 000000000..60f7f137c --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt new file mode 100644 index 000000000..33e5fab15 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + bundle.js 4.34 KiB main [emitted] main + ../lib/out/index.js 169 bytes [emitted] + ../lib/out/index.js.map 223 bytes [emitted] + ../lib/out/index.d.ts 108 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] +Entrypoint main = bundle.js +[./app.ts] 131 bytes {main} [built] +[./lib/out/index.js] 130 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/bundle.js new file mode 100644 index 000000000..e6463502c --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/output.txt new file mode 100644 index 000000000..4f26ba788 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.4 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 169 bytes {main} [built] +[./lib/out/index.js] 161 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch2/bundle.js new file mode 100644 index 000000000..e6463502c --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch2/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch2/output.txt new file mode 100644 index 000000000..b6af07923 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch2/output.txt @@ -0,0 +1,13 @@ + Asset Size Chunks Chunk Names +bundle.js 4.4 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 169 bytes {main} [built] +[./lib/out/index.js] 161 bytes {main} + +ERROR in lib\index.ts +[tsl] ERROR in lib\index.ts(6,3) + TS1136: Property assignment expected. + +ERROR in lib\index.ts +[tsl] ERROR in lib\index.ts(7,1) + TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/bundle.js new file mode 100644 index 000000000..e6463502c --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt new file mode 100644 index 000000000..34fbe1bac --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + bundle.js 4.4 KiB main [emitted] main + ../lib/out/index.js 165 bytes [emitted] + ../lib/out/index.js.map 230 bytes [emitted] + ../lib/out/index.d.ts 127 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] +Entrypoint main = bundle.js +[./app.ts] 169 bytes {main} [built] +[./lib/out/index.js] 161 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/bundle.js new file mode 100644 index 000000000..ba8f874ec --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.ffive); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/output.txt new file mode 100644 index 000000000..337d531c9 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/output.txt @@ -0,0 +1,10 @@ + Asset Size Chunks Chunk Names +bundle.js 4.42 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 186 bytes {main} [built] [1 error] +[./lib/out/index.js] 156 bytes {main} [built] + +ERROR in app.ts +./app.ts +[tsl] ERROR in app.ts(3,56) + TS2551: Property 'ffive' does not exist on type '{ one: number; two: number; three: number; four: number; five: number; }'. Did you mean 'five'? \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch5/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch5/bundle.js new file mode 100644 index 000000000..050c51919 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch5/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.five); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch5/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch5/output.txt new file mode 100644 index 000000000..eed2af970 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch5/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.42 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 185 bytes {main} [built] +[./lib/out/index.js] 156 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/bundle.js new file mode 100644 index 000000000..a4bc091aa --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/output.txt new file mode 100644 index 000000000..cef6997fc --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.37 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 167 bytes {main} [built] +[./lib/out/index.js] 130 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js new file mode 100644 index 000000000..dd819fcfc --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt new file mode 100644 index 000000000..280bf0622 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + ../lib/out/index.js 169 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + ../lib/out/index.js.map 223 bytes [emitted] + ../lib/out/index.d.ts 108 bytes [emitted] +Entrypoint main = bundle.js +[./app.ts] 167 bytes {main} [built] +[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/bundle.js new file mode 100644 index 000000000..e3e713988 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt new file mode 100644 index 000000000..0cc24db4b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.44 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 205 bytes {main} [built] +[./lib/out/index.js] 161 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch2/bundle.js new file mode 100644 index 000000000..edc165433 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch2/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch2/output.txt new file mode 100644 index 000000000..9b41ecb08 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch2/output.txt @@ -0,0 +1,11 @@ + Asset Size Chunks Chunk Names +bundle.js 4.44 KiB main main +Entrypoint main = bundle.js +[./app.ts] 205 bytes {main} [built] [2 errors] +[./lib/out/index.js] 161 bytes {main} + +ERROR in [tsl] ERROR in lib\index.ts(6,3) + TS1136: Property assignment expected. + +ERROR in [tsl] ERROR in lib\index.ts(7,1) + TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/bundle.js new file mode 100644 index 000000000..659fba3e4 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/index.ts": +/*!**********************!*\ + !*** ./lib/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt new file mode 100644 index 000000000..d345a5b1e --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + bundle.js 4.44 KiB main main + ../lib/out/index.js 165 bytes [emitted] + ../lib/out/index.js.map 230 bytes [emitted] + ../lib/out/index.d.ts 127 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] +Entrypoint main = bundle.js +[./app.ts] 205 bytes {main} [built] +[./lib/out/index.js] 161 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/bundle.js new file mode 100644 index 000000000..7cef98c7c --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.ffive); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/output.txt new file mode 100644 index 000000000..85d645c15 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.45 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 222 bytes {main} [built] +[./lib/out/index.js] 156 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch5/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch5/bundle.js new file mode 100644 index 000000000..1696123c8 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch5/bundle.js @@ -0,0 +1,113 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./app.ts": +/*!****************!*\ + !*** ./app.ts ***! + \****************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.five); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }), + +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch5/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch5/output.txt new file mode 100644 index 000000000..4185b7735 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch5/output.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names +bundle.js 4.45 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 221 bytes {main} [built] +[./lib/out/index.js] 156 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/.gitignore b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/.gitignore new file mode 100644 index 000000000..7b7f62099 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/.gitignore @@ -0,0 +1 @@ +!*.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/index.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/index.ts new file mode 100644 index 000000000..669ca7b3d --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/index.ts @@ -0,0 +1,5 @@ +export const lib = { + one: 1, + two: 2, + three: 3 +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/package.json b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/package.json new file mode 100644 index 000000000..fedf26a0b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/package.json @@ -0,0 +1,12 @@ +{ + "name": "lib", + "version": "1.0.0", + "description": "", + "main": "out/index.js", + "typings": "out/index.d.ts", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC" +} diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/tsconfig.json b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/tsconfig.json new file mode 100644 index 000000000..2ca71a202 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "composite": true, + "sourceMap": true, + "outDir": "./out" + }, + "files": [ + "./index.ts" + ] +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch0/lib/index.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch0/lib/index.ts new file mode 100644 index 000000000..bcc33a8ba --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch0/lib/index.ts @@ -0,0 +1,6 @@ +export const lib = { + one: 1, + two: 2, + three: 3, + four: 4 // Add new number +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch1/app.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch1/app.ts new file mode 100644 index 000000000..ef0588c25 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch1/app.ts @@ -0,0 +1,3 @@ +import { lib } from './lib'; + +console.log(lib.one, lib.two, lib.three, lib.four); // consume new number diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch2/lib/index.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch2/lib/index.ts new file mode 100644 index 000000000..50c5a28cf --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch2/lib/index.ts @@ -0,0 +1,7 @@ +export const lib = { + one: 1, + two: 2, + three: 3, + four: 4, // Add new number + , +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch3/lib/index.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch3/lib/index.ts new file mode 100644 index 000000000..2f41de9ea --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch3/lib/index.ts @@ -0,0 +1,7 @@ +export const lib = { + one: 1, + two: 2, + three: 3, + four: 4, // Add new number + five: 5, +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch4/app.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch4/app.ts new file mode 100644 index 000000000..60b81231a --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch4/app.ts @@ -0,0 +1,3 @@ +import { lib } from './lib'; + +console.log(lib.one, lib.two, lib.three, lib.four, lib.ffive); // consume new number diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch5/app.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch5/app.ts new file mode 100644 index 000000000..57f5f312c --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/patch5/app.ts @@ -0,0 +1,3 @@ +import { lib } from './lib'; + +console.log(lib.one, lib.two, lib.three, lib.four, lib.five); // consume new number diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/tsconfig.json b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/tsconfig.json new file mode 100644 index 000000000..6d9798ff7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/tsconfig.json @@ -0,0 +1,8 @@ +{ +"files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/webpack.config.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/webpack.config.js new file mode 100644 index 000000000..81cd477e4 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/webpack.config.js @@ -0,0 +1,20 @@ +var path = require('path') + +module.exports = { + mode: 'development', + entry: './app.ts', + output: { + filename: 'bundle.js' + }, + resolve: { + extensions: ['.ts', '.js'] + }, + module: { + rules: [ + { test: /\.ts$/, loader: 'ts-loader', options: { projectReferences: true } } + ] + } +} + +// for test harness purposes only, you would not need this in a normal project +module.exports.resolveLoader = { alias: { 'ts-loader': require('path').join(__dirname, "../../../index.js") } } \ No newline at end of file From e3bd56e1117d5809f0da7a0bb17227fba6699e6d Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 9 Apr 2020 14:01:32 -0700 Subject: [PATCH 14/20] Handle written files by solution builder a bit better --- src/after-compile.ts | 10 ++-------- src/interfaces.ts | 3 +-- src/servicesHost.ts | 11 ++++++----- .../projectReferences/expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 6 +++--- .../expectedOutput-3.8/patch0/output.txt | 2 +- .../expectedOutput-3.8/patch1/output.txt | 6 +++--- .../expectedOutput-3.8/patch2/output.txt | 2 +- .../expectedOutput-3.8/patch4/output.txt | 2 +- .../expectedOutput-transpile-3.8/output.txt | 6 +++--- .../expectedOutput-transpile-3.8/patch0/output.txt | 2 +- .../expectedOutput-transpile-3.8/patch1/output.txt | 6 +++--- .../expectedOutput-transpile-3.8/patch4/output.txt | 2 +- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 2 +- .../expectedOutput-transpile-3.8/output.txt | 2 +- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-3.8/patch3/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/patch3/output.txt | 4 ++-- .../expectedOutput-3.8/patch0/output.txt | 2 +- .../expectedOutput-3.8/patch3/output.txt | 2 +- .../expectedOutput-transpile-3.8/patch3/output.txt | 2 +- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-3.8/patch3/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/patch3/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-3.8/patch0/output.txt | 12 ++++++------ .../expectedOutput-3.8/patch1/output.txt | 8 ++++---- .../expectedOutput-transpile-3.8/patch0/output.txt | 12 ++++++------ .../expectedOutput-transpile-3.8/patch1/output.txt | 8 ++++---- .../expectedOutput-3.8/patch0/output.txt | 12 ++++++------ .../expectedOutput-3.8/patch1/output.txt | 8 ++++---- .../expectedOutput-transpile-3.8/patch0/output.txt | 12 ++++++------ .../expectedOutput-transpile-3.8/patch1/output.txt | 8 ++++---- .../expectedOutput-3.8/patch0/output.txt | 12 ++++++------ .../expectedOutput-3.8/patch1/output.txt | 8 ++++---- .../expectedOutput-transpile-3.8/patch0/output.txt | 12 ++++++------ .../expectedOutput-transpile-3.8/patch1/output.txt | 8 ++++---- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-3.8/patch3/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/patch3/output.txt | 4 ++-- .../expectedOutput-3.8/output.txt | 4 ++-- .../expectedOutput-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-3.8/patch3/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/patch0/output.txt | 4 ++-- .../expectedOutput-transpile-3.8/patch3/output.txt | 4 ++-- 85 files changed, 203 insertions(+), 209 deletions(-) diff --git a/src/after-compile.ts b/src/after-compile.ts index d64128327..8fbe6f0ed 100644 --- a/src/after-compile.ts +++ b/src/after-compile.ts @@ -424,14 +424,8 @@ function provideAssetsFromSolutionBuilderHost( ) { if (instance.solutionBuilderHost) { // written files - for (const outputFile of instance.solutionBuilderHost.outputFiles.values()) { - if (outputFile) { - if (outputFile.isNew) { - outputFileToAsset(outputFile, compilation); - } - outputFile.isNew = false; - } - } + outputFilesToAsset(instance.solutionBuilderHost.writtenFiles, compilation); + instance.solutionBuilderHost.writtenFiles.length = 0; } } diff --git a/src/interfaces.ts b/src/interfaces.ts index 1fd864f16..e873dedd7 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -89,7 +89,7 @@ export interface SolutionBuilderWithWatchHost >, WatchFactory { diagnostics: SolutionDiagnostics; - outputFiles: Map; + writtenFiles: OutputFile[]; configFileInfo: Map; outputAffectingInstanceVersion: Map; getOutputFileFromReferencedProject( @@ -110,7 +110,6 @@ export interface ConfigFileInfo { export interface OutputFile extends typescript.OutputFile { time: Date; version: number; - isNew: boolean; } export interface TSInstance { diff --git a/src/servicesHost.ts b/src/servicesHost.ts index bdf1b9384..dd8cf44f6 100644 --- a/src/servicesHost.ts +++ b/src/servicesHost.ts @@ -696,6 +696,7 @@ export function makeSolutionBuilderHost( )}${newLine + newLine}` ); const outputFiles = new Map(); + const writtenFiles: OutputFile[] = []; const outputAffectingInstanceVersion = new Map(); let timeoutId: [(...args: any[]) => void, any[]] | undefined; @@ -725,18 +726,19 @@ export function makeSolutionBuilderHost( updateFileWithText(instance, name, () => text); const resolvedFileName = path.resolve(name); const existing = outputFiles.get(resolvedFileName); - outputFiles.set(resolvedFileName, { + const newOutputFile: OutputFile = { name, text, writeByteOrderMark: !!writeByteOrderMark, time: new Date(), - isNew: true, version: existing ? existing.text !== text ? existing.version + 1 : existing.version : 0 - }); + }; + outputFiles.set(resolvedFileName, newOutputFile); + writtenFiles.push(newOutputFile); if ( outputAffectingInstanceVersion.has(resolvedFileName) && (!existing || existing.text !== text) @@ -803,7 +805,7 @@ export function makeSolutionBuilderHost( clearTimeout: _timeoutId => { timeoutId = undefined; }, - outputFiles, + writtenFiles, configFileInfo, outputAffectingInstanceVersion, getOutputFileFromReferencedProject, @@ -957,7 +959,6 @@ export function makeSolutionBuilderHost( text, writeByteOrderMark: false, time: compiler.sys.getModifiedTime!(outputFileName)!, - isNew: false, version: 0 }; outputFiles.set(resolvedFileName, newOutputFile); diff --git a/test/comparison-tests/projectReferences/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferences/expectedOutput-3.8/output.txt index 3abfad665..6a42c7a13 100644 --- a/test/comparison-tests/projectReferences/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferences/expectedOutput-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.29 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.8/output.txt index f798b82b8..9af9848b3 100644 --- a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/output.txt index 0841f4054..b4b54ccfe 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/output.txt @@ -1,14 +1,14 @@ Asset Size Chunks Chunk Names bundle.js 5.52 KiB main [emitted] main ../common/index.js 109 bytes [emitted] - ../common/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../common/index.d.ts 43 bytes [emitted] + ../common/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../unreferencedIndirect/index.js 176 bytes [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../unreferencedIndirect/index.d.ts 57 bytes [emitted] +../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../unreferenced/index.js 144 bytes [emitted] - ../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../unreferenced/index.d.ts 49 bytes [emitted] + ../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] [./lib/index.ts] 483 bytes {main} [built] [failed] [1 error] diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/output.txt index cda16475f..9ef535ec6 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch0/output.txt @@ -1,10 +1,10 @@ Asset Size Chunks Chunk Names bundle.js 5.14 KiB main [emitted] main ../lib/fileWithError.js 111 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/fileWithError.d.ts 40 bytes [emitted] ../lib/index.js 104 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/output.txt index fd1dc68ce..440ad1d8b 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch1/output.txt @@ -1,13 +1,13 @@ Asset Size Chunks Chunk Names bundle.js 5.24 KiB main [emitted] main ../indirectWithError/fileWithError.js 124 bytes [emitted] -../indirectWithError/tsconfig.tsbuildinfo 67.8 KiB [emitted] - ../utils/index.js 152 bytes [emitted] ../indirectWithError/fileWithError.d.ts 40 bytes [emitted] ../indirectWithError/index.js 104 bytes [emitted] ../indirectWithError/index.d.ts 89 bytes [emitted] - ../utils/tsconfig.tsbuildinfo 68 KiB [emitted] +../indirectWithError/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../utils/index.js 152 bytes [emitted] ../utils/index.d.ts 40 bytes [emitted] + ../utils/tsconfig.tsbuildinfo 68 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] [./common/index.ts] 109 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/output.txt index e71343843..6c8495da3 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch2/output.txt @@ -1,8 +1,8 @@ Asset Size Chunks Chunk Names bundle.js 5.24 KiB main [emitted] main ../unreferenced/index.js 158 bytes [emitted] -../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../unreferenced/index.d.ts 49 bytes [emitted] +../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] [./common/index.ts] 109 bytes {main} diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/output.txt index 4b868fcd6..f272ead54 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.8/patch4/output.txt @@ -1,8 +1,8 @@ Asset Size Chunks Chunk Names bundle.js 5.24 KiB main [emitted] main ../unreferencedIndirect/index.js 192 bytes [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../unreferencedIndirect/index.d.ts 57 bytes [emitted] +../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] [./common/index.ts] 109 bytes {main} diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt index ec72fb2d7..af67a7143 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt @@ -1,14 +1,14 @@ Asset Size Chunks Chunk Names bundle.js 5.57 KiB main [emitted] main ../common/index.js 109 bytes [emitted] - ../common/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../common/index.d.ts 43 bytes [emitted] + ../common/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../unreferencedIndirect/index.js 176 bytes [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../unreferencedIndirect/index.d.ts 57 bytes [emitted] +../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../unreferenced/index.js 144 bytes [emitted] - ../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../unreferenced/index.d.ts 49 bytes [emitted] + ../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] [2 errors] [./lib/index.ts] 493 bytes {main} [built] [failed] [1 error] diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt index 1967eb3c7..e32625f22 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,10 +1,10 @@ Asset Size Chunks Chunk Names bundle.js 5.19 KiB main [emitted] main ../lib/fileWithError.js 111 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/fileWithError.d.ts 40 bytes [emitted] ../lib/index.js 104 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] [1 error] [./lib/index.ts] 104 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt index cf02ca0df..0ace3acc5 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch1/output.txt @@ -1,13 +1,13 @@ Asset Size Chunks Chunk Names bundle.js 5.27 KiB main [emitted] main ../indirectWithError/fileWithError.js 124 bytes [emitted] -../indirectWithError/tsconfig.tsbuildinfo 67.8 KiB [emitted] - ../utils/index.js 152 bytes [emitted] ../indirectWithError/fileWithError.d.ts 40 bytes [emitted] ../indirectWithError/index.js 104 bytes [emitted] ../indirectWithError/index.d.ts 89 bytes [emitted] - ../utils/tsconfig.tsbuildinfo 68 KiB [emitted] +../indirectWithError/tsconfig.tsbuildinfo 67.8 KiB [emitted] + ../utils/index.js 152 bytes [emitted] ../utils/index.d.ts 40 bytes [emitted] + ../utils/tsconfig.tsbuildinfo 68 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] [./common/index.ts] 109 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch4/output.txt index e6612deb2..ec43f9ef3 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch4/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/patch4/output.txt @@ -1,8 +1,8 @@ Asset Size Chunks Chunk Names bundle.js 5.27 KiB main main ../unreferencedIndirect/index.js 192 bytes [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../unreferencedIndirect/index.d.ts 57 bytes [emitted] +../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] [./common/index.ts] 109 bytes {main} diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.8/output.txt index 170ed4ca9..9037e81ef 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.8/output.txt @@ -1,10 +1,10 @@ Asset Size Chunks Chunk Names bundle.js 4.7 KiB main [emitted] main - ../lib/index.js 156 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/foo.js 65 bytes [emitted] ../lib/foo.d.ts 35 bytes [emitted] + ../lib/index.js 156 bytes [emitted] ../lib/index.d.ts 107 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/foo.ts] 65 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.8/output.txt index f989ceca7..f031a0aa8 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.8/output.txt @@ -1,10 +1,10 @@ Asset Size Chunks Chunk Names bundle.js 4.73 KiB main [emitted] main - ../lib/index.js 156 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/foo.js 65 bytes [emitted] ../lib/foo.d.ts 35 bytes [emitted] + ../lib/index.js 156 bytes [emitted] ../lib/index.d.ts 107 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/foo.ts] 65 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.8/output.txt index 3abfad665..6a42c7a13 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.29 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.8/output.txt index f798b82b8..9af9848b3 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt index 5197d0791..aeba9f805 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -2,10 +2,10 @@ bundle.js 4.29 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt index f798b82b8..9af9848b3 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.8/output.txt index 56546d0f3..3cc5d6649 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.31 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 147 bytes {main} [built] [1 error] [./lib/index.ts] 104 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.8/output.txt index 11eb2325e..012639711 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.35 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 183 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.8/output.txt index 259b62487..c8b5badaf 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -2,10 +2,10 @@ bundle.js 4.31 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 147 bytes {main} [built] [1 error] [./lib/index.ts] 104 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt index 11eb2325e..012639711 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.35 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 183 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.8/output.txt index 56546d0f3..3cc5d6649 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.31 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 147 bytes {main} [built] [1 error] [./lib/index.ts] 104 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.8/output.txt index 11eb2325e..012639711 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.35 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 183 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.8/output.txt index 3abfad665..6a42c7a13 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.29 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.8/output.txt index f798b82b8..9af9848b3 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.8/output.txt index 820b3c83d..5d3b8358e 100644 --- a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.8/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 4.29 KiB main [emitted] main - ../lib/out/index.js 137 bytes [emitted] ../lib/out/index.js.map 190 bytes [emitted] + ../lib/out/index.js 137 bytes [emitted] ../lib/out/index.d.ts 89 bytes [emitted] ../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.8/output.txt index 241cb6c02..6fe9b0dc9 100644 --- a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.8/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/out/index.js 137 bytes [emitted] ../lib/out/index.js.map 190 bytes [emitted] + ../lib/out/index.js 137 bytes [emitted] ../lib/out/index.d.ts 89 bytes [emitted] ../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt index d282782f5..5d3b8358e 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.29 KiB main [emitted] main - ../lib/out/index.js 137 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] ../lib/out/index.js.map 190 bytes [emitted] + ../lib/out/index.js 137 bytes [emitted] ../lib/out/index.d.ts 89 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt index 934e72556..a7d851353 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch0/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/out/index.js 169 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] ../lib/out/index.js.map 223 bytes [emitted] + ../lib/out/index.js 169 bytes [emitted] ../lib/out/index.d.ts 108 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt index 7e17949bb..9e41c2cf6 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.8/patch3/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main - ../lib/out/index.js 165 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] ../lib/out/index.js.map 230 bytes [emitted] + ../lib/out/index.js 165 bytes [emitted] ../lib/out/index.d.ts 127 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt index 700f13106..6fe9b0dc9 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/out/index.js 137 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] ../lib/out/index.js.map 190 bytes [emitted] + ../lib/out/index.js 137 bytes [emitted] ../lib/out/index.d.ts 89 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt index 280bf0622..a0cefb79d 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main - ../lib/out/index.js 169 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] ../lib/out/index.js.map 223 bytes [emitted] + ../lib/out/index.js 169 bytes [emitted] ../lib/out/index.d.ts 108 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt index 9101ef755..d82796e3e 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.8/patch3/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.4 KiB main [emitted] main - ../lib/out/index.js 165 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] ../lib/out/index.js.map 230 bytes [emitted] + ../lib/out/index.js 165 bytes [emitted] ../lib/out/index.d.ts 127 bytes [emitted] +../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt index 33e5fab15..ce5d245f0 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 4.34 KiB main [emitted] main - ../lib/out/index.js 169 bytes [emitted] ../lib/out/index.js.map 223 bytes [emitted] + ../lib/out/index.js 169 bytes [emitted] ../lib/out/index.d.ts 108 bytes [emitted] ../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt index 34fbe1bac..45e4a892c 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 4.4 KiB main [emitted] main - ../lib/out/index.js 165 bytes [emitted] ../lib/out/index.js.map 230 bytes [emitted] + ../lib/out/index.js 165 bytes [emitted] ../lib/out/index.d.ts 127 bytes [emitted] ../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt index d345a5b1e..19b95a267 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt @@ -1,7 +1,7 @@ Asset Size Chunks Chunk Names bundle.js 4.44 KiB main main - ../lib/out/index.js 165 bytes [emitted] ../lib/out/index.js.map 230 bytes [emitted] + ../lib/out/index.js 165 bytes [emitted] ../lib/out/index.d.ts 127 bytes [emitted] ../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.8/output.txt index 8b39aeab9..d284a2f44 100644 --- a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.js 99 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] ../lib/out/index.js.map 202 bytes [emitted] + ../lib/out/index.js 99 bytes [emitted] ../lib/out/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.8/output.txt index 8b39aeab9..d284a2f44 100644 --- a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.js 99 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] ../lib/out/index.js.map 202 bytes [emitted] + ../lib/out/index.js 99 bytes [emitted] ../lib/out/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.8/output.txt index 8b39aeab9..d284a2f44 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.js 99 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] ../lib/out/index.js.map 202 bytes [emitted] + ../lib/out/index.js 99 bytes [emitted] ../lib/out/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.8/output.txt index 8b39aeab9..d284a2f44 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.js 99 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] ../lib/out/index.js.map 202 bytes [emitted] + ../lib/out/index.js 99 bytes [emitted] ../lib/out/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/output.txt index 3abfad665..6a42c7a13 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.29 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch0/output.txt index cdab9dc12..52a5441eb 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch0/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/index.js 169 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 220 bytes [emitted] + ../lib/index.js 169 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch3/output.txt index 9ce7fd07d..c4258a71a 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.8/patch3/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main - ../lib/index.js 165 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 227 bytes [emitted] + ../lib/index.js 165 bytes [emitted] ../lib/index.d.ts 127 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/output.txt index f798b82b8..9af9848b3 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/output.txt index 4b26d8b2a..89803539b 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main - ../lib/index.js 169 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 220 bytes [emitted] + ../lib/index.js 169 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/output.txt index c5c58beb7..b98ffe647 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.8/patch3/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.4 KiB main [emitted] main - ../lib/index.js 165 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 227 bytes [emitted] + ../lib/index.js 165 bytes [emitted] ../lib/index.d.ts 127 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/output.txt index 1a9e1e5e1..64a78458e 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/output.txt @@ -1,12 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.8 KiB main [emitted] main - ../lib/index.js 230 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/helper.js.map 189 bytes [emitted] ../lib/helper.js 141 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] + ../lib/index.js 230 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 107 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt index 12ff1a8bf..0a5fc811c 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.8/patch0/output.txt @@ -1,12 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.82 KiB main [emitted] main - ../lib/index.js 230 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/helper.js.map 209 bytes [emitted] ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] + ../lib/index.js 230 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/output.txt index 8e54873af..f8b6ac8a8 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/output.txt @@ -1,12 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.84 KiB main [emitted] main - ../lib/index.js 230 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/helper.js.map 189 bytes [emitted] ../lib/helper.js 141 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] + ../lib/index.js 230 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 107 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/output.txt index 5503d535c..a3a66b07b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,12 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.85 KiB main [emitted] main - ../lib/index.js 230 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/helper.js.map 209 bytes [emitted] ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] + ../lib/index.js 230 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt index b00e09ae7..aaf278006 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch0/output.txt @@ -1,13 +1,13 @@ Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../lib/index.js 244 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] + bundle.js 4.82 KiB main [emitted] main ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} +[./lib/helper.ts] 107 bytes {main} [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt index a0b717243..64d8efac9 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.8/patch1/output.txt @@ -1,11 +1,11 @@ Asset Size Chunks Chunk Names bundle.js 4.83 KiB main [emitted] main - ../lib/index.js 244 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt index 5f716cc5f..56fb6d5dd 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,13 +1,13 @@ Asset Size Chunks Chunk Names - bundle.js 4.84 KiB main [emitted] main - ../lib/index.js 244 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] + bundle.js 4.85 KiB main [emitted] main ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} +[./lib/helper.ts] 107 bytes {main} [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt index de52b15f3..44dcb5f5b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt @@ -1,11 +1,11 @@ Asset Size Chunks Chunk Names bundle.js 4.87 KiB main [emitted] main - ../lib/index.js 244 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index a28a55cb8..31619c09e 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,14 +1,14 @@ Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main + bundle.js 4.82 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} +[./lib/helper.ts] 107 bytes {main} [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt index ceaa8e219..b79592e04 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt @@ -1,12 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.83 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 5f716cc5f..56fb6d5dd 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,13 +1,13 @@ Asset Size Chunks Chunk Names - bundle.js 4.84 KiB main [emitted] main - ../lib/index.js 244 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] + bundle.js 4.85 KiB main [emitted] main ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} +[./lib/helper.ts] 107 bytes {main} [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt index de52b15f3..44dcb5f5b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt @@ -1,11 +1,11 @@ Asset Size Chunks Chunk Names bundle.js 4.87 KiB main [emitted] main - ../lib/index.js 244 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt index b00e09ae7..aaf278006 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,13 +1,13 @@ Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../lib/index.js 244 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] + bundle.js 4.82 KiB main [emitted] main ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} +[./lib/helper.ts] 107 bytes {main} [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt index a0b717243..64d8efac9 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch1/output.txt @@ -1,11 +1,11 @@ Asset Size Chunks Chunk Names bundle.js 4.83 KiB main [emitted] main - ../lib/index.js 244 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 5f716cc5f..56fb6d5dd 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,13 +1,13 @@ Asset Size Chunks Chunk Names - bundle.js 4.84 KiB main [emitted] main - ../lib/index.js 244 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] + bundle.js 4.85 KiB main [emitted] main ../lib/helper.js.map 189 bytes [emitted] + ../lib/helper.js 141 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} +[./lib/helper.ts] 107 bytes {main} [./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt index de52b15f3..44dcb5f5b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.8/patch1/output.txt @@ -1,11 +1,11 @@ Asset Size Chunks Chunk Names bundle.js 4.87 KiB main [emitted] main - ../lib/index.js 244 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] ../lib/helper.js.map 209 bytes [emitted] + ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] + ../lib/index.js.map 251 bytes [emitted] + ../lib/index.js 244 bytes [emitted] + ../lib/index.d.ts 108 bytes [emitted] ../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/output.txt index 4e7d4aac2..3231fc686 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -2,13 +2,13 @@ bundle.js 4.8 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/index.js 230 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/helper.js.map 189 bytes [emitted] ../lib/helper.js 141 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] + ../lib/index.js 230 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 107 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index 68ba6d36b..d7abe1eec 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,13 +1,13 @@ Asset Size Chunks Chunk Names bundle.js 4.82 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] - ../lib/index.js 230 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/helper.js.map 209 bytes [emitted] ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] + ../lib/index.js 230 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt index 8e54873af..f8b6ac8a8 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,12 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.84 KiB main [emitted] main - ../lib/index.js 230 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/helper.js.map 189 bytes [emitted] ../lib/helper.js 141 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] + ../lib/index.js 230 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 107 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 5503d535c..a3a66b07b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,12 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.85 KiB main [emitted] main - ../lib/index.js 230 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/helper.js.map 209 bytes [emitted] ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] + ../lib/index.js 230 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/output.txt index 1a9e1e5e1..64a78458e 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/output.txt @@ -1,12 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.8 KiB main [emitted] main - ../lib/index.js 230 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/helper.js.map 189 bytes [emitted] ../lib/helper.js 141 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] + ../lib/index.js 230 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 107 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt index 12ff1a8bf..0a5fc811c 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,12 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.82 KiB main [emitted] main - ../lib/index.js 230 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/helper.js.map 209 bytes [emitted] ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] + ../lib/index.js 230 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/output.txt index 8e54873af..f8b6ac8a8 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,12 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.84 KiB main [emitted] main - ../lib/index.js 230 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/helper.js.map 189 bytes [emitted] ../lib/helper.js 141 bytes [emitted] ../lib/helper.d.ts 92 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] + ../lib/index.js 230 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 107 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 5503d535c..a3a66b07b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,12 +1,12 @@ Asset Size Chunks Chunk Names bundle.js 4.85 KiB main [emitted] main - ../lib/index.js 230 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] ../lib/helper.js.map 209 bytes [emitted] ../lib/helper.js 155 bytes [emitted] ../lib/helper.d.ts 111 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] + ../lib/index.js 230 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/helper.ts] 121 bytes {main} [built] diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/output.txt index 5197d0791..aeba9f805 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/output.txt @@ -2,10 +2,10 @@ bundle.js 4.29 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt index 2cab81cec..f5e4a79c5 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,10 +1,10 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] - ../lib/index.js 169 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 220 bytes [emitted] + ../lib/index.js 169 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt index 1e585bb6c..11ad9943c 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/output.txt @@ -1,10 +1,10 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] - ../lib/index.js 165 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 227 bytes [emitted] + ../lib/index.js 165 bytes [emitted] ../lib/index.d.ts 127 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt index f798b82b8..9af9848b3 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 4b26d8b2a..89803539b 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main - ../lib/index.js 169 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 220 bytes [emitted] + ../lib/index.js 169 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt index c5c58beb7..b98ffe647 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.4 KiB main [emitted] main - ../lib/index.js 165 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 227 bytes [emitted] + ../lib/index.js 165 bytes [emitted] ../lib/index.d.ts 127 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/output.txt index 3abfad665..6a42c7a13 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.29 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch0/output.txt index cdab9dc12..52a5441eb 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch0/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/index.js 169 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 220 bytes [emitted] + ../lib/index.js 169 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch3/output.txt index 9ce7fd07d..c4258a71a 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch3/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main - ../lib/index.js 165 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 227 bytes [emitted] + ../lib/index.js 165 bytes [emitted] ../lib/index.d.ts 127 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/output.txt index f798b82b8..9af9848b3 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.33 KiB main [emitted] main - ../lib/index.js 137 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] + ../lib/index.js 137 bytes [emitted] ../lib/index.d.ts 89 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt index 4b26d8b2a..89803539b 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.36 KiB main [emitted] main - ../lib/index.js 169 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 220 bytes [emitted] + ../lib/index.js 169 bytes [emitted] ../lib/index.d.ts 108 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] [./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt index c5c58beb7..b98ffe647 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.8/patch3/output.txt @@ -1,9 +1,9 @@ Asset Size Chunks Chunk Names bundle.js 4.4 KiB main [emitted] main - ../lib/index.js 165 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] ../lib/index.js.map 227 bytes [emitted] + ../lib/index.js 165 bytes [emitted] ../lib/index.d.ts 127 bytes [emitted] +../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] [./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file From 9d62b440df00d79a1aaf59c62f992201daabec4a Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 10 Apr 2020 11:20:26 -0700 Subject: [PATCH 15/20] Fix comparison tests where the multiple compilation callbacks were not handled so it didnt show correct output --- .../create-and-execute-test.js | 59 ++++++--- .../expectedOutput-transpile-3.8/output.txt | 37 ++++++ .../expectedOutput-3.8/patch0/bundle.js | 2 +- .../expectedOutput-3.8/patch0/output.txt | 8 +- .../expectedOutput-3.8/patch1/output.txt | 2 +- .../expectedOutput-3.8/patch3/bundle.js | 2 +- .../expectedOutput-3.8/patch3/output.txt | 8 +- .../expectedOutput-3.8/patch4/output.txt | 2 +- .../patch0/bundle.js | 12 +- .../patch0/output.txt | 12 +- .../patch1/output.txt | 2 +- .../patch2/bundle.js | 113 ------------------ .../patch3/bundle.js | 12 +- .../patch3/output.txt | 8 +- .../patch4/output.txt | 2 +- 15 files changed, 122 insertions(+), 159 deletions(-) delete mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch2/bundle.js diff --git a/test/comparison-tests/create-and-execute-test.js b/test/comparison-tests/create-and-execute-test.js index 511218430..dd6734576 100644 --- a/test/comparison-tests/create-and-execute-test.js +++ b/test/comparison-tests/create-and-execute-test.js @@ -177,21 +177,38 @@ function createWebpackConfig(paths, optionsOriginal, useWatchApi) { } function createWebpackWatchHandler(done, paths, testState, options, test) { + let timoutId; + let statsString; + let errString; return function (err, stats) { + if (timoutId) { + clearTimeout(timoutId); + timoutId = undefined; + } const patch = setPathsAndGetPatch(paths, testState, options); + const currentErrString = errToString(err, paths); + if (currentErrString) { + errString = errString ? errString + "\n\n" + currentErrString : currentErrString; + } + const currentStatsString = statsToString(stats, testState, paths); + if (currentStatsString) { + statsString = statsString ? statsString + "\n\n" + currentStatsString : currentStatsString; + } + timoutId = setTimeout(function () { + cleanHashFromOutput(stats, paths.webpackOutput); - cleanHashFromOutput(stats, paths.webpackOutput); - - copySync(paths.webpackOutput, paths.actualOutput); - rimraf.sync(paths.webpackOutput); - - handleErrors(err, paths); + copySync(paths.webpackOutput, paths.actualOutput); + rimraf.sync(paths.webpackOutput); - storeStats(stats, testState, paths); + handleErrors(errString, paths); + errString = undefined; - compareFiles(paths, test, patch); + storeStats(statsString, paths); + statsString = undefined; - copyPatchOrEndTest(paths.testStagingPath, testState.watcher, testState, done); + compareFiles(paths, test, patch); + copyPatchOrEndTest(paths.testStagingPath, testState.watcher, testState, done); + }, 2000); } } @@ -210,26 +227,35 @@ function setPathsAndGetPatch(paths, testState, options) { return patch; } -function handleErrors(err, paths) { - if (err) { +function handleErrors(errString, paths) { + if (errString) { const errFileName = 'err.txt'; + fs.writeFileSync(path.join(paths.actualOutput, errFileName), errString); + } +} +function errToString(err, paths) { + if (err) { const errString = err.toString() .replace(new RegExp(regexEscape(paths.testStagingPath + path.sep), 'g'), '') .replace(new RegExp(regexEscape(rootPath + path.sep), 'g'), '') .replace(new RegExp(regexEscape(rootPath), 'g'), '') .replace(/\.transpile/g, ''); + return errString; + } +} - fs.writeFileSync(path.join(paths.actualOutput, errFileName), errString); +function storeStats(statsString, paths) { + if (statsString) { + const statsFileName = 'output.txt'; + fs.writeFileSync(path.join(paths.actualOutput, statsFileName), statsString); } } -function storeStats(stats, testState, paths) { +function statsToString(stats, testState, paths) { if (stats && stats.hash !== testState.lastHash) { testState.lastHash = stats.hash; - const statsFileName = 'output.txt'; - // do a little magic to normalize `\` to `/` for asset output const newAssets = {}; Object.keys(stats.compilation.assets).forEach(function (asset) { @@ -244,8 +270,7 @@ function storeStats(stats, testState, paths) { .replace(new RegExp(regexEscape(rootPath), 'g'), '') .replace(new RegExp(regexEscape(rootPathWithIncorrectWindowsSeparator), 'g'), '') .replace(/\.transpile/g, ''); - - fs.writeFileSync(path.join(paths.actualOutput, statsFileName), statsString); + return statsString; } } diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt index af67a7143..71c85996c 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt @@ -20,6 +20,43 @@ ERROR in [tsl] ERROR in [36 ERROR in [tsl] ERROR in lib\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. +ERROR in ./lib/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 3:12-28 + +ERROR in ./utils/index.ts +Module build failed (from /index.js): +Error: TypeScript emitted no output for utils\index.ts. The most common cause for this is having errors when building referenced projects. + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) + @ ./app.ts 4:14-32 + + Asset Size Chunks Chunk Names +bundle.js 5.57 KiB main main +Entrypoint main = bundle.js +[./app.ts] 218 bytes {main} [2 errors] +[./lib/index.ts] 493 bytes {main} [built] [failed] [3 errors] +[./utils/index.ts] 495 bytes {main} [built] [failed] [1 error] + +ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5) + TS2322: Type 'false' is not assignable to type 'string'. + +ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5) + TS2322: Type 'false' is not assignable to type 'string'. + @ ./app.ts 3:12-28 + +ERROR in [tsl] ERROR in lib\fileWithError.ts(2,5) + TS2322: Type 'false' is not assignable to type 'string'. + +ERROR in [tsl] ERROR in lib\fileWithError.ts(2,5) + TS2322: Type 'false' is not assignable to type 'string'. + @ ./app.ts 3:12-28 + ERROR in ./lib/index.ts Module build failed (from /index.js): Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/bundle.js index 60f7f137c..3070ad2a3 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/bundle.js @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt index ce5d245f0..006ebe934 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt @@ -6,4 +6,10 @@ ../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/out/index.js] 130 bytes {main} \ No newline at end of file +[./lib/out/index.js] 130 bytes {main} + + Asset Size Chunks Chunk Names +bundle.js 4.37 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 131 bytes {main} +[./lib/out/index.js] 161 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/output.txt index 4f26ba788..8cbabebc0 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/output.txt @@ -2,4 +2,4 @@ bundle.js 4.4 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/out/index.js] 161 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 161 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/bundle.js index e6463502c..2a571212e 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/bundle.js @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt index 45e4a892c..2097642cb 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt @@ -6,4 +6,10 @@ ../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/out/index.js] 161 bytes {main} \ No newline at end of file +[./lib/out/index.js] 161 bytes {main} + + Asset Size Chunks Chunk Names +bundle.js 4.4 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 169 bytes {main} +[./lib/out/index.js] 156 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/output.txt index 337d531c9..c5a7e0e80 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/output.txt @@ -2,7 +2,7 @@ bundle.js 4.42 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 186 bytes {main} [built] [1 error] -[./lib/out/index.js] 156 bytes {main} [built] +[./lib/out/index.js] 156 bytes {main} ERROR in app.ts ./app.ts diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js index dd819fcfc..db2c96801 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt index 280bf0622..e981876f3 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt @@ -1,9 +1,5 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/out/index.js 169 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] - ../lib/out/index.js.map 223 bytes [emitted] - ../lib/out/index.d.ts 108 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.4 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./app.ts] 167 bytes {main} +[./lib/out/index.js] 161 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt index 0cc24db4b..bda35c374 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt @@ -2,4 +2,4 @@ bundle.js 4.44 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/out/index.js] 161 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 161 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch2/bundle.js deleted file mode 100644 index edc165433..000000000 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch2/bundle.js +++ /dev/null @@ -1,113 +0,0 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./app.ts": -/*!****************!*\ - !*** ./app.ts ***! - \****************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); - -/***/ }), - -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4 // Add new number\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); - -/***/ }) - -/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/bundle.js index 659fba3e4..d4ea42a43 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\r\nexports.__esModule = true;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt index 19b95a267..901a8dc53 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt @@ -6,4 +6,10 @@ ../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/out/index.js] 161 bytes {main} \ No newline at end of file +[./lib/out/index.js] 161 bytes {main} + + Asset Size Chunks Chunk Names +bundle.js 4.44 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 205 bytes {main} +[./lib/out/index.js] 156 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/output.txt index 85d645c15..f1084ccfc 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/output.txt @@ -2,4 +2,4 @@ bundle.js 4.45 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 222 bytes {main} [built] -[./lib/out/index.js] 156 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 156 bytes {main} \ No newline at end of file From 6cd9347717827e0f98a41c8b64ec0a8f36d55eb9 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 10 Apr 2020 14:38:25 -0700 Subject: [PATCH 16/20] Because comparison tests are run only on newer typescript build, build suite during tests instead of commandline to avoid breaking older runs --- package.json | 2 +- .../create-and-execute-test.js | 12 ++---------- test/comparison-tests/getProgram.js | 12 ++++++++++++ test/comparison-tests/run-tests.js | 18 ++++++++++++++++++ test/comparison-tests/tsconfig.json | 1 + 5 files changed, 34 insertions(+), 11 deletions(-) create mode 100644 test/comparison-tests/getProgram.js diff --git a/package.json b/package.json index d9976b510..a86dafb6d 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "tsc --version && tsc --project \"./src\"", "lint": "tslint --project \"./src\"", - "comparison-tests": "git clean -xfd test/comparison-tests && tsc --project \"./test/comparison-tests\" && npm link ./test/comparison-tests/testLib && node test/comparison-tests/run-tests.js", + "comparison-tests": "git clean -xfd test/comparison-tests && npm link ./test/comparison-tests/testLib && node test/comparison-tests/run-tests.js", "comparison-tests-generate": "git clean -xfd test/comparison-tests && node test/comparison-tests/stub-new-version.js", "execution-tests": "git clean -xfd test/execution-tests && node test/execution-tests/run-tests.js", "test": "git clean -xfd test/comparison-tests && git clean -xfd test/execution-tests && node test/run-tests.js", diff --git a/test/comparison-tests/create-and-execute-test.js b/test/comparison-tests/create-and-execute-test.js index dd6734576..5589bd622 100644 --- a/test/comparison-tests/create-and-execute-test.js +++ b/test/comparison-tests/create-and-execute-test.js @@ -13,7 +13,7 @@ const glob = require('glob'); const pathExists = require('../pathExists'); const aliasLoader = require('../aliasLoader'); const copySync = require('./copySync'); -const { Compiler } = require("webpack"); +const getProgram = require('./getProgram'); const saveOutputMode = process.argv.indexOf('--save-output') !== -1; @@ -101,15 +101,7 @@ function createTest(test, testPath, options) { } copySync(testPath, paths.testStagingPath); if (test.indexOf("AlreadyBuilt") !== -1) { - const parsedCommandLine = typescript.getParsedCommandLineOfConfigFile(path.resolve(paths.testStagingPath, "lib/tsconfig.json"), {}, { - fileExists: typescript.sys.fileExists, - getCurrentDirectory: typescript.sys.getCurrentDirectory, - onUnRecoverableConfigFileDiagnostic: function () { throw new Error("Error building project")}, - readFile: typescript.sys.readFile, - readDirectory: typescript.sys.readDirectory, - useCaseSensitiveFileNames: typescript.sys.useCaseSensitiveFileNames, - }); - const program = typescript.createProgram({ rootNames: parsedCommandLine.fileNames, options: parsedCommandLine.options }); + const program = getProgram(path.resolve(paths.testStagingPath, "lib/tsconfig.json")); program.emit(); } diff --git a/test/comparison-tests/getProgram.js b/test/comparison-tests/getProgram.js new file mode 100644 index 000000000..4146cd7de --- /dev/null +++ b/test/comparison-tests/getProgram.js @@ -0,0 +1,12 @@ +const typescript = require('typescript'); +module.exports = function getProgram(tsconfigPath) { + const parsedCommandLine = typescript.getParsedCommandLineOfConfigFile(tsconfigPath, {}, { + fileExists: typescript.sys.fileExists, + getCurrentDirectory: typescript.sys.getCurrentDirectory, + onUnRecoverableConfigFileDiagnostic: function () { throw new Error("Error building project") }, + readFile: typescript.sys.readFile, + readDirectory: typescript.sys.readDirectory, + useCaseSensitiveFileNames: typescript.sys.useCaseSensitiveFileNames, + }); + return typescript.createProgram({ rootNames: parsedCommandLine.fileNames, options: parsedCommandLine.options }); +}; \ No newline at end of file diff --git a/test/comparison-tests/run-tests.js b/test/comparison-tests/run-tests.js index b28957323..248ac9d2c 100644 --- a/test/comparison-tests/run-tests.js +++ b/test/comparison-tests/run-tests.js @@ -4,6 +4,7 @@ const rimraf = require('rimraf'); const typescript = require('typescript'); const semver = require('semver'); const execSync = require('child_process').execSync; +const getProgram = require('./getProgram'); // We only want to run comparison tests for the latest released version const typescriptVersion = parseFloat( @@ -12,6 +13,23 @@ const typescriptVersion = parseFloat( // @ts-ignore if (typescriptVersion < 3.8 || typescriptVersion > 3.8) return; +// Build +const program = getProgram(path.resolve(__dirname, "tsconfig.json")); +const diagnostics = typescript.getPreEmitDiagnostics(program); +if (diagnostics.length) { + const formatDiagnosticHost = { + getCurrentDirectory: typescript.sys.getCurrentDirectory, + getCanonicalFileName: typescript.sys.useCaseSensitiveFileNames + ? s => s + : s => s.toLowerCase(), + getNewLine: () => typescript.sys.newLine + }; + for (const d of diagnostics) { + typescript.sys.write(typescript.formatDiagnostic(d, formatDiagnosticHost)); + } + throw new Error("Errors in the tests"); +} + // Parse command line arguments const saveOutputMode = process.argv.indexOf('--save-output') !== -1; const indexOfSingleTest = process.argv.indexOf('--single-test'); diff --git a/test/comparison-tests/tsconfig.json b/test/comparison-tests/tsconfig.json index b3ac4b3a5..46bf2df2b 100644 --- a/test/comparison-tests/tsconfig.json +++ b/test/comparison-tests/tsconfig.json @@ -7,6 +7,7 @@ "lib": ["es2016"] }, "files": [ + "getProgram.js", "create-and-execute-test.js", "run-tests.js", "newline.loader.js", From 1977b89f170a05a786d0440b105f940469dbdc6d Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 10 Apr 2020 14:41:05 -0700 Subject: [PATCH 17/20] Remove node 8 build from travis --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c04617ec2..978dd1bf4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ addons: chrome: stable language: node_js node_js: - - "8" - "10" - "12" sudo: required From 399b60ab102b0cc9a2e2c9b8570dfc061ff89647 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 10 Apr 2020 15:00:05 -0700 Subject: [PATCH 18/20] Fix test baselines --- .../expectedOutput-3.8/output.txt | 14 ++++++- .../expectedOutput-transpile-3.8/output.txt | 37 ------------------- 2 files changed, 13 insertions(+), 38 deletions(-) diff --git a/test/comparison-tests/allowJs-ts-check/expectedOutput-3.8/output.txt b/test/comparison-tests/allowJs-ts-check/expectedOutput-3.8/output.txt index d23aa7e61..2cfad04da 100644 --- a/test/comparison-tests/allowJs-ts-check/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/allowJs-ts-check/expectedOutput-3.8/output.txt @@ -7,5 +7,17 @@ Entrypoint main = bundle.js ERROR in src\error2.js ./src/error2.js -[tsl] ERROR in src\error2.js(4,10) +[tsl] ERROR in src\error2.js(4,10) + TS2339: Property 'bar' does not exist on type 'Class2'. + + Asset Size Chunks Chunk Names +bundle.js 5.15 KiB main main +Entrypoint main = bundle.js +[./src/error1.js] 265 bytes {main} +[./src/error2.js] 278 bytes {main} [1 error] +[./src/index.js] 207 bytes {main} [built] + +ERROR in src\error2.js +./src/error2.js +[tsl] ERROR in src\error2.js(4,10)  TS2339: Property 'bar' does not exist on type 'Class2'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt index 71c85996c..af67a7143 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.8/output.txt @@ -20,43 +20,6 @@ ERROR in [tsl] ERROR in [36 ERROR in [tsl] ERROR in lib\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. -ERROR in ./lib/index.ts -Module build failed (from /index.js): -Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. - at makeSourceMapAndFinish (dist\index.js:87:18) - at successLoader (dist\index.js:73:9) - at Object.loader (dist\index.js:24:5) - @ ./app.ts 3:12-28 - -ERROR in ./utils/index.ts -Module build failed (from /index.js): -Error: TypeScript emitted no output for utils\index.ts. The most common cause for this is having errors when building referenced projects. - at makeSourceMapAndFinish (dist\index.js:87:18) - at successLoader (dist\index.js:73:9) - at Object.loader (dist\index.js:24:5) - @ ./app.ts 4:14-32 - - Asset Size Chunks Chunk Names -bundle.js 5.57 KiB main main -Entrypoint main = bundle.js -[./app.ts] 218 bytes {main} [2 errors] -[./lib/index.ts] 493 bytes {main} [built] [failed] [3 errors] -[./utils/index.ts] 495 bytes {main} [built] [failed] [1 error] - -ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5) - TS2322: Type 'false' is not assignable to type 'string'. - -ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5) - TS2322: Type 'false' is not assignable to type 'string'. - @ ./app.ts 3:12-28 - -ERROR in [tsl] ERROR in lib\fileWithError.ts(2,5) - TS2322: Type 'false' is not assignable to type 'string'. - -ERROR in [tsl] ERROR in lib\fileWithError.ts(2,5) - TS2322: Type 'false' is not assignable to type 'string'. - @ ./app.ts 3:12-28 - ERROR in ./lib/index.ts Module build failed (from /index.js): Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. From 7b0ec7d246081270ef3aaafc66714f8201cf95cc Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 13 Apr 2020 10:44:33 -0700 Subject: [PATCH 19/20] Revert multiple compilation stats per patch, has incorrect baseline that doesnt match actual behavior This reverts commit 9d62b440df00d79a1aaf59c62f992201daabec4a. --- .../expectedOutput-3.8/output.txt | 12 -- .../create-and-execute-test.js | 59 +++------ .../expectedOutput-3.8/patch0/bundle.js | 2 +- .../expectedOutput-3.8/patch0/output.txt | 8 +- .../expectedOutput-3.8/patch1/output.txt | 2 +- .../expectedOutput-3.8/patch3/bundle.js | 2 +- .../expectedOutput-3.8/patch3/output.txt | 8 +- .../expectedOutput-3.8/patch4/output.txt | 2 +- .../patch0/bundle.js | 113 ------------------ .../patch0/output.txt | 5 - .../patch1/output.txt | 2 +- .../patch3/bundle.js | 113 ------------------ .../patch3/output.txt | 8 +- .../patch4/output.txt | 2 +- 14 files changed, 26 insertions(+), 312 deletions(-) delete mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js delete mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt delete mode 100644 test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/bundle.js diff --git a/test/comparison-tests/allowJs-ts-check/expectedOutput-3.8/output.txt b/test/comparison-tests/allowJs-ts-check/expectedOutput-3.8/output.txt index 2cfad04da..fe76bf89e 100644 --- a/test/comparison-tests/allowJs-ts-check/expectedOutput-3.8/output.txt +++ b/test/comparison-tests/allowJs-ts-check/expectedOutput-3.8/output.txt @@ -5,18 +5,6 @@ Entrypoint main = bundle.js [./src/error2.js] 278 bytes {main} [built] [1 error] [./src/index.js] 207 bytes {main} [built] -ERROR in src\error2.js -./src/error2.js -[tsl] ERROR in src\error2.js(4,10) - TS2339: Property 'bar' does not exist on type 'Class2'. - - Asset Size Chunks Chunk Names -bundle.js 5.15 KiB main main -Entrypoint main = bundle.js -[./src/error1.js] 265 bytes {main} -[./src/error2.js] 278 bytes {main} [1 error] -[./src/index.js] 207 bytes {main} [built] - ERROR in src\error2.js ./src/error2.js [tsl] ERROR in src\error2.js(4,10) diff --git a/test/comparison-tests/create-and-execute-test.js b/test/comparison-tests/create-and-execute-test.js index 5589bd622..09839de3d 100644 --- a/test/comparison-tests/create-and-execute-test.js +++ b/test/comparison-tests/create-and-execute-test.js @@ -169,38 +169,21 @@ function createWebpackConfig(paths, optionsOriginal, useWatchApi) { } function createWebpackWatchHandler(done, paths, testState, options, test) { - let timoutId; - let statsString; - let errString; return function (err, stats) { - if (timoutId) { - clearTimeout(timoutId); - timoutId = undefined; - } const patch = setPathsAndGetPatch(paths, testState, options); - const currentErrString = errToString(err, paths); - if (currentErrString) { - errString = errString ? errString + "\n\n" + currentErrString : currentErrString; - } - const currentStatsString = statsToString(stats, testState, paths); - if (currentStatsString) { - statsString = statsString ? statsString + "\n\n" + currentStatsString : currentStatsString; - } - timoutId = setTimeout(function () { - cleanHashFromOutput(stats, paths.webpackOutput); - copySync(paths.webpackOutput, paths.actualOutput); - rimraf.sync(paths.webpackOutput); + cleanHashFromOutput(stats, paths.webpackOutput); + + copySync(paths.webpackOutput, paths.actualOutput); + rimraf.sync(paths.webpackOutput); + + handleErrors(err, paths); - handleErrors(errString, paths); - errString = undefined; + storeStats(stats, testState, paths); - storeStats(statsString, paths); - statsString = undefined; + compareFiles(paths, test, patch); - compareFiles(paths, test, patch); - copyPatchOrEndTest(paths.testStagingPath, testState.watcher, testState, done); - }, 2000); + copyPatchOrEndTest(paths.testStagingPath, testState.watcher, testState, done); } } @@ -219,35 +202,26 @@ function setPathsAndGetPatch(paths, testState, options) { return patch; } -function handleErrors(errString, paths) { - if (errString) { +function handleErrors(err, paths) { + if (err) { const errFileName = 'err.txt'; - fs.writeFileSync(path.join(paths.actualOutput, errFileName), errString); - } -} -function errToString(err, paths) { - if (err) { const errString = err.toString() .replace(new RegExp(regexEscape(paths.testStagingPath + path.sep), 'g'), '') .replace(new RegExp(regexEscape(rootPath + path.sep), 'g'), '') .replace(new RegExp(regexEscape(rootPath), 'g'), '') .replace(/\.transpile/g, ''); - return errString; - } -} -function storeStats(statsString, paths) { - if (statsString) { - const statsFileName = 'output.txt'; - fs.writeFileSync(path.join(paths.actualOutput, statsFileName), statsString); + fs.writeFileSync(path.join(paths.actualOutput, errFileName), errString); } } -function statsToString(stats, testState, paths) { +function storeStats(stats, testState, paths) { if (stats && stats.hash !== testState.lastHash) { testState.lastHash = stats.hash; + const statsFileName = 'output.txt'; + // do a little magic to normalize `\` to `/` for asset output const newAssets = {}; Object.keys(stats.compilation.assets).forEach(function (asset) { @@ -262,7 +236,8 @@ function statsToString(stats, testState, paths) { .replace(new RegExp(regexEscape(rootPath), 'g'), '') .replace(new RegExp(regexEscape(rootPathWithIncorrectWindowsSeparator), 'g'), '') .replace(/\.transpile/g, ''); - return statsString; + + fs.writeFileSync(path.join(paths.actualOutput, statsFileName), statsString); } } diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/bundle.js index 3070ad2a3..60f7f137c 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/bundle.js @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt index 006ebe934..ce5d245f0 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch0/output.txt @@ -6,10 +6,4 @@ ../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/out/index.js] 130 bytes {main} - - Asset Size Chunks Chunk Names -bundle.js 4.37 KiB main [emitted] main -Entrypoint main = bundle.js -[./app.ts] 131 bytes {main} -[./lib/out/index.js] 161 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 130 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/output.txt index 8cbabebc0..4f26ba788 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch1/output.txt @@ -2,4 +2,4 @@ bundle.js 4.4 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/out/index.js] 161 bytes {main} \ No newline at end of file +[./lib/out/index.js] 161 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/bundle.js index 2a571212e..e6463502c 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/bundle.js @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); +eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt index 2097642cb..45e4a892c 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch3/output.txt @@ -6,10 +6,4 @@ ../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/out/index.js] 161 bytes {main} - - Asset Size Chunks Chunk Names -bundle.js 4.4 KiB main [emitted] main -Entrypoint main = bundle.js -[./app.ts] 169 bytes {main} -[./lib/out/index.js] 156 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 161 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/output.txt index c5a7e0e80..337d531c9 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.8/patch4/output.txt @@ -2,7 +2,7 @@ bundle.js 4.42 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 186 bytes {main} [built] [1 error] -[./lib/out/index.js] 156 bytes {main} +[./lib/out/index.js] 156 bytes {main} [built] ERROR in app.ts ./app.ts diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js deleted file mode 100644 index db2c96801..000000000 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/bundle.js +++ /dev/null @@ -1,113 +0,0 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./app.ts": -/*!****************!*\ - !*** ./app.ts ***! - \****************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); - -/***/ }), - -/***/ "./lib/out/index.js": -/*!**************************!*\ - !*** ./lib/out/index.js ***! - \**************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); - -/***/ }) - -/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt deleted file mode 100644 index e981876f3..000000000 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch0/output.txt +++ /dev/null @@ -1,5 +0,0 @@ - Asset Size Chunks Chunk Names -bundle.js 4.4 KiB main [emitted] main -Entrypoint main = bundle.js -[./app.ts] 167 bytes {main} -[./lib/out/index.js] 161 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt index bda35c374..0cc24db4b 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch1/output.txt @@ -2,4 +2,4 @@ bundle.js 4.44 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/out/index.js] 161 bytes {main} \ No newline at end of file +[./lib/out/index.js] 161 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/bundle.js deleted file mode 100644 index d4ea42a43..000000000 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/bundle.js +++ /dev/null @@ -1,113 +0,0 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./app.ts": -/*!****************!*\ - !*** ./app.ts ***! - \****************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); - -/***/ }), - -/***/ "./lib/out/index.js": -/*!**************************!*\ - !*** ./lib/out/index.js ***! - \**************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\nexports.__esModule = true;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); - -/***/ }) - -/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt index 901a8dc53..19b95a267 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch3/output.txt @@ -6,10 +6,4 @@ ../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/out/index.js] 161 bytes {main} - - Asset Size Chunks Chunk Names -bundle.js 4.44 KiB main [emitted] main -Entrypoint main = bundle.js -[./app.ts] 205 bytes {main} -[./lib/out/index.js] 156 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 161 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/output.txt index f1084ccfc..85d645c15 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.8/patch4/output.txt @@ -2,4 +2,4 @@ bundle.js 4.45 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 222 bytes {main} [built] -[./lib/out/index.js] 156 bytes {main} \ No newline at end of file +[./lib/out/index.js] 156 bytes {main} [built] \ No newline at end of file From 43695e466935863f1bb1a41220146cef0ad80cb8 Mon Sep 17 00:00:00 2001 From: John Reilly Date: Tue, 14 Apr 2020 19:54:06 +0100 Subject: [PATCH 20/20] update package.json and CHANGELOG.md --- CHANGELOG.md | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb7fe1ebc..19489e522 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v7.0.0 +* [Project reference support enhancements](https://github.com/TypeStrong/ts-loader/pull/1076) - thanks @sheetalkamat! +* Following the end of life of Node 8, `ts-loader` no longer supports Node 8 **BREAKING CHANGE** + ## v6.2.2 * [Enable typescript 3.8.3 support when using `webpack.config.ts` files](https://github.com/TypeStrong/ts-loader/issues/1072) - thanks @vladimiry! diff --git a/package.json b/package.json index a86dafb6d..375e3e539 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-loader", - "version": "6.2.2", + "version": "7.0.0", "description": "TypeScript loader for webpack", "main": "index.js", "types": "dist",