Commit Graph

242 Commits

Author SHA1 Message Date
Tobias Koppers f753f92c28 ensureChunk to RuntimeModule
step 1: non HMR cases
2018-11-29 16:16:39 +01:00
Tobias Koppers 507c2a85ce merge ExtendedAPIPlugin into APIPlugin 2018-11-29 16:05:39 +01:00
shaw 70b9a1b0b7 fix parameter missing when plugin type is a funtion 2018-11-26 22:37:08 +08:00
Tobias Koppers 7340fbb547 refactor Cache
add a new hookable Cache class
removed CachePlugin
add MemoryCachePlugin
refactor timestamps
create FileSystemInfo class
2018-09-27 13:20:19 +02:00
Tobias Koppers 17044bf9c6 Merge tag 'v4.20.0' into next
4.20.0
2018-09-25 16:20:42 +02:00
Tobias Koppers d48975c948 use types from schema 2018-09-21 11:04:19 +02:00
Tobias Koppers 56c613a669 add moduleIds deterministic for simpler long term caching 2018-09-18 17:49:19 +02:00
Tobias Koppers b4860ccebb refactor chunk id plugins 2018-09-05 14:28:52 +02:00
Tobias Koppers 4d7b5b3b5e Refactor module id plugins to be independent 2018-09-03 20:45:44 +02:00
Tobias Koppers 2dc22d0db0 add SingleEntryPlugin as deprecated export 2018-08-15 21:10:35 +02:00
Tobias Koppers 6d5310fbd6 allow multiple entryModules per chunk
allow to specify ChunkGroup to depend on
move entry modules into ChunkGraph
2018-08-15 11:51:16 +02:00
Tobias Koppers 3cf01999b5 add ChunkGraph
move chunk modules and module chunks into the ChunkGraph
remove outdated unit tests
2018-08-14 15:32:13 +02:00
Tobias Koppers cf5f1d723c format existing code 2018-07-30 21:29:21 +02:00
Tobias Koppers 66d3f319a6 Merge tag 'v4.16.2' into next
4.16.2
2018-07-23 12:19:16 +02:00
Tobias Koppers 5e72a6505a remove deprecated optimization options
and update test cases
2018-07-16 10:32:02 +02:00
Tobias Koppers 2b14ddc984 Merge tag 'v4.16.0' into next
4.16.0
2018-07-11 11:13:47 +02:00
Tobias Koppers 569c415623
Merge branch 'master' into enable-noImplicitThis 2018-07-11 08:43:26 +02:00
Tobias Koppers 3fc4eb752f add new options moduleIds and chunkIds
deprecate namedModules, hashedModuleIds, namedChunks
add a lot of TODOs for webpack 5
split OccurenceOrderPlugin into separate plugins for modules and chunks
add NaturalChunkOrderPlugin and enable it in development
2018-07-09 15:06:19 +02:00
Mohsen Azimi a0e1ad920e Enable noImplicitThis TypeScript compiler option 2018-07-05 08:07:46 +03:00
Tobias Koppers bd2e3448ec Merge tag 'v4.14.0' into next
4.14.0
2018-07-04 22:10:53 +02:00
Florent Cailhol 91663f19a2 Remove deprecated APIs 2018-06-27 10:08:12 +02:00
Tobias Koppers 50fe2e79ee add Compilation.getDependencyReference and hooks to override it
expose DependencyReference class
2018-06-23 15:13:14 +02:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Tobias Koppers 41a0482e7d
Merge pull request #6839 from webpack/feature/contenthash
add [contenthash] support
2018-03-26 15:43:16 +02:00
Tobias Koppers 296542ed79 add [contenthash] support 2018-03-24 12:08:36 +01:00
Florent Cailhol b43db8745e Use 'Object.defineProperty' instead of 'Reflect.defineProperty' 2018-03-24 11:43:19 +01:00
Tobias Koppers 2c8ea60368 expose stuff and all non-bundle modules 2018-03-03 15:41:30 +01:00
Tobias Koppers d50fa68fe1
add newlines 2018-02-26 18:22:25 +01:00
Naveen Jain 05174aeaaf Added version to webpack's export property 2018-02-26 14:10:38 +05:30
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
kingdaro 96345c2487 fix style errors 2018-01-30 04:07:28 -05:00
kingdaro 69c2f1a635 refactor(removed plugin errors): use custom error class 2018-01-30 03:28:04 -05:00
kingdaro b6becb40c0 refactor(removed plugin errors): take object as first parameter 2018-01-30 03:06:56 -05:00
kingdaro 3b2e331790 doc: add notes to remove in v5 2018-01-30 02:37:17 -05:00
kingdaro b1f81a5e3e fix: improve error message 2018-01-30 02:36:17 -05:00
kingdaro d1d0f95585 style: add missing semicolons 2018-01-29 20:20:59 -05:00
kingdaro 94db1bd21c feat: add helpful error messages for removed plugins 2018-01-29 20:07:21 -05:00
Tobias Koppers 7a1b357aad
Merge branch 'next' into for_of_loops 2018-01-24 09:01:31 +01:00
Florent Cailhol d4811b0d37 Use for-of loops instead of forEach 2018-01-23 22:53:18 +01:00
Florent Cailhol aa7d5d5554 Sort exports 2018-01-23 21:02:51 +01:00
Florent Cailhol ba7cedf79f Expose plugins required by worker-loader 2018-01-23 21:00:09 +01:00
Tobias Koppers ebab3e0f8e
Merge pull request #6341 from webpack/refactor/chunk-group-part-2
Refactor chunk graph
2018-01-22 05:21:22 +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
Sean Larkin d235a61412 feat(profiling): add profiling plugin 2018-01-18 19:02:27 -08:00
Tobias Koppers 7baf6aff08
Merge pull request #6281 from webpack/feature/auto-ccp
Add AutomaticCommonsChunksPlugin and config options and defaults
2018-01-11 11:15:26 +01:00
Tobias Koppers 417044f065 add AutomaticCommonsChunksPlugin
enable it by default for async chunks
add options for initial chunks
2018-01-10 18:58:26 +01:00
Florent Cailhol 67f31aeebc Remove deprecated DedupePlugin 2018-01-09 17:09:18 +01:00
Tobias Koppers 289ba67ed6 expose Stats 2017-12-29 11:07:51 +01:00
Florent Cailhol 7dd41b55c6 Replace deprecated Tapable#apply by Plugin#apply 2017-12-20 11:53:56 +01:00
Tobias Koppers 2148f556a4 Enable minimizing in production mode 2017-12-14 00:06:56 +01:00
Tobias Koppers 7d87f34269 Only create one RequestShortener per Compiler
move Compiler.context assignment into Compiler
2017-12-04 12:23:42 +01:00
Tobias Koppers e0549996d7 Merge branch 'next' into refactoring/plugin-system-all 2017-11-29 13:56:08 +01:00
Tobias Koppers dae9de6595 Merge branch 'next' into feature/validate-plugin-options
# Conflicts:
#	lib/SourceMapDevToolPlugin.js
#	lib/optimize/AggressiveSplittingPlugin.js
#	yarn.lock
2017-11-28 09:59:59 +01:00
Tobias Koppers 31e9625dfe upgrade tapable for Compiler 2017-11-27 21:01:44 +01:00
Tobias Koppers 8149c5e1f1 fix linting issues 2017-11-21 13:23:12 +01:00
Tobias Koppers 639446cc58 remove the NoErrorsPlugin
#5985
2017-11-20 12:49:28 +01:00
Sergey Petushkov cdd593b847 Rename schemas; Make imports less verbose 2017-11-12 09:48:08 +01:00
Tobias Koppers 00f2b5ede7 advanced module type refactoring
added json type
.mjs default to javascript/esm type
adjusted parser plugins to react on module type
2017-11-11 19:27:19 +01:00
Tobias Koppers f7c2f8e470 Update code style to arrow functions 2017-11-08 11:56:01 +01:00
Tobias Koppers 5abd69680d Merge branch 'master' into next
# Conflicts:
#	lib/Compilation.js
#	test/statsCases/optimize-chunks/expected.txt
2017-10-11 19:26:00 +02:00
Tim Sebastian 9e5b7f4418 add ContextExclusionPlugin to allow excluding files/paths from lookup for contexts 2017-09-25 22:10:35 +10:00
Tobias Koppers 794b883f0a Merge branch 'next' into deprecation/webpack-3 2017-09-22 14:30:04 +02:00
Tobias Koppers c383d5ea7f rename `pure-module` to `side-effects` 2017-09-14 15:12:36 +02:00
Tobias Koppers bc41e60424 options defaulter returns new object 2017-09-14 14:16:36 +02:00
Tobias Koppers 7ceac63f07 add support for pure modules 2017-09-14 09:44:42 +02:00
Tobias Koppers f04cce8278 clone options and don't modify them
fixes #5628
2017-09-06 12:10:16 +02:00
Tobias Koppers 08c535d678 fix lint and bug 2017-07-24 11:15:45 +02:00
Tobias Koppers ab7bac8ec6 Refactor exporting to be webpackable 2017-07-24 11:15:45 +02:00
Tobias Koppers 9b2a9fa786 Scope Hoisting 2017-05-21 09:15:41 +02:00
Tobias Koppers 83ad4b0f35 Merge pull request #4169 from kball/IS4156-multicompiler-watch-options
Update MultiCompiler and lib/webpack to better support multiple watchOptions
2017-04-04 18:21:13 +02:00
Tim Sebastian 9bfae7e1c8 add NamedChunksPlugin as a exposed plugin 2017-03-26 20:30:52 +11:00
Kevin Ball ea2f25f319 Update MultiCompiler and lib/webpack to better support multiple watchOptions 2017-02-01 15:14:18 -08:00
Tobias Koppers 8e69a80847 code linting 2017-01-11 12:29:01 +01:00
chico 3ec94070b7 refactor(es6): Upgrade lib/webpack.js to es6 2017-01-02 03:12:08 +03: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 b46da21589 move plugins before environment 2016-12-21 22:56:04 +01:00
Tobias Koppers f4ab7fc7e2 more performance improvements 2016-12-14 16:22:54 +01:00
Kees Kluskens aa4c5a0932 Implement feedback 2016-11-03 15:02:14 +01:00
Kees Kluskens 985a651e0f Implement feedback
- Rename `validateWebpackOptions` -> `validationSchema`
- Export `WebpackOptionsValidationError` on webpack.
2016-11-02 17:27:02 +01:00
Kees Kluskens 2bbd3652bf Expose schema validator as `webpack.validateSchema 2016-11-02 11:41:01 +01:00
Kees Kluskens f3040fed9c Don't use a default schema 2016-11-01 23:38:54 +01:00
Tobias Koppers 8c3d97d933 add test
better error messages
validate array
more options in schema
stricter schema
fix some old configs
2016-09-19 00:54:35 +02:00
Gajus Kuizinas 4526824177 feat: utilise WebpackOptionsValidationError 2016-09-17 20:21:07 +01:00
Gajus Kuizinas 992f5c807e feat: throw error with validationErrors property 2016-09-17 20:21:07 +01:00
Gajus Kuizinas bebc397123 fix: do not console.log in the API 2016-09-17 20:21:07 +01:00
Gajus Kuizinas cee956dbb7 feat: log validation errors to the console 2016-09-17 20:21:07 +01:00
Gajus Kuizinas 3ef4538f8d feat: validate webpack options against a schema 2016-09-17 20:21:07 +01:00
Tobias Koppers a0a920d83f added experimental plugin to set custom module ids 2016-09-16 01:18:21 +02:00
Tobias Koppers c3e6fcf36a fixed beautify issues 2016-09-08 21:41:03 +02:00
Tobias Koppers a14e563f67 removed LabeledModules 2016-09-07 12:25:02 +02:00
Tobias Koppers 8b03d2b4f9 closes #2659 2016-08-17 13:08:42 +02:00
Tobias Koppers 2f618e733a refactoring and aggressive-splitting plugin 2016-07-13 11:03:14 +02:00
Michael McDermott 7a4dc0b17e fix: fix typo in error message 2016-06-24 23:44:05 -04:00
Ryan Berdeen edf12b4195 remove export of ResolverPlugin which no longer exists 2016-05-22 12:29:53 -04:00
Tobias Koppers b3bc542796 warn users when passing a weird object as options
i. e. when passing a es6 module like #2376
2016-05-05 09:00:55 +02:00
Sascha Gehlich ae76261151 🐛 Fix `watch` option recognition with multiple compilers 2016-04-04 11:20:52 +02:00
Tobias Koppers 5aeef4a792 added HashedModuleIdsPlugin 2015-11-29 20:16:01 +01:00
Tobias Koppers 37e9515cc4 remove deprecated stuff 2015-11-20 08:37:56 +01:00
Tobias Koppers 67656b90e2 split uglify-js from loader minimize, better shortcut defaults 2015-11-16 23:11:15 +01: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