Commit Graph

70 Commits

Author SHA1 Message Date
jamesgeorge007 19a551a671 refactor: invoke createFsFromVolume as a function 2020-02-18 20:22:26 +05:30
jamesgeorge007 e1ec9e6bea chore: migrate to memfs 2020-02-18 20:22:10 +05:30
Tobias Koppers 782e4535ac Refactor how exportsType work
add flagged exportsType for __esModule flagged
add getExportsType to merge strict with exportsType
move CommonJsStuffPlugin into CommonJsPlugin
split CommonJsPlugin into imports and exports part
enable minimal tree shaking for CommonJs imports and exports
2019-12-06 11:13:08 +01:00
Sergey Melyukov faf784b6ab refactor hop runtime helper 2019-12-03 16:27:39 +03:00
Sergey Melyukov 6b59d113a4 optimize webpack runtime size 2019-12-02 17:59:37 +03:00
Tobias Koppers 84b6817f60 consistency and bugfixes for reexporting json 2019-11-05 10:39:12 +01:00
Tobias Koppers 5261758bed update test cases and snapshots 2019-11-04 21:11:16 +01:00
Tobias Koppers 18899d2d69 fix problem with retrying import() 2019-10-29 10:25:44 +01:00
Tobias Koppers 70bd9d6d50 fix test cases 2019-10-22 11:51:14 +02:00
Tobias Koppers 4c3d7c9cbb improve developer experience
add `stats.ids` options which is off by default in toString
sort modules by depth by default
show chunk id hints
improve module and chunks sorting in stats
automatically switch stats.modules off the modules are displayed in chunks
2019-10-10 20:22:13 +02:00
Tobias Koppers 80bc311d72 remove "use strict" from runtime things for bundle size reasons 2019-10-09 00:20:58 +02:00
Tobias Koppers ddc3dae0e6 refactor Module.source() and Module.getRuntimeRequirements() into Module.codeGeneration
add code generation phase to Compilation
add `output.iife` options to remove iife wrapper
add `experiments.outputModule` which enabled `output.module`
add `output.module` which sets defaults to `output.iife: false`, `output.libraryTarget: "module"`, `output.jsonpScriptType: "module"`, `terserOptions.module: true`
add `output.module` example
improve runtime requirements needed by ConcatenatedModule
add entry inlining, which inlines entry module code into runtime scope (only when safe)
make whole bundle strict when all modules are strict
2019-10-08 23:59:48 +02:00
Tobias Koppers f45ba2408e remove items from runtime when unneeded
remove some hooks from MainTemplate, move some hooks to CompatRuntimeModule
add requireScope RuntimeGlobal
2019-10-08 23:46:23 +02:00
Tobias Koppers aa06e18df1 fix merge error 2019-09-13 12:53:53 +02:00
Tobias Koppers e507392094 add output.ecmaVersion options to set emitted code style
fix a bug with prefetching initial chunks
InitFragments have get[End]Content methods which get a sourceContext
RuntimeModules have implicit chunk and compilation
changed default to `output.ecmaVersion: 2015`
2019-08-26 21:32:29 +02:00
Tobias Koppers f68bb833d2 Merge export getters in a module into single statement 2019-08-23 14:07:01 +02:00
Tobias Koppers db0805e309 update non-jest dependencies in range 2019-08-06 13:44:26 +02:00
Tobias Koppers fe790eea65 update eslint and lint-staged 2019-08-06 10:57:37 +02:00
Tobias Koppers dde6bda951 fix merge issue 2019-08-05 13:47:27 +02:00
Tobias Koppers 4fa8addeec Handle auxiliary files separately from normal files 2019-07-17 23:13:08 +02:00
Tobias Koppers 58a157334e fix merge snapshot update 2019-06-13 14:07:11 +02:00
Tobias Koppers d4651abe8e fix test failures 2019-06-05 16:10:08 +02:00
Tobias Koppers 70c28f929b fix merge issue 2019-05-20 16:59:50 +02:00
Tobias Koppers 924daa105b Use simpler/faster hash function to get a hash number
Use deterministic mangled names for exports
refactor assignDeterministicIds
rename __webpack_init__ function in wasm to ""
fix bug with incorrectly cached StaticExportsDependency
fix bug in hash logic of Module
2019-02-20 22:41:07 +01:00
Tobias Koppers e2e0983f4c remove splitChunks restriction for custom filenames on non-initial chunks
fix bug, which generated incorrect static url mapping for get chunk filename runtime module
optimize generated code for chunk filename (shorter)
2019-02-19 11:16:53 +01:00
Tobias Koppers 50d63602b5 fix stats assetsByChunkName
It's now always an array
2018-12-31 09:15:01 +01:00
Tobias Koppers 3079886e47 filter entrypoints from namedChunkGroups in Stats only for printing 2018-12-28 12:57:38 +01:00
Florent Cailhol e85d9d8447 Add namedChunkGroups tests 2018-12-28 09:56:11 +01:00
Tobias Koppers b3319a486d fix incorrect default for some options with all: false 2018-12-25 21:39:25 +01:00
Florent Cailhol 9caaa664f7 Refactor webpack main 2018-12-09 15:32:03 +01:00
Bazyli Brzóska 36e8e30875 run prettier on existing code 2018-02-25 11:46:17 +01:00
Florent Cailhol cd419d0546 Migrate integration tests to Jest 2018-01-24 17:29:57 +01:00
Tobias Koppers cf1d7b8949 `-!` keeps post loader instead of pre loader
add more test cases
2017-12-30 19:34:14 +01:00
Tobias Koppers 0c104a683f separate integration and unit tests, use codecov flags 2017-10-19 17:35:20 +02:00
Tobias Koppers 0f16dd95b1 fixes incorrect CLI stats output
add "detailed" preset
clean up presets to do more useful stuff

fixes #4141
fixes #4118
2017-06-01 15:03:26 +02:00
Tobias Koppers 8b81788a73 fixes for stats 2017-05-28 19:20:17 +02:00
Tim Sebastian ebb82b73e7 fixup function to be able to use arguments 2017-04-09 00:20:40 +10:00
Tobias Koppers d467eabf4c fix incorrect conversion to arrow function 2017-02-03 14:45:37 +01:00
Shubheksha Jalan c1befdd633 refactor(ES6): Stats.test.js 2017-01-18 20:41:11 +05:30
Tobias Koppers f1d56dcc74 add support for multiple different stats objects 2017-01-11 14:37:47 +01:00
Sean Larkin 03d37489fe Merge branch 'master' into bugfix/fix_stats_when_passed_array 2017-01-10 10:27:29 -06:00
Alistair Brown 7a43c0ef25 Update missing should type check calls 2017-01-02 00:44:24 +00:00
Sean Larkin 9014901b9c Merge branch 'master' into bugfix/fix_stats_when_passed_array 2016-12-29 14:34:02 -06:00
Tobias Koppers 71cf49a259 add depth to module
add depth to stats
fix stats spacing (fixes #3541)
add maxModules to stats, default to 15 (fixes #3540)
2016-12-21 18:03:20 +01:00
Sean Larkin a4106ea98f fix(stats): allow stats to respect config for MultiCompiler, MultiStats 2016-12-19 16:53:30 -06:00
Tobias Koppers 808b32ac61 added test cases for extract-text-plugin 2016-09-19 21:13:32 +02:00
Tobias Koppers ac340bce1d improved and fixed stats 2016-09-09 14:19:36 +02:00
Tobias Koppers c51c59cee1 update test cases for stats changes 2016-09-07 09:48:32 +02:00
Tobias Koppers 2f618e733a refactoring and aggressive-splitting plugin 2016-07-13 11:03:14 +02:00
Tobias Koppers 78307a937f allow to display used exports
support Tree Shaking with import *
fixes #2713
2016-06-29 01:17:59 +02:00