Florent Cailhol
a42922f663
Move provided exports to the module graph
2018-12-31 12:28:51 +01:00
Tobias Koppers
0e869de084
Merge pull request #8577 from webpack/bugfix/stats-assetsByChunkName
...
fix stats assetsByChunkName
2018-12-31 10:29:20 +01:00
Florent Cailhol
d0a3c9f774
Update TypeScript
2018-12-31 09:19:05 +01:00
Tobias Koppers
50d63602b5
fix stats assetsByChunkName
...
It's now always an array
2018-12-31 09:15:01 +01:00
Tobias Koppers
ccc7db79ba
Merge pull request #8401 from shahkashani/fix-for-issue-8398
...
Fix for #8398 - call failed-hook on compilation errors
2018-12-30 18:28:48 +01:00
Tobias Koppers
2e3e2a0443
Merge pull request #8544 from chuckdumont/work
...
Factory method for require dependency in AMDRequireDependenciesBlock
2018-12-30 18:25:48 +01:00
Tobias Koppers
6dd1c9dbb7
Merge pull request #8575 from webpack/feature/split-chunks-single-file
...
add ability to load dependent chunks for non-web targets
2018-12-29 18:10:38 +01:00
Tobias Koppers
b241549d31
Merge tag 'v4.28.3' into next
...
4.28.3
2018-12-29 12:59:56 +01:00
Tobias Koppers
f446bf8a9b
add ability to load dependent chunks for non-web targets
...
This allows to use `splitChunks` for initial chunks in i. e. node and webworker targets
2018-12-29 12:48:59 +01:00
Tobias Koppers
d8ab512c34
Merge pull request #8565 from NaviMarella/ProfilingPlugin_8503
...
Fixed error in Profiling Plugin, if given folder path doesn't exist.
2018-12-29 04:47:17 -05:00
Navi Marella
5b5f1d49b6
Made changes as requested
2018-12-28 08:21:17 -07:00
Tobias Koppers
0ed58f42ea
Merge pull request #8570 from webpack/feature/serialization_api
...
Expose the serialization API
2018-12-28 16:01:55 +01:00
Florent Cailhol
80f67573a1
Expose API types
2018-12-28 14:48:18 +01:00
Florent Cailhol
f05af4a4a7
Use serialization API instead of ObjectMiddleware
2018-12-28 13:54:10 +01:00
Florent Cailhol
e06a808763
Expose the serialization API
2018-12-28 13:21:19 +01:00
Tobias Koppers
3079886e47
filter entrypoints from namedChunkGroups in Stats only for printing
2018-12-28 12:57:38 +01:00
Tobias Koppers
2601febc6c
Merge pull request #8561 from jahredhope/multi-stats-no-options
...
Allow MultiStats to be called with no options
2018-12-28 12:32:01 +01:00
Navi Marella
eb960cc616
Fixed Profiling Output path for creating a folder, if it doesn't exists.
2018-12-27 16:02:43 -07:00
Tobias Koppers
77c2e61a31
remove memory cache from FileCachePlugin
...
support layers of caches
2018-12-27 20:57:54 +01:00
Jahred Hope
3a4f01b9de
Allow MultiStats to be called with no options
2018-12-27 21:21:26 +11:00
Tobias Koppers
ccad043bc2
Merge pull request #8547 from Connormiha/optimize-absolute-to-path
...
Optimize absoluteToRequest
2018-12-26 11:32:41 +01:00
Tobias Koppers
2143bd6519
Reduce number of allocations
...
Hoist RegExp
Avoid creating array object
Avoid join
Fast case for request without query
improve test cases
fixes a bug where query was omitted with multiple query separators
2018-12-26 11:13:44 +01:00
Tobias Koppers
a49c417988
Merge pull request #8554 from webpack/bugfix/serialize-null-prototype
...
allow serializing of objects with null prototype
2018-12-25 22:53:45 +01:00
Tobias Koppers
2ad7b30bea
Merge pull request #8553 from webpack/bugfix/fullhash
...
Use fullhash to avoid deprecation warning
2018-12-25 22:17:17 +01:00
Tobias Koppers
44663f8c67
allow serializing of objects with null prototype
2018-12-25 22:08:35 +01:00
Tobias Koppers
b3319a486d
fix incorrect default for some options with all: false
2018-12-25 21:39:25 +01:00
Tobias Koppers
224586445c
Fix regexp to support fullhash
2018-12-25 20:59:33 +01:00
Tobias Koppers
781398355a
Use fullhash to avoid deprecation warning
2018-12-25 20:10:49 +01:00
Mihail Bodrov
972d9bf8cb
Optimize absoluteToRequest
2018-12-23 15:30:28 +03:00
Tobias Koppers
026b7079a2
Merge pull request #8543 from webpack/bugfix/preset-in-schema
...
improvements to stats
2018-12-23 10:45:32 +01:00
Tobias Koppers
12436bf53e
add chunkRelations to stats config
2018-12-23 10:04:23 +01:00
Tobias Koppers
a84de283b2
avoid printing undefined when there is no chunk reason
2018-12-23 10:04:22 +01:00
Tobias Koppers
7ffcc98487
Merge tag 'v4.28.2' into next
...
4.28.2
2018-12-23 09:58:52 +01:00
Tobias Koppers
bc368c7611
fixes #8538
2018-12-22 13:39:26 +01:00
Chuck Dumont
1fd25ddbee
Revert AMDRequireDependency.js changes
2018-12-21 18:07:35 -05:00
Tobias Koppers
7480529b50
Merge pull request #8536 from webpack/performance/caching
...
Performance/caching
2018-12-21 13:13:06 +01:00
Tobias Koppers
ea255fd38a
Remember unserializable things and avoid trying again
2018-12-21 12:36:38 +01:00
Tobias Koppers
f15956f19f
The context result is not a context dependency
...
The resulting directory should be threated as file dependency
as it doesn't depend on the content of the directory
2018-12-21 12:29:49 +01:00
Tobias Koppers
d9238f061d
memorize lazy data on access
...
remove need for read on write
add queue for file accesses in FileMiddleware to support concurrent access
2018-12-21 12:05:29 +01:00
Tobias Koppers
4b15e204c0
Change signature of externals function to an object
...
to be more extensible in future
#8527
2018-12-21 12:01:54 +01:00
Tobias Koppers
3f71a165bf
Merge tag 'v4.28.1' into next
...
4.28.1
2018-12-20 20:37:57 +01:00
Tobias Koppers
2ae5268bfa
Merge pull request #8525 from webpack/cleanup/remove-compare
...
cleanup work on next
2018-12-20 20:23:52 +01:00
Tobias Koppers
e36dec26d1
cache crypto require in createHash
2018-12-20 17:32:55 +01:00
Tobias Koppers
14ec0aa4cf
remove the static memory cache, leaving only the per compilation memory cache
...
Otherwise this leaks memory
2018-12-20 17:32:52 +01:00
Tobias Koppers
6c22ca2b96
fix issue when contextRegExp is undefined
...
fixes #8522
2018-12-20 16:52:44 +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
aedc34b76d
load internal serializers internally
...
allows to bundle webpack
2018-12-20 11:04:31 +01:00
Tobias Koppers
1b402bcae1
Merge tag 'v4.28.0' into next
...
4.28.0
2018-12-19 14:05:17 +01:00
Tobias Koppers
0d7de08018
Merge pull request #8520 from webpack/feature/stats-plugins
...
add plugin system for Stats presets, defaults, creation and printing
2018-12-19 09:20:18 +01:00
Tobias Koppers
573d2da1d9
Merge pull request #8511 from isiahmeadows/fix-erroneous-injection
...
Remove a broken hook
2018-12-19 09:19:50 +01:00
Mihail Bodrov
ca80248f9c
Minor optimization
2018-12-19 02:59:54 +03:00
Mihail Bodrov
1b3d0f6c27
Get rid of string
2018-12-19 02:59:53 +03:00
Mihail Bodrov
12dea1af24
Optimize getHashNumber
2018-12-19 02:59:53 +03:00
Tobias Koppers
123b0a64e7
add plugin system for Stats presets, defaults, creation and printing
2018-12-18 22:07:14 +01:00
Ilya Kantor
a9d465f183
IgnorePlugin: add context argument to checkResource, deprecate checkContext
2018-12-18 11:27:06 +03:00
Tobias Koppers
4e653e73c6
Merge pull request #8510 from guybedford/next-tlr
...
Allow top-level return in script parsing, PR for #8509
2018-12-18 09:25:25 +01:00
Isiah Meadows
18d7396835
Remove a broken hook
2018-12-17 01:23:03 -05:00
guybedford
00c95f36b0
allow top-level return
2018-12-16 21:27:04 +02:00
Tobias Koppers
6c00d3676e
Merge pull request #8484 from webpack/feature/split_chunks_max_size
...
Add maxAsyncSize and maxInitialSize for SplitChunks
2018-12-16 18:44:15 +01:00
Tobias Koppers
6dd4e53444
ignore is no longer needed
2018-12-15 14:28:47 +01:00
Chuck Dumont
d49082a26d
Make some AMD dep classes easier to subclass
2018-12-13 21:09:16 -05:00
Florent Cailhol
30fabc10ec
Change webpack() callback signature
2018-12-13 10:57:05 +01:00
Florent Cailhol
b916ff1491
Improve SplitChunksPlugin typings
2018-12-12 10:49:16 +01:00
Florent Cailhol
e06b4853d6
Add compiler typings
2018-12-12 10:26:53 +01:00
Florent Cailhol
2a10b12e09
Add maxAsyncSize and maxInitialSize options
2018-12-11 20:47:50 +01:00
Florent Cailhol
5f26040786
Add types to SplitChunksPlugin
2018-12-10 22:09:27 +01:00
Florent Cailhol
760b1da9f3
Add maxInitialSize and maxAsyncSize options
2018-12-10 21:05:39 +01:00
Florent Cailhol
3d72d6144e
Add CompilerStatus type
2018-12-10 11:41:15 +01:00
Florent Cailhol
5923c62fdf
Export NodeEnvironmentPlugin
2018-12-10 11:40:59 +01:00
Florent Cailhol
9caaa664f7
Refactor webpack main
2018-12-09 15:32:03 +01:00
Tobias Koppers
0d2faa0d0a
Merge pull request #8460 from webpack/refactor/node_polyfills
...
Do not polyfill node bindings by default
2018-12-08 12:23:24 +01:00
Tobias Koppers
3c3ec62933
vertical lines in child compiler name will show as space in stats
2018-12-08 09:35:15 +01:00
Tobias Koppers
d71fdf0a29
don't split identifier at space, as space could to part of paths
2018-12-08 09:29:21 +01:00
Tobias Koppers
4c965bfbab
simplify regex
2018-12-08 09:21:35 +01:00
Tobias Koppers
5563ee9e58
use makePathsRelative instead of contextify
...
unify contextify and makePathsRelative
separate NormalModuleFactory ignored, ContextModule and ConcatenatedModule identifier with "|"
2018-12-07 18:12:04 +01:00
Tobias Koppers
a83e0daca6
replace RequestShortener with contextify in id generation
2018-12-07 16:07:40 +01:00
Tobias Koppers
a21bc44345
ignored module no longer contain context path
2018-12-07 15:46:32 +01:00
Tobias Koppers
350817ea4f
make identifier of ConcatenatedModule context-independent
2018-12-07 15:36:49 +01:00
Tobias Koppers
f60c8d8f0e
bugfixes and optimizations
...
optimize name map for name equals id
bugfixes in named ids assigning
assign name before automatic ids
2018-12-07 15:14:14 +01:00
Tobias Koppers
ca46218787
add defaults for deterministic id plugins
2018-12-07 14:47:25 +01:00
Tobias Koppers
fe80339d71
use - instead of ~ as default for better compat
...
fix automaticNameDelimiter in splitChunks
fix test cases
2018-12-07 14:46:49 +01:00
Tobias Koppers
8281667668
improve ids for Long Term Caching
...
add deterministic chunk ids and make it default
StatsTestCases no longer need to explicitly use natural ids as the defaults are deterministic now too
add concept of id name hints for chunks
add `idHint` option to splitChunks to provide a hint
deduplicated code from different id plugins to IdHelpers
improve behavior of named ids in case of conflicts
remove `name: true` and `automaticNamePrefix` from splitChunks it's not as good as expected
improve named chunk ids to show root modules
2018-12-07 12:26:35 +01:00
Florent Cailhol
3c50dba922
Remove global buildin
2018-12-07 08:59:41 +01:00
Florent Cailhol
a68426e925
Add error message
2018-12-07 08:58:55 +01:00
Florent Cailhol
002128c288
Do not polyfill node bindings by default
2018-12-07 08:58:26 +01:00
Florent Cailhol
a2ccf34d98
Fix ModuleDecoratorDependency serialization
2018-12-06 22:16:56 +01:00
Florent Cailhol
c148033fe9
Remove module.webpackPolyfill guard
2018-12-06 22:16:55 +01:00
Florent Cailhol
74e6346363
Replace module buildins by runtime modules
2018-12-06 22:16:31 +01:00
Tobias Koppers
bc667a50b1
algorithm improvements
2018-12-06 21:00:57 +01:00
Tobias Koppers
59e67d8fa4
optimize array operation
2018-12-06 21:00:50 +01:00
Tobias Koppers
2b518a6c67
Wrap chunk ids in table in correct syntax
2018-12-06 21:00:43 +01:00
Tobias Koppers
e5e0f44e29
add algorithm to extract graph roots
...
show only graph roots in chunks by default
2018-12-06 20:57:04 +01:00
Tobias Koppers
adb7076609
Merge pull request #8469 from webpack/refactor/amd_buildin
...
Use RuntimeModule for AMDPlugin
2018-12-06 20:28:57 +01:00
Tobias Koppers
3afdccbe3d
Merge pull request #8459 from webpack/feature/source-type-size
...
Add support for multiple different sizes per module
2018-12-06 19:52:50 +01:00
Florent Cailhol
1d90704bc7
Replace AMD buildins by runtime modules
2018-12-06 15:14:43 +01:00
Florent Cailhol
82e75b8eb3
Tweak SystemPlugin
2018-12-06 14:54:27 +01:00
Tobias Koppers
6b75ff0dea
Merge pull request #8461 from webpack/refactor/deprecate_asp
...
Deprecate AggressiveSplittingPlugin
2018-12-06 12:34:07 +01:00
Mihail Bodrov
6f5c5ef33c
Use document.head instead of getElementsByTagName
...
Update snapshot
2018-12-06 03:00:23 +03:00
Tobias Koppers
387803bf3d
re-add accidentally removed type
2018-12-05 20:23:47 +01:00
Tobias Koppers
40e4860aef
Use correct size of getIntegratedChunksSize
2018-12-05 20:23:45 +01:00