Commit Graph

66 Commits

Author SHA1 Message Date
Tobias Koppers b2e7837288 replace Object.assign with object spread 2019-06-19 13:16:05 +02:00
Tobias Koppers 6db94536ad Merge tag 'v4.34.0' into next
4.34.0
2019-06-13 10:51:12 +02:00
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
Lex Alexander 2cd6489579 Added test to account for module parsing failure for binary files 2019-06-04 11:45:48 -07:00
Tobias Koppers aa78e27a44 fix splitting of windows newlines
move fixture
update snapshots
2019-06-04 14:48:46 +02:00
Tobias Koppers 45582c51e7 avoid loading from rule set, simplify 2019-06-03 17:00:50 +02:00
Lex Alexander 1c6e7a9344 feat(NormalModule/ModuleParseError): Show loaders used from config when module parsing fails
-Closes #9025
2019-05-29 14:11:49 -07:00
Tobias Koppers 8bd62c353c fix merge issue 2019-05-09 21:54:24 +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 9181283029 fix newlines 2019-01-15 17:10:54 +01:00
Tobias Koppers 78cee8b319 simplify regexp
[^()]+\(?.*\)? is equal to .*
2019-01-15 15:14:03 +01:00
Tobias Koppers 4d87fffad3 include loc in snapshots 2019-01-15 15:09:52 +01:00
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