From dc48cab6e212bffe9d32dd481744a026f837270b Mon Sep 17 00:00:00 2001 From: James Brantly Date: Wed, 13 Jan 2016 00:04:25 -0500 Subject: [PATCH] Add support for specifying target: es6 and module: commonjs at the same time. Additionally, simplify logic for loading the default lib. --- index.ts | 14 ++--- .../expectedOutput-1.8/bundle.transpiled.js | 53 +++++++++++++++++++ .../expectedOutput-1.8/output.transpiled.txt | 4 ++ .../expectedOutput-1.7/bundle.js | 4 -- .../expectedOutput-1.7/output.txt | 6 +-- .../expectedOutput-1.8/bundle.js | 4 -- .../expectedOutput-1.8/output.txt | 6 +-- test/es6withCJS/app.ts | 1 + test/es6withCJS/expectedOutput-1.6/output.txt | 6 +++ test/es6withCJS/expectedOutput-1.7/bundle.js | 51 ++++++++++++++++++ test/es6withCJS/expectedOutput-1.7/output.txt | 4 ++ test/es6withCJS/expectedOutput-1.8/bundle.js | 53 +++++++++++++++++++ test/es6withCJS/expectedOutput-1.8/output.txt | 4 ++ test/es6withCJS/tsconfig.json | 6 +++ test/es6withCJS/webpack.config.js | 17 ++++++ .../bundle.js.transpiled.map | 1 + .../expectedOutput-1.8/output.transpiled.txt | 5 ++ test/issue92/expectedOutput-1.7/bundle.js | 18 +------ test/issue92/expectedOutput-1.7/output.txt | 8 +-- test/issue92/expectedOutput-1.8/bundle.js | 24 ++------- test/issue92/expectedOutput-1.8/output.txt | 8 +-- 21 files changed, 229 insertions(+), 68 deletions(-) create mode 100644 test/es6/expectedOutput-1.8/bundle.transpiled.js create mode 100644 test/es6/expectedOutput-1.8/output.transpiled.txt create mode 100644 test/es6withCJS/app.ts create mode 100644 test/es6withCJS/expectedOutput-1.6/output.txt create mode 100644 test/es6withCJS/expectedOutput-1.7/bundle.js create mode 100644 test/es6withCJS/expectedOutput-1.7/output.txt create mode 100644 test/es6withCJS/expectedOutput-1.8/bundle.js create mode 100644 test/es6withCJS/expectedOutput-1.8/output.txt create mode 100644 test/es6withCJS/tsconfig.json create mode 100644 test/es6withCJS/webpack.config.js create mode 100644 test/issue81/expectedOutput-1.8/bundle.js.transpiled.map create mode 100644 test/issue81/expectedOutput-1.8/output.transpiled.txt diff --git a/index.ts b/index.ts index 98d97f4fb..5f4118bc2 100644 --- a/index.ts +++ b/index.ts @@ -275,14 +275,10 @@ function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): { instance.compilerOptions = objectAssign(compilerOptions, configParseResult.options); filesToLoad = configParseResult.fileNames; - var libFileName = 'lib.d.ts'; - - // Special handling for ES6 targets - if (compilerOptions.target == 2 /* ES6 */) { + // special handling for TS 1.6 and target: es6 + if (compilerCompatible && semver.lt(compiler.version, '1.7.3-0') && compilerOptions.target == 2 /* ES6 */) { compilerOptions.module = 0 /* None */; - libFileName = 'lib.es6.d.ts'; } - libFileName = path.join(path.dirname(require.resolve(loaderOptions.compiler)), libFileName); if (loaderOptions.transpileOnly) { // quick return for transpiling @@ -297,10 +293,6 @@ function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): { return { instance: instances[loaderOptions.instance] = { compiler, compilerOptions, loaderOptions, files }}; } - if (!compilerOptions.noLib) { - filesToLoad.push(libFileName); - } - // Load initial files (core lib files, any files specified in tsconfig.json) filesToLoad.forEach(filePath => { filePath = path.normalize(filePath); @@ -356,7 +348,7 @@ function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): { }, getCurrentDirectory: () => process.cwd(), getCompilationSettings: () => compilerOptions, - getDefaultLibFileName: options => libFileName, + getDefaultLibFileName: options => compiler.getDefaultLibFilePath(options), getNewLine: () => newLine, log: log, resolveModuleNames: (moduleNames: string[], containingFile: string) => { diff --git a/test/es6/expectedOutput-1.8/bundle.transpiled.js b/test/es6/expectedOutput-1.8/bundle.transpiled.js new file mode 100644 index 000000000..1ff074227 --- /dev/null +++ b/test/es6/expectedOutput-1.8/bundle.transpiled.js @@ -0,0 +1,53 @@ +/******/ (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] = { +/******/ exports: {}, +/******/ id: moduleId, +/******/ loaded: false +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.loaded = 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; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ function(module, exports) { + + "use strict"; + ({ get x() { return 1; } }); + Symbol; + + +/***/ } +/******/ ]); \ No newline at end of file diff --git a/test/es6/expectedOutput-1.8/output.transpiled.txt b/test/es6/expectedOutput-1.8/output.transpiled.txt new file mode 100644 index 000000000..6e3479eec --- /dev/null +++ b/test/es6/expectedOutput-1.8/output.transpiled.txt @@ -0,0 +1,4 @@ + Asset Size Chunks Chunk Names +bundle.js 1.44 kB 0 [emitted] main +chunk {0} bundle.js (main) 51 bytes [rendered] + [0] ./.test/es6/app.ts 51 bytes {0} [built] \ No newline at end of file diff --git a/test/es6resolveParent/expectedOutput-1.7/bundle.js b/test/es6resolveParent/expectedOutput-1.7/bundle.js index e6c3747d0..76556388d 100644 --- a/test/es6resolveParent/expectedOutput-1.7/bundle.js +++ b/test/es6resolveParent/expectedOutput-1.7/bundle.js @@ -46,10 +46,6 @@ "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var BaseComponent = function BaseComponent() { diff --git a/test/es6resolveParent/expectedOutput-1.7/output.txt b/test/es6resolveParent/expectedOutput-1.7/output.txt index 38096ee4e..c8ded4b3a 100644 --- a/test/es6resolveParent/expectedOutput-1.7/output.txt +++ b/test/es6resolveParent/expectedOutput-1.7/output.txt @@ -1,4 +1,4 @@ Asset Size Chunks Chunk Names -bundle.js 1.76 kB 0 [emitted] main -chunk {0} bundle.js (main) 365 bytes [rendered] - [0] ./.test/es6resolveParent/index.tsx 365 bytes {0} [built] \ No newline at end of file +bundle.js 1.69 kB 0 [emitted] main +chunk {0} bundle.js (main) 299 bytes [rendered] + [0] ./.test/es6resolveParent/index.tsx 299 bytes {0} [built] \ No newline at end of file diff --git a/test/es6resolveParent/expectedOutput-1.8/bundle.js b/test/es6resolveParent/expectedOutput-1.8/bundle.js index e6c3747d0..76556388d 100644 --- a/test/es6resolveParent/expectedOutput-1.8/bundle.js +++ b/test/es6resolveParent/expectedOutput-1.8/bundle.js @@ -46,10 +46,6 @@ "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var BaseComponent = function BaseComponent() { diff --git a/test/es6resolveParent/expectedOutput-1.8/output.txt b/test/es6resolveParent/expectedOutput-1.8/output.txt index 38096ee4e..c8ded4b3a 100644 --- a/test/es6resolveParent/expectedOutput-1.8/output.txt +++ b/test/es6resolveParent/expectedOutput-1.8/output.txt @@ -1,4 +1,4 @@ Asset Size Chunks Chunk Names -bundle.js 1.76 kB 0 [emitted] main -chunk {0} bundle.js (main) 365 bytes [rendered] - [0] ./.test/es6resolveParent/index.tsx 365 bytes {0} [built] \ No newline at end of file +bundle.js 1.69 kB 0 [emitted] main +chunk {0} bundle.js (main) 299 bytes [rendered] + [0] ./.test/es6resolveParent/index.tsx 299 bytes {0} [built] \ No newline at end of file diff --git a/test/es6withCJS/app.ts b/test/es6withCJS/app.ts new file mode 100644 index 000000000..e005d4d66 --- /dev/null +++ b/test/es6withCJS/app.ts @@ -0,0 +1 @@ +export default 'a'; \ No newline at end of file diff --git a/test/es6withCJS/expectedOutput-1.6/output.txt b/test/es6withCJS/expectedOutput-1.6/output.txt new file mode 100644 index 000000000..863f4ef0c --- /dev/null +++ b/test/es6withCJS/expectedOutput-1.6/output.txt @@ -0,0 +1,6 @@ + +ERROR in ./.test/es6withCJS/app.ts +Module parse failed: index.js!app.ts Line 1: Unexpected token +You may need an appropriate loader to handle this file type. +| export default 'a'; +| \ No newline at end of file diff --git a/test/es6withCJS/expectedOutput-1.7/bundle.js b/test/es6withCJS/expectedOutput-1.7/bundle.js new file mode 100644 index 000000000..5951836e4 --- /dev/null +++ b/test/es6withCJS/expectedOutput-1.7/bundle.js @@ -0,0 +1,51 @@ +/******/ (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] = { +/******/ exports: {}, +/******/ id: moduleId, +/******/ loaded: false +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.loaded = 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; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ function(module, exports) { + + exports.default = 'a'; + + +/***/ } +/******/ ]); \ No newline at end of file diff --git a/test/es6withCJS/expectedOutput-1.7/output.txt b/test/es6withCJS/expectedOutput-1.7/output.txt new file mode 100644 index 000000000..68141e943 --- /dev/null +++ b/test/es6withCJS/expectedOutput-1.7/output.txt @@ -0,0 +1,4 @@ + Asset Size Chunks Chunk Names +bundle.js 1.41 kB 0 [emitted] main +chunk {0} bundle.js (main) 23 bytes [rendered] + [0] ./.test/es6withCJS/app.ts 23 bytes {0} [built] \ No newline at end of file diff --git a/test/es6withCJS/expectedOutput-1.8/bundle.js b/test/es6withCJS/expectedOutput-1.8/bundle.js new file mode 100644 index 000000000..02c18d8c2 --- /dev/null +++ b/test/es6withCJS/expectedOutput-1.8/bundle.js @@ -0,0 +1,53 @@ +/******/ (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] = { +/******/ exports: {}, +/******/ id: moduleId, +/******/ loaded: false +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.loaded = 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; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ function(module, exports) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = 'a'; + + +/***/ } +/******/ ]); \ No newline at end of file diff --git a/test/es6withCJS/expectedOutput-1.8/output.txt b/test/es6withCJS/expectedOutput-1.8/output.txt new file mode 100644 index 000000000..3b17aece2 --- /dev/null +++ b/test/es6withCJS/expectedOutput-1.8/output.txt @@ -0,0 +1,4 @@ + Asset Size Chunks Chunk Names +bundle.js 1.49 kB 0 [emitted] main +chunk {0} bundle.js (main) 100 bytes [rendered] + [0] ./.test/es6withCJS/app.ts 100 bytes {0} [built] \ No newline at end of file diff --git a/test/es6withCJS/tsconfig.json b/test/es6withCJS/tsconfig.json new file mode 100644 index 000000000..77863fcb8 --- /dev/null +++ b/test/es6withCJS/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "target": "es6", + "module": "commonjs" + } +} \ No newline at end of file diff --git a/test/es6withCJS/webpack.config.js b/test/es6withCJS/webpack.config.js new file mode 100644 index 000000000..aae026d84 --- /dev/null +++ b/test/es6withCJS/webpack.config.js @@ -0,0 +1,17 @@ +module.exports = { + entry: './app.ts', + output: { + filename: 'bundle.js' + }, + resolve: { + extensions: ['', '.ts', '.js'] + }, + module: { + loaders: [ + { test: /\.ts$/, loader: 'ts-loader' } + ] + } +} + +// 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 diff --git a/test/issue81/expectedOutput-1.8/bundle.js.transpiled.map b/test/issue81/expectedOutput-1.8/bundle.js.transpiled.map new file mode 100644 index 000000000..0086c62cf --- /dev/null +++ b/test/issue81/expectedOutput-1.8/bundle.js.transpiled.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/bootstrap [hash]","webpack:///./a.ts"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;ACtCA,aAAY,CAAC;;;;AACb,KAAI,UAAU,GAAI,aAAQ,UAAK,UAAU,IAAK,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE;AACnF,SAAI,CAAC,GAAG,SAAS,CAAC,MAAM;SAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;SAAE,CAAC,CAAC;AAC7H,SAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,KAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;AAClJ,YAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;EACjE,CAAC;AALF,cAAa,MAAW;AACpB,YAAO,MAAM,CAAC;EACjB;AAGD;;EAEC;AAHD,mBAAC,GAAG,CASH,EAAE,GAAG,CATF,C","file":"bundle.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap [hash]\n **/","\nfunction bar(target: any) {\n return target;\n}\n\n@bar\nclass Foo {\n \n}\n\n\n/** WEBPACK FOOTER **\n ** ./a.ts\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/test/issue81/expectedOutput-1.8/output.transpiled.txt b/test/issue81/expectedOutput-1.8/output.transpiled.txt new file mode 100644 index 000000000..aee20621f --- /dev/null +++ b/test/issue81/expectedOutput-1.8/output.transpiled.txt @@ -0,0 +1,5 @@ + Asset Size Chunks Chunk Names + bundle.js 2.42 kB 0 [emitted] main +bundle.js.map 2.52 kB 0 [emitted] main +chunk {0} bundle.js, bundle.js.map (main) 896 bytes [rendered] + [0] ./.test/issue81/a.ts 896 bytes {0} [built] \ No newline at end of file diff --git a/test/issue92/expectedOutput-1.7/bundle.js b/test/issue92/expectedOutput-1.7/bundle.js index 50bb65232..cad134f0e 100644 --- a/test/issue92/expectedOutput-1.7/bundle.js +++ b/test/issue92/expectedOutput-1.7/bundle.js @@ -46,18 +46,8 @@ 'use strict'; - Object.defineProperty(exports, '__esModule', { - value: true - }); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var _submoduleSubmodule = __webpack_require__(1); - - var _submoduleSubmodule2 = _interopRequireDefault(_submoduleSubmodule); - - exports['default'] = _submoduleSubmodule2['default']; - module.exports = exports['default']; + var submodule_1 = __webpack_require__(1); + exports['default'] = submodule_1['default']; /***/ }, /* 1 */ @@ -65,11 +55,7 @@ "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); exports["default"] = "Hello from submodule"; - module.exports = exports["default"]; /***/ } /******/ ]); \ No newline at end of file diff --git a/test/issue92/expectedOutput-1.7/output.txt b/test/issue92/expectedOutput-1.7/output.txt index f53665b61..800b9b8d4 100644 --- a/test/issue92/expectedOutput-1.7/output.txt +++ b/test/issue92/expectedOutput-1.7/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 2.03 kB 0 [emitted] main -chunk {0} bundle.js (main) 565 bytes [rendered] - [0] ./.test/issue92/app.ts 404 bytes {0} [built] - [1] ./.test/issue92/submodule/submodule.tsx 161 bytes {0} [built] \ No newline at end of file +bundle.js 1.63 kB 0 [emitted] main +chunk {0} bundle.js (main) 170 bytes [rendered] + [0] ./.test/issue92/app.ts 111 bytes {0} [built] + [1] ./.test/issue92/submodule/submodule.tsx 59 bytes {0} [built] \ No newline at end of file diff --git a/test/issue92/expectedOutput-1.8/bundle.js b/test/issue92/expectedOutput-1.8/bundle.js index 50bb65232..5080187ed 100644 --- a/test/issue92/expectedOutput-1.8/bundle.js +++ b/test/issue92/expectedOutput-1.8/bundle.js @@ -44,32 +44,18 @@ /* 0 */ /***/ function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, '__esModule', { - value: true - }); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - var _submoduleSubmodule = __webpack_require__(1); - - var _submoduleSubmodule2 = _interopRequireDefault(_submoduleSubmodule); - - exports['default'] = _submoduleSubmodule2['default']; - module.exports = exports['default']; + "use strict"; + var submodule_1 = __webpack_require__(1); + Object.defineProperty(exports, "__esModule", { value: true }); + exports["default"] = submodule_1["default"]; /***/ }, /* 1 */ /***/ function(module, exports) { "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); + Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = "Hello from submodule"; - module.exports = exports["default"]; /***/ } /******/ ]); \ No newline at end of file diff --git a/test/issue92/expectedOutput-1.8/output.txt b/test/issue92/expectedOutput-1.8/output.txt index f53665b61..ecf8ef11c 100644 --- a/test/issue92/expectedOutput-1.8/output.txt +++ b/test/issue92/expectedOutput-1.8/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 2.03 kB 0 [emitted] main -chunk {0} bundle.js (main) 565 bytes [rendered] - [0] ./.test/issue92/app.ts 404 bytes {0} [built] - [1] ./.test/issue92/submodule/submodule.tsx 161 bytes {0} [built] \ No newline at end of file +bundle.js 1.75 kB 0 [emitted] main +chunk {0} bundle.js (main) 294 bytes [rendered] + [0] ./.test/issue92/app.ts 173 bytes {0} [built] + [1] ./.test/issue92/submodule/submodule.tsx 121 bytes {0} [built] \ No newline at end of file