Tobias Koppers
50ec72a6ca
use the full hash on modules that need the full hash of the compilation
...
use getFullHash runtime module for updating the hash in HMR
2020-04-30 17:57:01 +02:00
Ivan Kopeykin
0549f28e49
fix #10725
2020-04-26 18:40:12 +03:00
evilebottnawi
dafa4cd69a
chore: setup cspell
2020-03-12 19:51:26 +03:00
Tobias Koppers
39e407e927
normalize entry option and reduce normalization in EntryOptionPlugin
2020-02-26 17:36:06 +01:00
Tobias Koppers
f1dd328779
refactor library system
2020-02-26 17:35:52 +01:00
Tobias Koppers
6477ca56f8
Split options defaulting in normalization and defaults
...
Apply defaults after plugins are applied to allow plugins to feature their own defaults.
This allows to make preset plugins.
2020-02-17 19:12:54 +01:00
Tobias Koppers
edecce586b
handle dependOn at start of buildChunkGraph
...
handle jsonp chunk loading correctly for child entrypoints
add error message for incorrect dependOn
2020-02-11 09:12:13 +01:00
Sergey Melyukov
c31d941899
dependOn feature
...
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2020-02-11 09:11:00 +01:00
Tobias Koppers
fe3c1d83ba
cleanup
2020-02-10 13:04:28 +01:00
Sergey Melyukov
d6c9953c94
feat: implement entry.filename option
2020-02-07 13:00:25 +03:00
Tobias Koppers
152fa4ce97
Merge pull request #10334 from smelukov/entry-descriptor
...
Add entrypoint descriptor with `import` property
2020-02-05 09:34:46 +01:00
Tobias Koppers
645263f023
make compiler/compilation.cache read-only, to make it easier to find incompatible plugins
...
fixes #10341
2020-02-05 08:39:12 +01:00
Tobias Koppers
8d65bd7580
rename Compilation.entryDependencies -> entries
...
and store dependencies and options
2020-02-04 22:35:20 +01:00
Tobias Koppers
18ae77ef56
addEntry takes options object instead of only name
...
remove duplication in EntryOptionsPlugin and DynamicEntryPlugin
lazy require (Dynamic)EntryPlugin in EntryOptionsPlugin
2020-02-04 21:21:42 +01:00
Tobias Koppers
e96695a18a
add more time logging
2020-01-30 16:10:56 +01:00
Tobias Koppers
522d80f33b
allocate less for empty Sets for runtime requirements and file/context/missingDependencies
2020-01-29 21:46:14 +01:00
Tobias Koppers
d16abb3294
detect cycles during this.loadModule from loader
...
fix #10152
2019-12-20 12:50:55 +01:00
Tobias Koppers
f12b8abcc0
Create error class for cache store errors
2019-12-16 21:06:27 +01:00
Sergey Melyukov
5d18a8e27d
persistent cache for concat modules
2019-12-16 21:06:24 +01:00
Emanuele Stoppa
e607681277
fix: replaced some TODO with correct types and fixed some runtime issue
2019-11-28 22:48:01 +01:00
Sergey Melyukov
a214be41a0
add deprecation codes
2019-11-14 17:03:15 +03:00
Tobias Koppers
90971dc0e6
use SyncHook for afterFinishAssets
2019-11-12 13:24:58 +01:00
Sergey Melyukov
f69f386855
fix review
2019-11-12 13:20:56 +01:00
Tobias Koppers
ed81ad0fa4
allocate warnings and errors arrays only when needed
2019-11-10 21:05:16 +01:00
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