Skip to content

Commit

Permalink
Show how output is different when module resolution resolves to .js/.…
Browse files Browse the repository at this point in the history
…d.ts files
  • Loading branch information
sheetalkamat committed Oct 3, 2019
1 parent c9c2f41 commit 12b586c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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?");

/***/ })

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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?");

/***/ })

Expand Down
Original file line number Diff line number Diff line change
@@ -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]
[./lib/out/index.js] 130 bytes {main} [built]
Original file line number Diff line number Diff line change
@@ -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 71 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]
[./lib/out/index.js] 130 bytes {main} [built]

0 comments on commit 12b586c

Please sign in to comment.