Tobias Koppers
3369e34645
omit unneeded process.nextTick
2019-11-10 21:05:09 +01:00
Tobias Koppers
c0a79c0257
add missing inTry case
2019-11-10 21:05:02 +01:00
Tobias Koppers
b401713633
fix problem with snapshotting managed items
...
add support for child loggers
add logging for snapshot errors
improve FileSystemInfo logging
improve managed item reading performance
upgrade enhanced-resolve for readdir purge fix
2019-11-05 23:12:02 +01:00
Tobias Koppers
2f2125b4d1
add redirecting support to create correct exports info for exportsType=named
2019-11-05 10:38:02 +01:00
Tobias Koppers
39431ee8a5
add logging for invalid snapshots
2019-11-04 10:45:51 +01:00
Tobias Koppers
e8f2a8329d
avoid emitting files when they already exits in output filesystem
2019-11-04 09:23:18 +01:00
Tobias Koppers
951792b8eb
ModuleGraph can get weak flag from dependency itself
2019-10-30 07:48:43 +01:00
Tobias Koppers
8696017c55
add Dependency.getReferencedExports
...
remove Dependency.getReference
remove DependencyReference
2019-10-30 07:48:37 +01:00
Tobias Koppers
8d46b21fad
add Dependency.getCondition and conditional ModuleGraphConnections
...
getDependencyReference is no longer used to check of connection
2019-10-30 07:48:32 +01:00
Tobias Koppers
180eb8ba16
performance improvement
2019-10-30 07:48:30 +01:00
Tobias Koppers
09d6301712
Move weak flag from DependencyReference to Dependency
2019-10-30 07:48:26 +01:00
Tobias Koppers
dc06b66819
hoist comparators
2019-10-28 14:11:04 +01:00
Tobias Koppers
490329517d
improved assignDepth performance by iterating ModuleGraph instead of dependencies
2019-10-28 14:11:01 +01:00
Tobias Koppers
65bdb43180
fix badly chosen max fill rate for deterministic
...
sort modules by identifier in output file, that's better for gzip
2019-10-16 16:38:04 +02:00
Tobias Koppers
3f0920daa4
add additional compat layer for html-webpack-plugin compatibility
2019-10-10 13:48:56 +02:00
Tobias Koppers
f08c981388
emit code generation errors in deterministic order
2019-10-09 09:34:12 +02:00
Tobias Koppers
ddc3dae0e6
refactor Module.source() and Module.getRuntimeRequirements() into Module.codeGeneration
...
add code generation phase to Compilation
add `output.iife` options to remove iife wrapper
add `experiments.outputModule` which enabled `output.module`
add `output.module` which sets defaults to `output.iife: false`, `output.libraryTarget: "module"`, `output.jsonpScriptType: "module"`, `terserOptions.module: true`
add `output.module` example
improve runtime requirements needed by ConcatenatedModule
add entry inlining, which inlines entry module code into runtime scope (only when safe)
make whole bundle strict when all modules are strict
2019-10-08 23:59:48 +02:00
Tobias Koppers
53f68c9e7b
update deprecated usage of chunk and main templates
2019-10-08 23:46:33 +02:00
Tobias Koppers
69a545c444
Deprecate MainTemplate, ChunkTemplate, ModuleTemplate
...
move logic and hooks to JavascriptModulesPlugin
2019-10-08 23:46:26 +02:00
Tobias Koppers
f45ba2408e
remove items from runtime when unneeded
...
remove some hooks from MainTemplate, move some hooks to CompatRuntimeModule
add requireScope RuntimeGlobal
2019-10-08 23:46:23 +02:00
Tobias Koppers
b80174a069
Improve backward-compat for various things
...
to enable mini-css-extract-plugin
2019-09-26 22:06:54 +02:00
Tobias Koppers
27a5780704
Merge tag 'v4.40.1' into next
...
4.40.1
2019-09-13 11:31:09 +02:00
Tobias Koppers
7bde43f47a
Merge tag 'v4.40.0' into next
...
4.40.0
2019-09-13 11:12:26 +02:00
Tobias Koppers
e41fab0bc3
make multiple assets to the same filename a warning
...
check source content to when comparing assets for warning
2019-09-13 08:42:36 +02:00
Tobias Koppers
758269e814
add emit/updateAsset to Compilation
...
add asset info with
* immutable for long term cache-able asset
* size for the asset size in bytes
* development for devtools
* hotModuleReplacement for HMR assets
show asset info in stats
2019-09-11 14:43:42 +02:00
Tobias Koppers
e507392094
add output.ecmaVersion options to set emitted code style
...
fix a bug with prefetching initial chunks
InitFragments have get[End]Content methods which get a sourceContext
RuntimeModules have implicit chunk and compilation
changed default to `output.ecmaVersion: 2015`
2019-08-26 21:32:29 +02:00
Tobias Koppers
a2caa36b8e
add immutablePaths next to managedPaths for paths in the yarn cache
...
for PnP support
2019-08-20 14:50:07 +02:00
Tobias Koppers
e877e0ec91
Modules don't carry buildDependencies, they add them directly to compilation
...
buildDependencies should not be stored/cached as they are only effective when really build
2019-08-13 18:05:26 +02:00
Tobias Koppers
e5cecdad23
store build dependencies snapshot in pack
...
add snapshot shortcut for package manager managed paths
add cache.managedPaths
2019-08-13 17:02:37 +02:00
Tobias Koppers
856235d76f
track and config build dependencies
2019-08-12 23:07:41 +02:00
Tobias Koppers
95702bd1ae
avoid extra look for getting dependencies
2019-08-07 16:14:02 +02:00
Tobias Koppers
316319aab8
Optimize setting issue on modules
2019-08-07 16:14:01 +02:00
Tobias Koppers
c21fb4bd58
Add LazySet for file/context/missingDependencies for performance
2019-08-07 16:13:56 +02:00
Tobias Koppers
2587a3f125
Merge pull request #9430 from lingxiaoguang/master
...
the duplicate logic in buildModule callback and afterBuild
2019-07-27 18:41:32 +02:00
Tobias Koppers
2577687eab
Merge pull request #9478 from webpack/performance/chunk-graph-generation
...
improve chunk graph generation performance
2019-07-26 16:12:06 +02:00
Tobias Koppers
84d241bf89
Merge pull request #9475 from webpack/bugfix/minor
...
fix two minor bugs in webpack 5
2019-07-26 15:22:35 +02:00
Tobias Koppers
a430d5564c
move chunk graph building into separate file
2019-07-26 15:05:52 +02:00
Tobias Koppers
b7ff3239b5
Merge pull request #9477 from webpack/performance/progress-plugin
...
improve progress plugin performance and display
2019-07-26 15:03:59 +02:00
Tobias Koppers
ec69ed3278
fix stats option processing for objects with prototype chain (webpack-cli)
2019-07-26 14:01:28 +02:00
Tobias Koppers
c9f7567f12
add inline cache to processModuleDependencies
2019-07-26 13:59:15 +02:00
Tobias Koppers
1d76d07971
improve progress display for persistent caching
2019-07-26 13:48:45 +02:00
Tobias Koppers
126fb99121
move chunk graph building into separate file
...
refactor chunk graph generation to include available modules optimization
2019-07-26 07:53:28 +02:00
Tobias Koppers
2e25cd588b
Merge remote-tracking branch 'origin/next' into next
2019-07-24 10:52:04 +02:00
Tobias Koppers
c17dfde7a8
Merge tag 'v4.37.0' into next
...
4.37.0
2019-07-24 10:51:04 +02:00
Tobias Koppers
677ccd90ea
small fixes
2019-07-23 09:28:06 +02:00
Tobias Koppers
603d4026ed
remove incorrect casts, improve error handling
2019-07-23 08:50:57 +02:00
Tobias Koppers
183ddad98e
store profiling requests into the Stats too
2019-07-22 08:19:30 +02:00
Yuta Hiroto
8dcda23c36
feat(assetModule): add function type to assetModuleFilename
2019-07-21 23:05:12 +01:00
Tobias Koppers
d849160d3f
add logging API
...
Plugins:
Compiler.getInfrastructureLogger(name)
Compilation.getLogger(name)
Loader:
this.getLogger([name])
API equal to console API with these methods:
error, warn, info, log, debug,
time, timeLog, timeEnd,
group, groupCollapsed, groupEnd,
profile, profileEnd,
clear
2019-07-18 17:13:40 +02:00
zhaixuguang3081
d6df3f7a8b
remove anothor duplicate logic in addModuleDependencies afterBuild callback
2019-07-18 19:22:08 +08:00