Commit Graph

54 Commits

Author SHA1 Message Date
Steven Hargrove e6864e4ac6 support windows for snapshot 2019-01-12 22:35:19 -05:00
Steven Hargrove 82b7428a4c rewrite errors tests, cleanup, update snapshots 2019-01-12 22:35:12 -05:00
Steven Hargrove e6afd236c4 added tests for swallowed loader errors, fixed another swallowed error 2019-01-11 19:14:49 -05: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 a262b83580 remove globalPath and useChunkHash feature
It's no longer needed, because we hash the runtime how
2018-10-24 09:39:51 +02:00
Tobias Koppers 5b7987abf4 remove console.log 2018-10-17 21:25:46 +02:00
Tobias Koppers 3c244d9fc9 Optimize error origin handling and module trace
Improve warnings and errors sorting
2018-09-12 13:16:59 +02:00
Abdulrahman Alkhelaifi 80c3e433c4 Handle module.require, require.main.require, and module.parent.require
- Resolve module.require dependencies

- Add require.main.require and module.parent.require as unsupported
2018-07-19 13:41:58 -07:00
Tobias Koppers 7765901cc6 fix test case 2018-06-05 16:50:37 +02:00
Tobias Koppers ca8edc0d6d Fix test case for changed error message 2018-06-05 13:41:14 +02:00
Ma Cheng 957ee2a63e
Merge branch 'master' into feature/module-build-error-with-loader-name 2018-06-02 17:19:16 +08: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
mc-zone 1159935fe8 change tests to Jest 2018-05-01 22:44:37 +08:00
Ma Cheng 3e66954ec1
Merge branch 'master' into feature/module-build-error-with-loader-name 2018-05-01 21:34:27 +08:00
mc-zone 92a28df10a add done() 2018-04-29 11:59:50 +08:00
mc-zone 9c13d51141 improve message format; prevent destructure crash; improve tests; 2018-03-18 22:56:36 +08:00
mc-zone ce63b53522 remove loader origin name and purify 2018-03-02 17:57:46 +08:00
mc-zone 36303a0ae8 merge from master 2018-03-02 17:56:34 +08:00
Bazyli Brzóska 36e8e30875 run prettier on existing code 2018-02-25 11:46:17 +01:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
mc-zone d045d57e1f falsy checking; improve tests; fix typo 2018-02-22 22:28:54 +08:00
mc-zone 16c1f9e42c (from xxx) => (@ xxx); fix test 2018-02-22 08:50:47 +08:00
mc-zone b09a76234c fix beautify-lint 2018-02-22 01:12:32 +08:00
mc-zone 86d6bb094f fix lint 2018-02-22 01:06:02 +08:00
mc-zone 9cfb71122b improve tests 2018-02-22 01:02:01 +08:00
mc-zone a3243520dd add tests 2018-02-21 17:43:02 +08:00
Florent Cailhol cd419d0546 Migrate integration tests to Jest 2018-01-24 17:29:57 +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 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 639446cc58 remove the NoErrorsPlugin
#5985
2017-11-20 12:49:28 +01:00
Shubheksha Jalan 8e884b1d9c refacotr(ES6): Errors.test.js 2017-01-18 15:59:38 +05:30
Alistair Brown 7a43c0ef25 Update missing should type check calls 2017-01-02 00:44:24 +00:00
Elod-Arpad Szopos 082dc17472 No errors plugin deprecate (#3570)
* added deprecation with unit test
* added deprecation for NoErrorsPlugin in favor of NoEmitOnErrorsPlugin with unit test
* add new NoEmitOnErrorsPlugin to exports and add an extra unit test to check that there is no warning when using it
* added test for NoEmitOnErrorsPlugin in case of error
* git ignore temporary test fixtures
2016-12-30 09:52:37 +01:00
Tobias Koppers 2f6fc4d561 sort modules in warning for more consistent warnings 2016-06-08 00:22:43 +02:00
Tobias Koppers 8ee43c88b8 improve case sensitive warning 2016-06-04 19:51:22 +02:00
Tobias Koppers eb202abeb0 Case warning prints module names
#2362
2016-05-05 15:19:54 +02:00
Tobias Koppers 33d954229b updated plugin calls to options object 2015-10-31 16:31:10 +01:00
Tobias Koppers 7934faa181 Merge branch 'master' into webpack-2
Conflicts:
	.travis.yml
	bin/config-optimist.js
	package.json
	test/TestCases.test.js
2015-08-09 13:32:19 +02:00
Tobias Koppers c0afdf9c6a beautify tests, lint hot and scripts 2015-08-09 12:42:43 +02:00
Tobias Koppers cf30eeeb0f Merge branch 'master' into webpack-2
Conflicts:
	lib/ChunkTemplate.js
	lib/Compilation.js
	lib/HotModuleReplacement.runtime.js
	test/TestCases.test.js
	test/statsCases/chunks/expected.txt
	test/statsCases/simple-more-info/expected.txt
	test/statsCases/simple/expected.txt
2015-07-01 00:44:17 +02:00
Tobias Koppers 02522f11c3 throw an error when trying to use [chunkhash]
... when it's not allowed.
I. e. with HMR enabled [chunkhash] for the entry chunk
is not allowed. Now it throws an error.

Also fixes a bug where [chunkhash] doesn't have to correct
length. fixes #1192
2015-06-27 11:34:17 +02:00
Tobias Koppers 2245c4acca Promise based chunk loading API
don't flag entry module with `0` id anymore
use extra argument in chunk instead
this allows to require entry points
2015-06-13 11:45:28 +02:00
Tobias Koppers f4b9d5f57a Merge branch 'master' into webpack-2
Conflicts:
	lib/Compilation.js
	lib/Compiler.js
	lib/DefinePlugin.js
	lib/HotModuleReplacementPlugin.js
	lib/Parser.js
	lib/node/NodeSourcePlugin.js
	lib/node/OldNodeWatchFileSystem.js
	package.json
2015-04-27 20:22:13 +02:00
Tobias Koppers 84b34151da emit an error when using the CommonChunksPlugin wrongly
#946
2015-04-26 22:47:47 +02:00
Tobias Koppers 6d183d4044 fix more tests 2015-03-05 22:58:03 +01:00
Tobias Koppers 36be6337ee fixed test 2014-06-12 06:34:27 +02:00
Tobias Koppers 9b35600494 fixes errors test 2014-05-26 11:36:59 +02:00
Tobias Koppers ee3c53c7ce Fix test case for case-sensitive filesystems 2014-03-31 11:39:01 +02:00
Tobias Koppers 998870d9ee Warn about modules with matching names if case is ignored
fixes #210
2014-03-31 11:33:17 +02:00