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
zhaixuguang3081
a27ccb49f8
the duplicate logic in buildModule callback and afterBuild
2019-07-18 13:27:39 +08:00
Tobias Koppers
cac462cba8
Merge pull request #8983 from hiroppy/feature/url
...
add experimental Url support
2019-07-17 23:32:15 +02:00
Tobias Koppers
4fa8addeec
Handle auxiliary files separately from normal files
2019-07-17 23:13:08 +02:00
Tobias Koppers
1d72a05fed
Merge tag 'v4.36.0' into next
...
4.36.0
2019-07-17 16:02:33 +02:00
Tobias Koppers
fb45e38fa4
rename url -> asset
...
remove experimental in favor of experiments.asset
2019-07-17 11:57:04 +02:00
Yuta Hiroto
bdb986b3ab
feat(Compilation): register url to moduleTemplates
2019-07-17 11:46:13 +02:00
ikopeykin
27b1e17f5b
createHash typescript
2019-07-10 14:06:36 +03:00
Tobias Koppers
50bb510d65
avoiding v8 deopts
2019-07-10 00:29:20 +02:00
Tobias Koppers
c94073b31c
update enhanced-resolve
2019-07-05 00:45:41 +02:00
Tobias Koppers
b2e7837288
replace Object.assign with object spread
2019-06-19 13:16:05 +02:00
Tobias Koppers
e4ba79f0b8
add type coverage for ContextModuleOptions and GroupOptions
2019-06-14 11:44:54 +02:00
Tobias Koppers
0505e177f1
add more types and fix/remove TODOs
...
change Chunk.files to Set
remove checkContext from IgnorePlugin
remove external flag from ExternalModule
2019-06-14 10:45:56 +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
fd4b3c503a
pretty files
2019-06-09 11:23:42 +02:00
Tobias Koppers
d1360a427e
revert temporary change
2019-05-10 21:50:13 +02:00
Tobias Koppers
2ffb1a838e
add signature for makeWebpackError
2019-05-10 21:37:35 +02:00
Tobias Koppers
aa05168971
fixups
2019-05-10 11:06:25 +02:00
Florent Cailhol
1e969d24c1
Add missing types
2019-05-10 10:05:43 +02:00
Florent Cailhol
f860c870ac
Fix Compiler.hooks.make callbacks
2019-05-10 09:55:59 +02:00
Florent Cailhol
97fa7696fe
Add WebpackError casts
2019-05-10 09:55:56 +02:00
Florent Cailhol
b12f24d20c
Update hook types
2019-05-10 09:52:22 +02:00
Matt Jones
ea172ec5fd
Convert finishModules hook to be an AsyncSeries
2019-04-02 09:25:36 +11:00
Tobias Koppers
180f912493
Merge tag 'v4.29.2' into next
...
4.29.2
2019-02-06 15:37:11 +01:00
Tobias Koppers
7de37e87bb
fix a bug which creates duplicate runtime modules for entrypoints sharing a runtime chunk
2019-02-02 13:18:57 +01:00
Tobias Koppers
6fc0b96c9c
add MangleExportsPlugin and options
2019-01-31 11:41:30 +01:00
Tobias Koppers
739fef4fda
move usedExports into ExportsInfo
2019-01-28 08:38:37 +01:00
Tobias Koppers
923e16dd5a
remove module argument from getDependencyReference
2019-01-28 08:38:35 +01:00
Tobias Koppers
3f1cab2f5a
no need to sort file/context/missingDependencies in Compilation
2019-01-19 12:08:49 +01:00
Tobias Koppers
8300425e1c
new version of emitting assets
...
It allows to free memory of Sources with the trade-off of disallowing reading asset content after emitting
2019-01-18 21:56:53 +01:00
Tobias Koppers
aaf85dbd1c
add output.futureEmitAssets
...
add a new version of emitting assets which allows to free memory of Sources with the trade-off of disallowing reading asset content after emitting
It also uses Source.buffer when available.
2019-01-17 13:33:27 +01:00
Steven Hargrove
13581eebe6
correct err logic
2019-01-14 09:52:27 -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
Steven Hargrove
21af6191ab
report existing errors before async queue stop error
2019-01-11 19:14:49 -05:00
Tobias Koppers
e4d1a45c8d
Use FileSystemInfo.createSnapshot for NormalModules too
2019-01-09 14:42:57 +01:00
Tobias Koppers
90baf475af
Smaller performance improvements in NormalModuleFactory
2019-01-08 15:14:33 +01:00
Tobias Koppers
ef9e25d8ea
report dependencies from resolver to the compilation
...
refactor NormalModuleFactory
2019-01-08 15:14:25 +01:00
Tobias Koppers
b5db48291b
add caching to FlagDependencyExportsPlugin
2018-12-31 12:29:01 +01:00
Tobias Koppers
1374757006
remove ModuleReason
...
remove HotUpdateChunkTemplate
move compareLocations into comparators
re-enable NodeSourcePlugin for `.mjs`
2018-12-20 16:38:26 +01:00
Tobias Koppers
123b0a64e7
add plugin system for Stats presets, defaults, creation and printing
2018-12-18 22:07:14 +01:00
Florent Cailhol
e06b4853d6
Add compiler typings
2018-12-12 10:26:53 +01:00
Tobias Koppers
49f79cb702
add types to new hooks
2018-11-30 12:21:57 +01:00
Tobias Koppers
8066eaf299
put runtime modules into separate place in chunks
...
don't include them in modules array/object
better stats output for runtime moduels
2018-11-29 16:23:31 +01:00
Tobias Koppers
9d91861592
Refactor HMR for runtime modules
...
fixed a few HMR bugs
allow other module types for HMR
made HMR more flexible
2018-11-29 16:22:29 +01:00
Tobias Koppers
f7f8e0ff0f
fixes for SourceMap handling
2018-11-29 16:17:37 +01:00
Tobias Koppers
f753f92c28
ensureChunk to RuntimeModule
...
step 1: non HMR cases
2018-11-29 16:16:39 +01:00
Tobias Koppers
3292879380
generate runtime module hash later to allow to include chunk hashes
2018-11-29 16:13:56 +01:00
Tobias Koppers
7c37a6a972
handle runtime requirements
2018-11-29 16:07:17 +01:00
Tobias Koppers
2525c8b7aa
move runtime requirements storage into ChunkGraph
...
use info for function generation
for noParse default to module and exports requirements
2018-11-29 16:06:44 +01:00
Tobias Koppers
c1e89c0543
Runtime requirement support in NormalModule, Generators and DependencyTemplate
2018-11-29 16:06:12 +01:00
Tobias Koppers
0232674f9c
Initial runtime module work
2018-11-29 16:03:32 +01:00
Tobias Koppers
9410954ed1
change TODO to webpack 6
2018-11-14 13:14:05 +01:00
Tobias Koppers
c89c9a7dc5
add backwards-compat hook for normalModuleLoader
2018-11-13 17:55:42 +01:00
Florent Cailhol
3766869c48
Move normalModuleLoader hook
2018-11-12 14:26:32 +01:00
Florent Cailhol
9ffb4e45dc
Replace Source#emitted by a WeakSet
2018-11-08 23:26:31 +01:00
Florent Cailhol
de41d1fe8b
Add missing types on Chunk related classes
2018-11-07 14:10:57 +01:00
Tobias Koppers
8cf1cdb74f
Merge tag 'v4.25.0' into next
...
4.25.0
2018-11-05 10:27:45 +01:00
Tobias Koppers
64e3826067
use flags to show different parts of the progress message
...
refactor activeModules to Set for performance reasons
2018-11-04 10:33:14 +01:00
Tobias Koppers
e7ec244415
do not mutate data
2018-11-01 20:23:10 +01:00
Sergey Melyukov
aa8cb0fab7
ProgressPlugin: refactoring
2018-10-29 15:49:31 +03:00
Tobias Koppers
c27b46ac8b
fix duplicate errors and warnings
2018-10-25 10:52:31 +02:00
Tobias Koppers
071062422e
Merge tag 'v4.22.0' into next
...
4.22.0
2018-10-23 16:41:31 +02:00
Tobias Koppers
94eb554dc0
fix byId sorting
2018-10-23 11:32:39 +02:00
Tobias Koppers
5165a90de8
Merge pull request #8242 from webpack/perf/chunk-graph
...
Optimize chunk graph algorithm
2018-10-20 06:09:58 +02:00
Tobias Koppers
5e4a6a4f5d
fix byId sorting
2018-10-19 13:20:48 +02:00
Tobias Koppers
98b482efd7
make dependency order stable
2018-10-19 12:57:24 +02:00
Tobias Koppers
65d9ffb91e
Optimize chunk graph algorithm
2018-10-19 10:37:43 +02:00
Tobias Koppers
bbedceaa16
add error class for restore errors
2018-10-17 22:54:07 +02:00
Tobias Koppers
a852828279
add persistent caching prototype
2018-10-17 21:25:39 +02:00
Tobias Koppers
518104b3fb
Merge tag 'v4.21.0' into next
...
4.21.0
2018-10-17 20:38:00 +02:00