Skip to content

Commit

Permalink
prepare for 2.0.3 release (#510)
Browse files Browse the repository at this point in the history
* prepare for 2.0.3 release
regenerate test data for webpack 2.3.1

* Delete irrelevant file
  • Loading branch information
johnnyreilly committed Mar 22, 2017
1 parent 5e20c2c commit 6c73327
Show file tree
Hide file tree
Showing 30 changed files with 155 additions and 153 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v2.0.3

- [Don't include appended TS extension in webpack dependencies](https://github.com/TypeStrong/ts-loader/pull/497) - thanks again @wearymonkey!

## v2.0.2

- [Fix performance regression related to using getTimes() by tracking timestamps](https://github.com/TypeStrong/ts-loader/pull/500) - thanks @wearymonkey
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-loader",
"version": "2.0.2",
"version": "2.0.3",
"description": "TypeScript loader for webpack",
"main": "index.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony default export */ __webpack_exports__["a"] = "Hello from submodule";
/* harmony default export */ __webpack_exports__["a"] = ("Hello from submodule");

/***/ }),
/* 1 */
Expand All @@ -81,7 +81,7 @@
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__submodule_submodule__ = __webpack_require__(0);

/* harmony default export */ __webpack_exports__["default"] = __WEBPACK_IMPORTED_MODULE_0__submodule_submodule__["a" /* default */];
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__submodule_submodule__["a" /* default */]);

/***/ })
/******/ ]);
16 changes: 9 additions & 7 deletions test/comparison-tests/codeSplitting/expectedOutput-2.2/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,17 @@
/******/ if(installedChunks[chunkId] === 0)
/******/ return Promise.resolve();
/******/
/******/ // an Promise means "currently loading".
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
/******/ var script = document.createElement('script');
Expand All @@ -88,13 +95,8 @@
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/
/******/ head.appendChild(script);
/******/
/******/ return promise;
/******/ };
/******/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Asset Size Chunks Chunk Names
0.bundle.js 249 bytes 0 [emitted]
bundle.js 6.67 kB 1 [emitted] main
bundle.js 6.72 kB 1 [emitted] main
chunk {0} 0.bundle.js 72 bytes {1} [rendered]
[0] ./.test/codeSplitting/c.ts 36 bytes {0} [built]
[1] ./.test/codeSplitting/d.ts 36 bytes {0} [built]
Expand Down
2 changes: 1 addition & 1 deletion test/comparison-tests/errors/expectedOutput-2.2/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
/* 0 */
/***/ (function(module, exports) {

throw new Error("Module parse failed: E:/source/ts-loader/index.js??ref--0!/errors/app.ts Unexpected token (1:9)\nYou may need an appropriate loader to handle this file type.\n| var a = == 0;\n| ");
throw new Error("Module parse failed: C:/source/ts-loader/index.js??ref--0!/errors/app.ts Unexpected token (1:9)\nYou may need an appropriate loader to handle this file type.\n| var a = == 0;\n| ");

/***/ })
/******/ ]);
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
/* 0 */
/***/ (function(module, exports) {

throw new Error("Module parse failed: E:/source/ts-loader/index.js??ref--0!/errors.transpile/app.ts Unexpected token (3:9)\nYou may need an appropriate loader to handle this file type.\n| \"use strict\";\n| exports.__esModule = true;\n| var a = == 0;\n| ");
throw new Error("Module parse failed: C:/source/ts-loader/index.js??ref--0!/errors.transpile/app.ts Unexpected token (3:9)\nYou may need an appropriate loader to handle this file type.\n| \"use strict\";\n| exports.__esModule = true;\n| var a = == 0;\n| ");

/***/ })
/******/ ]);
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,17 @@
/******/ if(installedChunks[chunkId] === 0)
/******/ return Promise.resolve();
/******/
/******/ // an Promise means "currently loading".
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
/******/ var script = document.createElement('script');
Expand All @@ -88,13 +95,8 @@
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/
/******/ head.appendChild(script);
/******/
/******/ return promise;
/******/ };
/******/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Asset Size Chunks Chunk Names
0.bundle.js 377 bytes 0 [emitted]
bundle.js 7.23 kB 1 [emitted] main
bundle.js 7.28 kB 1 [emitted] main
chunk {0} 0.bundle.js 200 bytes {1} [rendered]
[0] ./.test/es6codeSplitting/c.ts 100 bytes {0} [built]
[1] ./.test/es6codeSplitting/d.ts 100 bytes {0} [built]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ Child html-webpack-plugin for "index.html":
index.html 544 kB 0
chunk {0} index.html 541 kB [entry] [rendered]
[0] ./~/lodash/lodash.js 540 kB {0} [built]
[1] (webpack)/buildin/global.js 488 bytes {0} [built]
[2] (webpack)/buildin/module.js 495 bytes {0} [built]
[3] ./~/html-webpack-plugin/lib/loader.js!./~/html-webpack-plugin/default_index.ejs 538 bytes {0} [built]
[1] ./~/html-webpack-plugin/lib/loader.js!./~/html-webpack-plugin/default_index.ejs 538 bytes {0} [built]
[2] (webpack)/buildin/global.js 488 bytes {0} [built]
[3] (webpack)/buildin/module.js 495 bytes {0} [built]
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ Child html-webpack-plugin for "index.html":
index.html 544 kB 0
chunk {0} index.html 541 kB [entry] [rendered]
[0] ./~/lodash/lodash.js 540 kB {0} [built]
[1] (webpack)/buildin/global.js 488 bytes {0} [built]
[2] (webpack)/buildin/module.js 495 bytes {0} [built]
[3] ./~/html-webpack-plugin/lib/loader.js!./~/html-webpack-plugin/default_index.ejs 538 bytes {0} [built]
[1] ./~/html-webpack-plugin/lib/loader.js!./~/html-webpack-plugin/default_index.ejs 538 bytes {0} [built]
[2] (webpack)/buildin/global.js 488 bytes {0} [built]
[3] (webpack)/buildin/module.js 495 bytes {0} [built]
4 changes: 2 additions & 2 deletions test/comparison-tests/instance/expectedOutput-2.2/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ chunk {0} bundle.js (b) 167 bytes [entry] [rendered]
chunk {1} (a) 167 bytes [entry] [rendered]
[0] ./.test/instance/a.ts 167 bytes {1} [built] [failed] [1 error]

ERROR in ./.test/instance/a.ts
ERROR in ./.test/instance/b.ts
Module build failed: A file specified in tsconfig.json could not be found: i-dont-exist

ERROR in ./.test/instance/b.ts
ERROR in ./.test/instance/a.ts
Module build failed: A file specified in tsconfig.json could not be found: i-dont-exist

ERROR in chunk a [entry]
Expand Down
16 changes: 8 additions & 8 deletions test/comparison-tests/issue372/expectedOutput-2.2/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
/******/ ([
Expand All @@ -73,18 +73,12 @@
"use strict";

exports.__esModule = true;
var sString = __webpack_require__(1);
var sString = __webpack_require__(2);
exports.s = sString;


/***/ }),
/* 1 */
/***/ (function(module, exports) {

module.exports = 'a';

/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Expand All @@ -95,5 +89,11 @@ var foo;
foo.bar = 'foobar' + foo_1.s;


/***/ }),
/* 2 */
/***/ (function(module, exports) {

module.exports = 'a';

/***/ })
/******/ ]);
4 changes: 2 additions & 2 deletions test/comparison-tests/issue372/expectedOutput-2.2/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
bundle.js 3.02 kB 0 [emitted] main
chunk {0} bundle.js (main) 221 bytes [entry] [rendered]
[0] ./.test/issue372/foo.ts 90 bytes {0} [built]
[1] ./.test/issue372/~/a/index.js 21 bytes {0} [built]
[2] ./.test/issue372/app.ts 110 bytes {0} [built]
[1] ./.test/issue372/app.ts 110 bytes {0} [built]
[2] ./.test/issue372/~/a/index.js 21 bytes {0} [built]
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
/******/ ([
Expand All @@ -73,18 +73,12 @@
"use strict";

exports.__esModule = true;
var sString = __webpack_require__(1);
var sString = __webpack_require__(2);
exports.s = sString;


/***/ }),
/* 1 */
/***/ (function(module, exports) {

module.exports = 'a';

/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Expand All @@ -95,5 +89,11 @@ var foo;
foo.bar = 'foobar_patch0' + foo_1.s;


/***/ }),
/* 2 */
/***/ (function(module, exports) {

module.exports = 'a';

/***/ })
/******/ ]);

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
bundle.js 3.03 kB 0 [emitted] main
chunk {0} bundle.js (main) 228 bytes [entry] [rendered]
[0] ./.test/issue372/foo.ts 90 bytes {0}
[1] ./.test/issue372/~/a/index.js 21 bytes {0}
[2] ./.test/issue372/app.ts 117 bytes {0} [built]
[1] ./.test/issue372/app.ts 117 bytes {0} [built]
[2] ./.test/issue372/~/a/index.js 21 bytes {0}

0 comments on commit 6c73327

Please sign in to comment.