diff --git a/CHANGELOG.md b/CHANGELOG.md index 19489e522..0d62da038 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v7.0.1 +* [fix: watch-run](https://github.com/TypeStrong/ts-loader/pull/1083) - thanks @zn4rk + ## 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** diff --git a/package.json b/package.json index 375e3e539..58c92655c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-loader", - "version": "7.0.0", + "version": "7.0.1", "description": "TypeScript loader for webpack", "main": "index.js", "types": "dist", @@ -40,7 +40,7 @@ "ts" ], "engines": { - "node": ">=8.6" + "node": ">=10.0.0" }, "author": "John Reilly (https://blog.johnnyreilly.com)", "contributors": [ diff --git a/src/watch-run.ts b/src/watch-run.ts index 5a9df90d6..f744d4976 100644 --- a/src/watch-run.ts +++ b/src/watch-run.ts @@ -14,15 +14,15 @@ export function makeWatchRun(instance: TSInstance) { const startTime = 0; return (compiler: webpack.Compiler, callback: () => void) => { - const times = compiler.fileTimestamps; if (instance.loaderOptions.transpileOnly) { instance.reportTranspileErrors = true; } else { + const times = compiler.fileTimestamps; + for (const [filePath, date] of times) { - if ( - date > (lastTimes.get(filePath) || startTime) && - filePath.match(constants.tsTsxJsJsxRegex) !== null - ) { + const lastTime = lastTimes.get(filePath) || startTime; + + if (date <= lastTime) { continue; } diff --git a/test/comparison-tests/importsWatch/expectedOutput-3.8/patch1/bundle.js b/test/comparison-tests/importsWatch/expectedOutput-3.8/patch1/bundle.js new file mode 100644 index 000000000..93a3017f9 --- /dev/null +++ b/test/comparison-tests/importsWatch/expectedOutput-3.8/patch1/bundle.js @@ -0,0 +1,101 @@ +/******/ (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 foo;\nfoo.bar = 'foobar';\n\n\n//# sourceURL=webpack:///./app.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/importsWatch/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/importsWatch/expectedOutput-3.8/patch1/output.txt new file mode 100644 index 000000000..0ec8bb785 --- /dev/null +++ b/test/comparison-tests/importsWatch/expectedOutput-3.8/patch1/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names +bundle.js 3.83 KiB main [emitted] main +Entrypoint main = bundle.js +[./app.ts] 70 bytes {main} [built] [1 error] + +ERROR in app.ts +./app.ts +[tsl] ERROR in app.ts(4,1) + TS2322: Type '"foobar"' is not assignable to type 'boolean'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch2/bundle.js index cf3fad706..dd6bb719b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch2/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar helper_1 = __webpack_require__(/*! ./lib/helper */ \"./lib/helper.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, helper_1.helper.four); // consume new number\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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -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?"); +eval("\nexports.__esModule = true;\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n /***/ (function(module, exports, __webpack_require__) { "use strict"; -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?"); +eval("\nexports.__esModule = 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?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch2/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch2/output.txt index 658e70cb0..bb6f28d8f 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.8/patch2/output.txt @@ -1,8 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 4.95 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] -../tsconfig.tsbuildinfo 52.2 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.8 KiB main [emitted] main +../app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js -[./app.ts] 215 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} -[./lib/index.ts] 211 bytes {main} \ No newline at end of file +[./app.ts] 131 bytes {main} [built] +[./lib/helper.ts] 113 bytes {main} +[./lib/index.ts] 202 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch2/bundle.js index cf3fad706..dd6bb719b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.8/patch2/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar helper_1 = __webpack_require__(/*! ./lib/helper */ \"./lib/helper.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, helper_1.helper.four); // consume new number\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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -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?"); +eval("\nexports.__esModule = true;\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n /***/ (function(module, exports, __webpack_require__) { "use strict"; -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?"); +eval("\nexports.__esModule = 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?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/bundle.js index d01765a8e..ffee685a9 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -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?"); +eval("\nexports.__esModule = true;\nexports.helper = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n /***/ (function(module, exports, __webpack_require__) { "use strict"; -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?"); +eval("\nexports.__esModule = 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?"); /***/ }) 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 3231fc686..745347317 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,15 +1,15 @@ Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main + bundle.js 4.77 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] ../tsconfig.tsbuildinfo 51.8 KiB [emitted] ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] + ../lib/helper.js 134 bytes [emitted] + ../lib/helper.d.ts 87 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] + ../lib/index.js 222 bytes [emitted] + ../lib/index.d.ts 84 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] -[./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/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/bundle.js index d62de8dc5..2b5dfd8fd 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/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("\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?"); +eval("\nexports.__esModule = true;\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n /***/ (function(module, exports, __webpack_require__) { "use strict"; -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?"); +eval("\nexports.__esModule = 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?"); /***/ }) 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 d7abe1eec..8fa1a5d06 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,14 +1,14 @@ Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main + bundle.js 4.79 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] + ../lib/helper.js 147 bytes [emitted] + ../lib/helper.d.ts 105 bytes [emitted] ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] + ../lib/index.js 222 bytes [emitted] + ../lib/index.d.ts 84 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] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 113 bytes {main} [built] +[./lib/index.ts] 189 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch1/bundle.js index 026970b86..2b5dfd8fd 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch1/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar helper_1 = __webpack_require__(/*! ./lib/helper */ \"./lib/helper.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, helper_1.helper.four); // consume new number\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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -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?"); +eval("\nexports.__esModule = true;\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n /***/ (function(module, exports, __webpack_require__) { "use strict"; -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?"); +eval("\nexports.__esModule = 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?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt index 1f745612e..0a46fb1f5 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt @@ -1,8 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 4.94 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] -../tsconfig.tsbuildinfo 52.2 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.79 KiB main [emitted] main +../app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js -[./app.ts] 215 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} -[./lib/index.ts] 197 bytes {main} \ No newline at end of file +[./app.ts] 131 bytes {main} [built] +[./lib/helper.ts] 113 bytes {main} +[./lib/index.ts] 189 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch1/bundle.js index 026970b86..2b5dfd8fd 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.8/patch1/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nvar helper_1 = __webpack_require__(/*! ./lib/helper */ \"./lib/helper.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, helper_1.helper.four); // consume new number\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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -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?"); +eval("\nexports.__esModule = true;\nexports.helper = {\n one: 1,\n two: 2,\n three: 3,\n four: 4\n};\n\n\n//# sourceURL=webpack:///./lib/helper.ts?"); /***/ }), @@ -118,7 +118,7 @@ eval("\r\nexports.__esModule = true;\r\nexports.helper = {\r\n one: 1,\r\n /***/ (function(module, exports, __webpack_require__) { "use strict"; -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?"); +eval("\nexports.__esModule = 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?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/bundle.js index 7b491a754..0f1d8bc9b 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/bundle.js @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (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\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) 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 aeba9f805..a370d5b23 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,11 +1,11 @@ Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main + bundle.js 4.28 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] ../tsconfig.tsbuildinfo 51.8 KiB [emitted] ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] + ../lib/index.js 130 bytes [emitted] + ../lib/index.d.ts 84 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 +[./lib/index.ts] 97 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/bundle.js index e41275feb..73a45078f 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/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("\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\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) 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 f5e4a79c5..a3b37878c 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 + bundle.js 4.31 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] ../lib/index.js.map 220 bytes [emitted] - ../lib/index.js 169 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] + ../lib/index.js 161 bytes [emitted] + ../lib/index.d.ts 102 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 +[./lib/index.ts] 128 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch1/bundle.js index d7d6292ed..73a45078f 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch1/bundle.js @@ -94,7 +94,7 @@ /***/ (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?"); +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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (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\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt index 1bd711c1d..7feef8083 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch1/output.txt @@ -1,7 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] -../tsconfig.tsbuildinfo 51.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.31 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} \ No newline at end of file +[./app.ts] 131 bytes {main} [built] +[./lib/index.ts] 128 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch2/bundle.js index d7d6292ed..73a45078f 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch2/bundle.js @@ -94,7 +94,7 @@ /***/ (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?"); +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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (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\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) 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 88a870dc5..3ab0ee851 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,16 +1,16 @@ Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main + bundle.js 4.31 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] +[./app.ts] 131 bytes {main} [built] +[./lib/index.ts] 128 bytes {main} [built] [2 errors] -ERROR in lib\index.ts +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 +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_Composite_WatchApi/expectedOutput-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/bundle.js index 4baf2067a..afbe7375d 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch3/bundle.js @@ -94,7 +94,7 @@ /***/ (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?"); +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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (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\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) 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 11ad9943c..ba09cddb8 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 + bundle.js 4.31 KiB main [emitted] main ../app.d.ts 11 bytes [emitted] ../lib/index.js.map 227 bytes [emitted] - ../lib/index.js 165 bytes [emitted] - ../lib/index.d.ts 127 bytes [emitted] + ../lib/index.js 156 bytes [emitted] + ../lib/index.d.ts 120 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 +[./app.ts] 131 bytes {main} [built] +[./lib/index.ts] 123 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch4/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch4/bundle.js index 5399bc407..afbe7375d 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch4/bundle.js @@ -94,7 +94,7 @@ /***/ (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?"); +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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (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\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch4/output.txt index 5799ad642..3f824ff55 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch4/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch4/output.txt @@ -1,12 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 4.38 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] -../tsconfig.tsbuildinfo 51.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.31 KiB main [emitted] main +../app.d.ts 11 bytes [emitted] 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 +[./app.ts] 131 bytes {main} [built] +[./lib/index.ts] 123 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch5/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch5/bundle.js index 4d4687802..afbe7375d 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch5/bundle.js @@ -94,7 +94,7 @@ /***/ (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?"); +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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (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\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch5/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch5/output.txt index ca1060414..3f824ff55 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch5/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.8/patch5/output.txt @@ -1,7 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 4.38 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] -../tsconfig.tsbuildinfo 51.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.31 KiB main [emitted] main +../app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js -[./app.ts] 185 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} \ No newline at end of file +[./app.ts] 131 bytes {main} [built] +[./lib/index.ts] 123 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch1/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch1/bundle.js index d7d6292ed..73a45078f 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch1/bundle.js @@ -94,7 +94,7 @@ /***/ (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?"); +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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (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\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch2/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch2/bundle.js index d7d6292ed..73a45078f 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch2/bundle.js @@ -94,7 +94,7 @@ /***/ (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?"); +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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (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\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch3/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch3/bundle.js index 4baf2067a..afbe7375d 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch3/bundle.js @@ -94,7 +94,7 @@ /***/ (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?"); +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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (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\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch4/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch4/bundle.js index 5399bc407..afbe7375d 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch4/bundle.js @@ -94,7 +94,7 @@ /***/ (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?"); +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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (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\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch4/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch4/output.txt index 0593bdf58..f6dac8932 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch4/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch4/output.txt @@ -1,10 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 4.38 KiB main [emitted] main +bundle.js 4.31 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 +[./app.ts] 131 bytes {main} [built] +[./lib/index.ts] 123 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch5/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch5/bundle.js index 4d4687802..afbe7375d 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.8/patch5/bundle.js @@ -94,7 +94,7 @@ /***/ (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?"); +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?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (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\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ })