Commit Graph

32 Commits

Author SHA1 Message Date
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
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
Tobias Koppers d3a9712193 bug fixing 2014-02-03 18:12:19 +01:00
Tobias Koppers b6a1c40545 show error details 2014-01-21 16:24:17 +01:00
Tobias Koppers bc843d005c fixed even more of the tests 2013-10-16 08:57:37 +02:00
Tobias Koppers 392c6db063 more useful error when using require.extensions #104 2013-10-11 10:42:25 +02:00