Commit Graph

249 Commits

Author SHA1 Message Date
Tobias Koppers 48150a062e update types 2020-11-03 15:35:43 +01:00
Tobias Koppers 18495151b8 handle the case when execution order in a concatenated module is runtime-dependent
fix #11863
2020-10-29 17:53:56 +01:00
Tobias Koppers 6762521773 upgrade tooling for improved array types
fixes #11801
fixes #11850
2020-10-28 20:51:08 +01:00
Tobias Koppers e1b5a78a24 add optimization.sideEffects: "flag" and use this by default
analysing for side effects cause unnecessary changes in parent modules and we want to avoid that in development
2020-10-27 06:50:07 +01:00
Tobias Koppers 19f51535ca merge multiple import statements with different conditions correctly
improve hashing when conditional runtime evaluation is involved
add test cases
2020-10-27 06:48:54 +01:00
Tobias Koppers 7661ad868a generate code that executes depending on runtime
fixes #11770
2020-10-27 06:30:49 +01:00
Tobias Koppers 11a7cac537 add useSimpleSourceMap flag to enable/disable OriginalSource for generated code
pass reduced options object to Source.map() function
2020-10-26 16:33:38 +01:00
Tobias Koppers 22bc3dcdf2
Merge pull request #11771 from Cronus1007/master
followSymLinks Options Added with the snapshots and typings updated
2020-10-23 09:03:57 +02:00
Tobias Koppers 195a9408ff improve description 2020-10-22 18:58:14 +02:00
Cronus1007 7f76c2d722 followSymLinks Options Added with the snapshots and typings updated 2020-10-22 19:57:07 +05:30
Tobias Koppers 2ec90b3687 add asset info for `sourceFilename` and `javascriptModule` 2020-10-22 10:47:23 +02:00
Tobias Koppers 9342540a1f
Merge pull request #11721 from webpack/bugfix/asset-processing-order
fix order of asset optimization to fix conflict between compression-plugin and real hash plugin
2020-10-16 15:34:58 +02:00
Tobias Koppers 204caeee05 fix order of asset optimization to fix conflict between compression-plugin and real hash plugin 2020-10-16 14:42:46 +02:00
Tobias Koppers 0fe03c7af0 fix unused modules in chunk when optimizing runtime-specific
fixes #11673
2020-10-16 11:47:33 +02:00
Tobias Koppers 2888c8a406
Revert "fix unused modules in chunk when optimizing runtime-specific " 2020-10-15 20:17:26 +02:00
Tobias Koppers b1a11fc6b6
Merge pull request #11706 from liximomo/fix-api
fix: reorder params
2020-10-15 20:14:00 +02:00
liximomo 7d3008d5c6 fix: fix lint 2020-10-16 00:35:13 +08:00
Tobias Koppers 50c3a83340 fix unused modules in chunk when optimizing runtime-specific
fixes #11673
2020-10-15 10:18:41 +02:00
Tobias Koppers 0e2f3fbf5c
Merge pull request #11645 from wood1986/features/expose-entry-fn
fix: expose EntryPlugin creation
2020-10-13 14:25:45 +02:00
Tobias Koppers 65eca2e529 expose webpack from Compiler
fix some jsdoc descriptions
2020-10-12 20:16:58 +02:00
Tobias Koppers d870365d94 fix incorrect type 2020-10-12 09:45:19 +02:00
Tobias Koppers 3be5a9f2d9 expose DynamicEntryPlugin 2020-10-12 09:39:43 +02:00
Tobias Koppers 87c85e3fa3 cleanup, expose plugin class 2020-10-12 09:37:07 +02:00
Nitin Kumar 37c495c7ab export type RuleSetUseItem 2020-10-08 14:22:59 +05:30
Nitin Kumar 39faf34083 export type RuleSetUse 2020-10-08 14:09:05 +05:30
Nitin Kumar e5fd246353 export type RuleSetConditionAbsolute 2020-10-08 14:07:46 +05:30
Nitin Kumar 660baadbab export RuleSetCondition types 2020-10-08 14:05:58 +05:30
Tobias Koppers 8e562aa260 fix some nitpicks with active state 2020-10-07 09:36:41 +02:00
Tobias Koppers fcca1d649d analyse source code for side effects
mark the module as side effects free in such cases
allow 3rd state TRANSITIVE_ONLY to be side-effect-free but dependencies should still be included (for mini-css-extract-plugin)
2020-10-06 14:10:29 +02:00
Tobias Koppers 3390ab4c32 update enhanced-resolve and loader-runner for fragment escaping support
add fragment escaping support

fixes #11555
2020-09-30 10:22:26 +02:00
Tobias Koppers 68f0dbe748 allow plugins to modify the default size types for splitChunks 2020-09-29 14:34:59 +02:00
Tobias Koppers 4ea79e0683 update enhanced-resolve and webpack-sources
add resolve.preferRelative
set preferRelative for new URL() and new Worker() to fix relative requests
2020-09-28 20:43:03 +02:00
Tobias Koppers 6dad1d0d6b use better hash for renderManifest to avoid unnecessary invalidation
add bootstrap code to content hash
2020-09-28 11:42:05 +02:00
Aaron Tribou 0cf554f537
Merge branch 'master' into bugfix/accept-ignored-regex 2020-09-26 10:16:46 -05:00
Tobias Koppers ef9e623559
Merge pull request #11530 from webpack/feature/chunk-filename-function
output.chunkFilename can be a function
2020-09-25 19:47:42 +02:00
Tobias Koppers b8950e8581 output.chunkFilename can be a function 2020-09-25 16:03:05 +02:00
Tobias Koppers f2f0ea37f0
Merge pull request #11493 from rishabh3112/patch-1
feat: add watching property to compiler
2020-09-25 13:41:24 +02:00
Tobias Koppers 963d67178c expose classes needed to create a custom module type 2020-09-25 10:53:14 +02:00
Aaron Tribou e7bf987114
Check-in updates from special-lint-fix 2020-09-20 20:44:46 -05:00
Tobias Koppers ea075be453 add config.ignoreWarnings
deprecate stats.warningsFilter
2020-09-20 22:08:38 +02:00
Tobias Koppers 07fc554bef improve warnings and errors handling in stats
respect warningsFilter for warnings count
include child compilation warnings and errors in count
show hint for child compilation errors and warnings
2020-09-20 21:24:15 +02:00
Rishabh Chawla d23821ac70 chore: update types 2020-09-19 10:00:04 +05:30
Tobias Koppers f263359fd8 use output.importMetaName for import.meta 2020-09-18 10:55:37 +02:00
Tobias Koppers 4dc04d1971 Merge branch 'master' into dynamically-resolve-public-path 2020-09-18 10:40:39 +02:00
Tobias Koppers a8542d3317 fix circular references between containers and modules in containers 2020-09-17 10:44:52 +02:00
Ivan Kopeykin 49009486df support undo path 2020-09-16 23:20:44 +03:00
Tobias Koppers 96383923c8
Merge pull request #11478 from webpack/deps/enhanced-resolve
update enhanced-resolve
2020-09-16 08:38:14 +02:00
Tobias Koppers aadc15e740 update enhanced-resolve for
- imports field support
- resolve.fallback option

recommend resolve.fallback for polyfills
2020-09-16 07:28:32 +02:00
Tobias Koppers 3059c28a12
Merge pull request #11476 from webpack/error/mjs-extension
add breaking change info for fullySpecified resolving
2020-09-15 22:00:37 +02:00
Tobias Koppers 3d8f130ee3 add breaking change info for fullySpecified resolving
#11467
2020-09-15 15:12:15 +02:00