Commit Graph

75 Commits

Author SHA1 Message Date
Tobias Koppers e9c0d068dd refactor filesystem interfaces
add Compiler.intermediateFileSystem
avoid using `path` and `fs` module when possible
move `join`, `mkdirp` and `dirname` into utils
join and dirname is optional in FileSystem interface
remove mkdirp from Filesystem interface
2019-06-11 17:32:58 +02:00
Tobias Koppers c5f94f3b6a don't emit and load JS files for chunks without JS modules
allow custom module types in rules
allow configCases to access stats
2019-05-22 13:12:15 +02:00
Tobias Koppers b66143f706 Merge tag 'v4.30.0' into next
4.30.0
2019-05-09 21:34:28 +02:00
Tobias Koppers f7d0c2545f Improve way how System is tested 2019-04-10 13:48:47 +02:00
Tobias Koppers d34d69e62b Merge tag 'v4.29.5' into next
4.29.5
2019-02-19 08:58:46 +01:00
Tobias Koppers 180f912493 Merge tag 'v4.29.2' into next
4.29.2
2019-02-06 15:37:11 +01:00
Tobias Koppers 5fe66199c0 fix liniting 2019-02-05 10:00:33 +01:00
Tobias Koppers f446bf8a9b add ability to load dependent chunks for non-web targets
This allows to use `splitChunks` for initial chunks in i. e. node and webworker targets
2018-12-29 12:48:59 +01:00
Tobias Koppers 123b0a64e7 add plugin system for Stats presets, defaults, creation and printing 2018-12-18 22:07:14 +01:00
Florent Cailhol 9caaa664f7 Refactor webpack main 2018-12-09 15:32:03 +01:00
Tobias Koppers a54645ab5b fix test cases 2018-11-29 16:24:00 +01:00
Philip Walton a2cc0313ab Add tests for default source map extensions 2018-09-05 18:41:39 -07:00
Tobias Koppers 01cfe5b67a improve way of adding exported tests to test tree 2018-08-02 14:45:50 +02:00
Tobias Koppers a4825654eb upgrade jest 2018-07-10 16:02:02 +02:00
Tobias Koppers 378f31b4f9 increase timeout for ConfigTestCases 2018-07-08 21:37:12 +02:00
Tobias Koppers 5c4ffd5b90 fix tests and code 2018-06-28 11:11:24 +02:00
Tobias Koppers db668b7549 move fake document to ConfigTestCases
minor style issues
add test case
2018-06-04 17:49:55 +02:00
Tobias Koppers 4a541303c9 Upgrade jest
increase timeout
fix hanging
avoid inspector in CI
setup jest caching
2018-05-24 12:52:48 +02:00
Tobias Koppers 63a4145e3f clear output directory on test start 2018-05-17 17:42:00 +02:00
Florent Cailhol f63d6fa4bb Replace sinon by jest's mocks 2018-05-07 15:26:09 +02:00
Tobias Koppers 908b4654bf remove spammy output in CI 2018-04-30 17:26:37 +02:00
Bazyli Brzóska 002b04fe9c no need for is-ci package + use stderr for live printing 2018-04-26 23:39:04 +02:00
Bazyli Brzóska 3655f05103 add a workaround for jest clearing up the wrong resource 2018-04-19 15:54:34 +02:00
Bazyli Brzóska 18813fc16b tests: prepare the output directory before compiling 2018-04-19 12:54:24 +02:00
Bazyli Brzóska dc6d02cec1 add CI logging during compilation execution 2018-04-19 11:52:59 +02:00
Bazyli Brzóska 2be0965f96 Merge branch 'master' of https://github.com/webpack/webpack into jest
# Conflicts:
#	package.json
#	test/ConfigTestCases.test.js
#	yarn.lock
2018-04-18 19:54:24 +02:00
Tobias Koppers 57e09a67a1 add test for prefetch, preload and script loading jsonp runtime 2018-04-16 17:43:45 +02:00
Florent Cailhol e6562319fe Move prepareOptions to test helpers 2018-04-14 21:46:33 +02:00
Bazyli Brzóska 75253e7154 Merge branch 'master' of https://github.com/webpack/webpack into jest
# Conflicts:
#	.eslintrc.js
#	package.json
#	test/BenchmarkTestCases.benchmark.js
#	test/ConfigTestCases.test.js
#	test/NodeWatchFileSystem.unittest.js
#	test/TestCases.test.js
#	test/WatcherEvents.test.js
#	test/cases/parsing/extract-require/index.js
#	test/configCases/parsing/harmony-this/index.js
#	test/statsCases/async-commons-chunk/expected.txt
#	yarn.lock
2018-04-10 23:36:20 +02:00
Bazyli Brzóska aff29fe3ba run prettier across the codebase 2018-04-10 22:52:22 +02:00
Tobias Koppers 06e9a5709b get rid of webpackJsonp global leak 2018-03-24 12:08:37 +01:00
Bazyli Brzóska 3abb6e7939 jest: more fixes for running tests well 2018-03-07 00:16:19 +01:00
Bazyli Brzóska 49ff3d4e18 define tests asynchronously 2018-03-05 22:48:18 +01:00
Josh Soref 581069bb56 spelling: uncaught 2018-02-26 02:50:05 +00:00
Bazyli Brzóska 36e8e30875 run prettier on existing code 2018-02-25 11:46:17 +01:00
Tobias Koppers f32bd41c52 fix linting 2018-02-25 02:15:37 +01:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Bazyli Brzóska 47a16ebea6 split TestCases into mulitple files for better batching in jest 2018-02-25 01:16:11 +01:00
Bazyli Brzóska f0ef3fd6ae add testConfig.timeout to ConfigTestCases 2018-01-27 16:34:51 +01:00
Bazyli Brzóska 37e002cd38 ConfigTextCases: add expect to globalContext 2018-01-27 16:04:17 +01:00
Bazyli Brzóska 009772cb20 jest migration: use forced tests 2018-01-26 22:26:41 +01:00
Tobias Koppers 18ae73dad4 Refactor chunk graph
Chunks are now always in ChunkGroups
ChunkGroups have parents and children, Chunks no longer have this
AsyncDependenciesBlocks point to a ChunkGroup instead of a list of chunks
Entrypoint is now a ChunkGroup (extends from it)
move stuff graph modification methods into GraphHelpers
Change chunk id recording to source-based
Chunks have parents, siblings and children in Stats
rename AutomaticCommonsChunksPlugin to SplitChunksPlugin
add request property to origin (ChunkGroup)
remove moveToParent from AggressiveMergingPlugin
fix issues with AggressiveSplittingPlugin
remove CommonsChunkPlugin
add optimization.runtimeChunk (RuntimeChunkPlugin)
fix a filename bug for initial chunks
remove extract-text-webpack-plugin from test suite
add DebugHash to help debugging hash issues
fix issues with entry modules in different chunk as runtime
redo optimization.splitChunks options
Compilation.entrypoints is now a Map
Compilation.chunkGroups has been added
remove some unittests
update examples
update tests with CommonsChunkPlugin
2018-01-19 19:21:30 +01:00
Tobias Koppers 0b26a6b777 disable minimizer for config test cases 2018-01-10 17:10:12 +01:00
Tobias Koppers b824776c1b better error reporting in config cases 2017-11-27 15:04:53 +01:00
Tobias Koppers 2201b860a5 Add mode option and choose defaults depending on mode
add optimization options
use development mode for watch/hot/config tests
use production mode for integration/stats tests
create output directory if not existing
move __esModule to runtime
fix dependency behavior for cases without usedExports
2017-11-24 08:17:17 +01:00
Tobias Koppers 5941ab0d0c fix linting errors 2017-11-15 14:08:11 +01:00
Tobias Koppers 2919a9cd53 prevent crashing when error out early in bail mode
fixes #5787
2017-10-11 15:28:18 +02:00
Tobias Koppers 9357ae0254 Refactor precendence rules for harmony exports for better performance
fixes #5763
2017-10-09 15:28:59 +02:00
Anders D. Johnson 24ac48d2f5
feat: support config functions with multi-compiler 2017-07-01 13:28:20 -05:00
Shubheksha Jalan 0ae224335b refactor(ES5): ConfigTestCases.test.js 2017-01-18 14:38:00 +05:30