Tobias Koppers
aca0ee5073
Merge pull request #13137 from webpack/feature/public-path-entry
...
allow to specify `publicPath` for each entrypoint
2021-04-14 18:22:59 +02:00
Tobias Koppers
52178a5aee
Merge pull request #13134 from webpack/bugfix/hmr-in-execute-module
...
importModule & HMR
2021-04-14 16:55:37 +02:00
Tobias Koppers
38de0dbf4e
allow to specify `publicPath` for each entrypoint
2021-04-14 16:38:01 +02:00
Tobias Koppers
f46e816a38
add HMR test case and fix problems with it
2021-04-14 16:03:59 +02:00
Tobias Koppers
d808d04d26
attach the chunk graph to RuntimeModules
2021-04-14 12:26:35 +02:00
Tobias Koppers
88f4c661cd
update tooling to fix type constraint bug
2021-04-14 11:15:08 +02:00
Tobias Koppers
bbcc5a8ebe
add caching on ModuleGraph
...
cache star reexport assignment
2021-04-14 09:11:23 +02:00
Tobias Koppers
03961f3391
Merge pull request #13102 from webpack/feature/built-time-execution
2021-04-12 15:00:32 +02:00
Tobias Koppers
ea3e0a39ac
add experiments.executeModule
...
rename runModule -> executeModule
improve error reporting
2021-04-12 12:27:55 +02:00
Tobias Koppers
0a9041e1cc
AsyncQueue only returns WebpackError
2021-04-12 12:27:55 +02:00
Tobias Koppers
1d35cf13e3
fix cache dependencies, assets and persistent caching
2021-04-12 12:27:54 +02:00
Tobias Koppers
065177df66
add experimental support for build time execution
...
allow to execute a part of the module graph at build time
e. g. to generate code or other assets
loaders have access to that via `this.importModule(request, options)`
2021-04-12 12:27:54 +02:00
Tobias Koppers
33b44a05ea
DefinePlugin invalidates modules when new defines are added
...
fixes https://github.com/vercel/next.js/issues/23901
2021-04-12 12:23:51 +02:00
Tobias Koppers
324a46d908
Revert "dispose code generation results after sealing the compilation"
...
This reverts commit cef2a8fea0
.
2021-04-09 19:50:13 +02:00
Tobias Koppers
cef2a8fea0
dispose code generation results after sealing the compilation
2021-04-08 18:33:51 +02:00
Tobias Koppers
83c8180c7d
prioritize static reexport over runtime reexport for target determination
...
this allows to optimize cases where empty modules are reexported e. g. caused by typescript type-only exports
2021-04-06 21:36:43 +02:00
Tobias Koppers
48b7cce9ce
Merge pull request #13051 from KENNYSOFT/infrastructurelogging-colors
2021-04-06 18:13:52 +02:00
Tobias Koppers
4e117781e8
improvements
...
add appendOnly flag
add custom console
add custom stream
2021-04-06 15:20:27 +02:00
Tobias Koppers
8f3a16a49a
improve handling of optional build dependencies
2021-04-06 11:28:41 +02:00
Hyeonmin Park
72ba68cc78
feat: add colors flag to infrastructureLogging
2021-04-04 14:28:31 +09:00
Tobias Koppers
3b8d26df1e
Merge pull request #12990 from webpack/bugfix/memory-leak-in-ic
...
memory usage improvements, add GC support for memory cache, persistent cache only mode
2021-04-01 18:14:16 +02:00
Tobias Koppers
b9519dcf01
Merge pull request #12987 from barak007/export-missing-entities
...
Export AsyncDependenciesBlock and ModuleDependency
2021-04-01 17:32:48 +02:00
Tobias Koppers
e42f6d71d5
Merge pull request #12963 from smelukov/add-missing-groupModulesByType
...
(fix): add missing scheme property stats.groupModulesByType
2021-04-01 17:31:15 +02:00
Tobias Koppers
c84329f73c
add GC to the memory cache and make it configurable
...
memory GC happens by default when persistent cache is enabled and in development mode
otherwise memory cache is kept forever
make maxAge for persistent cache configurable
GC the oldest content file even if it's not touched (to keep cache size small)
filesystem cache will now no longer cache in memory, but restore items from disk again when it was persisted
2021-04-01 17:12:53 +02:00
Tobias Koppers
8074127b98
avoid leaking memory after the compiler has been closed
...
clear cache on shutdown
2021-04-01 16:59:48 +02:00
Tobias Koppers
667bbf02bb
export base dependencies correctly
2021-03-31 16:40:24 +02:00
Tobias Koppers
f8b7625c43
expose all Stats child types
2021-03-31 13:37:53 +02:00
43081j
d67a5946d2
re-run type generation using yarn
...
Yarn produces different types to npm, who knew.
2021-03-29 22:18:57 +01:00
43081j
64fc30f0fe
expose StatsAsset type
...
Fixes #13014
2021-03-29 22:02:31 +01:00
Barak Igal
92e8a1252e
export AsyncDependenciesBlock and ModuleDependency
2021-03-25 15:37:20 +02:00
Sergey Melyukov
515d0d6d4a
(chore): fix types
2021-03-23 14:41:30 +03:00
Tobias Koppers
0307bcf691
Merge pull request #12902 from xiaoxiaojx/feat/assetModulePublicPath
2021-03-23 07:56:55 +01:00
Tobias Koppers
c5fa7510f2
remove `output.assetModulePublicPath` as it would be redundant to `module.generator.asset.publicPath`
...
add test case for assetInfo merging
2021-03-22 15:05:50 +01:00
xiaoxiaojx
55fd79ee6a
feat: support assetModulePublicPath
2021-03-20 17:53:01 +08:00
Tobias Koppers
a93eb10903
fix problem with strict mode for assigning libraries with separate runtime chunk
2021-03-16 19:53:13 +01:00
Tobias Koppers
2abcede6cd
Merge pull request #12852 from chenxsan/test/test-library-type-assign
2021-03-15 20:33:14 +01:00
Tobias Koppers
53e6f98ff6
Merge pull request #12887 from webpack/issue-12885
...
fix: es5
2021-03-15 17:02:03 +01:00
Tobias Koppers
d5992633e6
offer a hook to opt-out of strict mode
2021-03-15 16:38:50 +01:00
Tobias Koppers
5af7e54e7d
Merge pull request #12896 from webpack/feature/define-cache-version
...
DefinePlugin takes care of module invalidation when values have changed
2021-03-15 16:14:35 +01:00
Tobias Koppers
7f4ce2cf1a
add expressionFunction helper to choose shortest variant when return value is not relevant
2021-03-15 15:40:30 +01:00
Tobias Koppers
103a51468b
DefinePlugin takes care of module invalidation when values have changed
...
The options of the DefinePlugin no longer have to be covered by build dependencies
2021-03-15 15:19:42 +01:00
Tobias Koppers
18967078cb
cleanup modules after compilation to avoid leaking references when they are cached
2021-03-15 11:23:54 +01:00
Tobias Koppers
61cc65c58e
improve parsing to handle non-literal options
2021-03-12 12:09:02 +01:00
Tobias Koppers
ab74839859
Merge pull request #12871 from webpack/feature/generate-asset
...
add `emit` option for asset modules
2021-03-11 21:00:05 +01:00
Tobias Koppers
7572217e97
add `emit` option for asset modules
...
fixes #12474
2021-03-11 18:45:34 +01:00
Tobias Koppers
72455273db
allow to define "ignored modules" per dependency
...
new URL() will use `"data:"` when ignore
2021-03-11 18:37:20 +01:00
Tobias Koppers
85a6eee0bb
move parser.filename back to generator.filename
2021-03-11 17:19:11 +01:00
Tobias Koppers
f93aacd55f
move filename processing from asset generator to parser
...
remove memory leak from asset generator
2021-03-11 10:40:03 +01:00
Tobias Koppers
404a854c8b
improve hmr error handling abilities
...
pass module and moduleId with self error handler
add error handlers for dependency accept handlers
pass moduleId and dependencyId with dependency accept error handler
add output.strictModuleErrorHandling to opt-in into strict module error handling
HotModuleReplacementPlugin enalbed output.strictModuleErrorHandling automatically
fixes #12826
2021-03-09 20:23:00 +01:00
Tobias Koppers
c7f93af138
refactor startup logic to better integrate with libraries
...
get rid of startupNoDefault and many custom logic regarding this in jsonp chunk loading
add onChunksLoaded runtime method to cover that for all chunk loading types
add `__webpack_runtime_id__` to access the current runtime
allow to use onChunksLoaded for other module types too
2021-03-08 20:25:09 +01:00
Pascal Corpet
60d4605173
fix types: accept a readonly array for configuration options
2021-03-08 09:06:04 +01:00
Tobias Koppers
1ebc7ca974
fix some incorrect properties accesses
...
fix some edge cases with MultiCompiler
fixes #12770
2021-02-24 20:12:32 +01:00
Tobias Koppers
365a362522
performance optimization
...
add statistics to ModuleConcatenationPlugin
2021-02-23 10:59:59 +01:00
Tobias Koppers
87a70e03b8
unset targets when a harmony star reexport is hidden by another one
2021-02-22 21:56:00 +01:00
Tobias Koppers
305db4cfaf
Merge pull request #12746 from webpack/bugfix/logging-debug
...
debug logging should be included in stats even if stats.logging is false
2021-02-22 13:55:23 +01:00
Tobias Koppers
23502045ce
Merge pull request #12744 from webpack/bugfix/side-effects-reexports-concatenation
...
fix bug where ExportInfo uses inactive connections to find the target of an export
2021-02-22 13:38:53 +01:00
Tobias Koppers
0b4506b206
improve typings for loggingDebug and other filtering configuration options
2021-02-22 13:18:27 +01:00
Tobias Koppers
1c0b88c72f
fix bug where ExportInfo uses inactive connections to find the target of an export
...
This happens when multiple exports * export the same name but the first one is discovered later in the process
In this case the ExportInfo contains both connections, but the second one is inactive.
2021-02-22 12:47:34 +01:00
npenin
92c4936497
fixed types.d.ts
2021-02-21 10:12:38 +00:00
Nicolas Penin
7fb29f8b35
Update types.d.ts
2021-02-21 11:08:39 +01:00
Nicolas Penin
f32761e60b
Update types.d.ts
...
adding watching to the list of exported types
2021-02-21 10:35:46 +01:00
Tobias Koppers
61dbb57857
Merge pull request #12590 from chenxsan/feature/export-MultiStats-type
2021-02-18 13:45:32 +01:00
Tobias Koppers
5d57777a5e
add `parser.url: "relative"` option
...
this will generate URLs without base uri for `new URL`
publicPath is still added
2021-02-16 19:04:16 +01:00
Tobias Koppers
e7d9457963
refactor dependencies handling in MultiCompiler
...
add support for dependencies during watching
add parallelism option for MultiCompiler
2021-02-13 21:02:47 +01:00
Tobias Koppers
9f3950e571
add support for libraries combined with iife: false
...
fix missing runtime requirement for system.js context
fix inlining of modules when conflicting symbols are defined on top-level
2021-02-11 11:19:24 +01:00
Tobias Koppers
35807ca018
add very basic library type "module"
2021-02-09 21:28:18 +01:00
Tobias Koppers
7738de13d7
add COMMON_LIBRARY_NAME_MESSAGE to all libraries
2021-02-09 21:27:15 +01:00
Tobias Koppers
b29dd3d224
add renderStartup hook
2021-02-09 21:27:10 +01:00
Tobias Koppers
5583c245c9
Merge pull request #12601 from webpack/feature/error-details-auto
2021-02-05 19:58:25 +01:00
chenxsan
e4b86ec59b
export type only
2021-02-05 16:05:42 +01:00
chenxsan
a89b7acb02
export MultiStats type
2021-02-05 16:05:00 +01:00
Tobias Koppers
1cfc10e4e4
Merge pull request #12228 from davidhouweling/fix/typings-for-stats
2021-02-05 16:03:28 +01:00
Tobias Koppers
03f740a96c
Show error details automatically when only 2 or less errors are there
...
Show message that points you to errorsDetails when error details are hidden
Improve some error messages
Highlight important parts of error message with colors
2021-02-05 15:55:31 +01:00
Tobias Koppers
1c8d138e63
fix syntax, add unknown properties, fix incorrect types
2021-02-05 13:19:32 +01:00
Tobias Koppers
d9ef8551c0
fix caching of asset modules
2021-02-04 14:13:44 +01:00
Tobias Koppers
08562140d8
Merge pull request #12557 from webpack/feature/profile
2021-02-02 20:32:06 +01:00
Tobias Koppers
36306a06e1
Merge pull request #11561 from smelukov/clean
2021-02-02 20:31:45 +01:00
Tobias Koppers
9f07ecb88b
methods in OutputFileSystem must be optional to avoid breaking change
2021-02-02 19:15:34 +01:00
Tobias Koppers
4e99d94bc7
refactor to read directories in parallel
...
handle errors
rename "ignore" to "keep"
2021-02-02 18:49:45 +01:00
Tobias Koppers
22471f6dd6
Improvements to schema
2021-02-02 13:46:45 +01:00
Sergey Melyukov
6559a55c66
fix after merge
2021-02-02 10:41:46 +03:00
Tobias Koppers
3e1c7082d2
log out module profile summary when profiling is enabled
2021-02-02 03:29:21 +01:00
Tobias Koppers
ba12efe094
change skipModule to test
...
allow values similar to `splitChunks.test`
using positive logic instead
2021-02-01 17:12:20 +01:00
Karlis Gangis
f0fa61ae1f
Add new options for lazyCompilation: imports and skipModule
2021-02-01 16:52:47 +02:00
chenxsan
cbc813e979
export EntryObject typing
2021-01-30 15:05:45 +08:00
Tobias Koppers
827c52eeb7
Merge pull request #12529 from webpack/bugfix/tla
2021-01-29 16:59:08 +01:00
Tobias Koppers
4d2cf12a34
Merge pull request #12527 from artchenamazon/mf-custom-expose-module-name
...
feat: support custom chunk name in container expose options
2021-01-29 15:01:56 +01:00
Tobias Koppers
495cabb94d
improve TLA consistency
2021-01-29 13:51:32 +01:00
Art Chen
cd0310f6d6
feat: support custom chunk name in container expose options
...
Module federation generates async chunks for exposed modules, which by
default named after the internal module id. This change allows users to
assign a custom name so that the file can be statically referenced.
2021-01-28 09:00:05 -08:00
Sibiraj
81bb146061
make ProgressPlugin options optional
2021-01-28 17:31:11 +05:30
Tobias Koppers
ae353e8a05
remove invalid property, avoid allocation of Set when only a single runtime is used
2021-01-27 14:48:28 +01:00
Tobias Koppers
858b0c8727
avoid allocation of inner map in RuntimeSpecMap when only a single runtime is used
2021-01-27 14:47:16 +01:00
Tobias Koppers
a936d7b3a0
avoid unnecessary conditions
2021-01-27 13:37:34 +01:00
Tobias Koppers
21c08d56ec
avoid allocation of meta info for dependencies when unused
2021-01-27 13:37:34 +01:00
Tobias Koppers
f25345cae9
refactor code generation and HMR plugin to generate real module hashes for HMR
2021-01-26 14:45:11 +01:00
Tobias Koppers
97b83161d9
move responsibility of exports info and connected modules hashing from Dependencies to Module
...
fixes a bug where modules are incorrectly cached when exports info of connected modules change
2021-01-24 21:36:36 +01:00
Tobias Koppers
100317556e
add lazy compilation for entrypoints
2021-01-22 01:01:17 +01:00
Tobias Koppers
a1515fa9f0
add experimental lazy compilation
2021-01-21 17:39:56 +01:00
Tobias Koppers
a07a1269f0
Merge pull request #11316 from petermetz/master
2021-01-21 11:46:33 +01:00
Tobias Koppers
7002681c33
remove duplication in schema and types
2021-01-20 20:53:29 +01:00
Tobias Koppers
013ca3bdd7
add commonjsMagicComments options
...
move javascript related options from 'module' to 'module.parser.javascript'
2021-01-20 20:19:49 +01:00
Tobias Koppers
5643e4b8a6
adjust timestamps when timestamp origin differ between process.hrtime and node.js inspector
2021-01-20 20:18:58 +01:00
Peter Somogyvari
ded4cc64a0
perf(parser): binary search for comments in range
...
Signed-off-by: Peter Somogyvari <peter.metz@unarin.com>
2021-01-19 11:55:35 -08:00
Tobias Koppers
1e988a109b
Merge branch 'master' into feat/issue_11571
2021-01-18 16:54:26 +01:00
David Houweling
e04219d048
chore: add typings for DefaultStatsFactoryPlugin, Stats, and MultiStats
2021-01-17 15:18:38 +11:00
Tobias Koppers
e475ec3fb0
Merge pull request #12429 from webpack/feature/resolve-in-externals
2021-01-15 16:07:15 +01:00
Tobias Koppers
b6e349b018
offer getResolve to externals
...
improve types of externals configuration option
support promises in externals
2021-01-15 13:55:37 +01:00
Jaiwanth
8569b154b5
Added chunkModulesSpace to schema
2021-01-14 13:06:33 +05:30
Tobias Koppers
a945a9b62c
use typescript 4.2
2021-01-13 21:40:39 +01:00
Tobias Koppers
a2e326129c
make filesystem types compatible with memfs and normal fs
...
fixes #12400
2021-01-13 10:14:58 +01:00
Tobias Koppers
d2b9e69656
Merge pull request #12384 from Dico200/patch-1
...
Fix runtime type error in WatchIgnorePlugin
2021-01-12 08:12:05 +01:00
Tobias Koppers
58984b77cb
update type annotations
2021-01-11 22:15:31 +01:00
Tobias Koppers
32cea584b4
add resolve.preferAbsolute option
2021-01-11 16:38:15 +01:00
Tobias Koppers
87a0eef85c
separate index signatures from properties to generate valid typescript
2021-01-08 21:35:44 +01:00
Tobias Koppers
09862aacf8
add warning when invalid dependencies are reported by loaders/plugins
...
add automatic workaround for invalid dependencies
#12340
#12283
2021-01-07 13:31:16 +01:00
Tobias Koppers
dcf6449393
allow function for externals.byLayer
2021-01-06 11:14:23 +01:00
Tobias Koppers
10aa3daede
add experiments.layers
...
add layers to define different module layers
support module layers in stats
add layer support for NormalModules
fixes #11466
2021-01-05 20:50:59 +01:00
Tobias Koppers
aac7f2e619
allow to configure parsers and generators globally
...
get plugin schemas from root schema
normalize module.parser/generator
add test case
2021-01-05 12:08:30 +01:00
Tobias Koppers
6764e0694c
Merge pull request #12284 from jaiwanth-v/add-nestedModulesSpace-to-schema
...
Added nestedModulesSpace to schema and updated the types
2021-01-05 10:38:17 +01:00
Tobias Koppers
cd70878036
update description
2021-01-04 15:43:47 +01:00
Tobias Koppers
4d1f65906a
update types because of updated tooling
2021-01-04 12:07:34 +01:00
Jaiwanth
ee1fcf1255
Added nestedModulesSpace to schema and updated the types
2020-12-29 22:08:49 +05:30
Tobias Koppers
07fc323684
ignore cloned ExportInfo during hashing
2020-12-23 20:39:54 +01:00
Tobias Koppers
284eb60fc0
fix typings for `object` arguments
2020-12-18 13:52:27 +01:00
Tobias Koppers
b5b1f25ad2
improve typings for stats related hooks and classes
2020-12-17 18:51:55 +01:00
Tobias Koppers
ed4694dd9b
Merge pull request #12225 from webpack/bugfix/undefined-conditions
...
treat `undefined` equal to not existing in rules
2020-12-17 13:31:36 +01:00
Tobias Koppers
8acebd2ff5
treat `undefined` equal to not existing in rules
...
both are treated as empty string
2020-12-17 11:20:11 +01:00
Tobias Koppers
16d5c35b1e
reexport the schema validation function from schema-utils
2020-12-17 10:41:28 +01:00
Tobias Koppers
359b327f34
add missing argument to SourceMapSource
2020-12-17 10:27:18 +01:00
Tobias Koppers
745a583040
export WebpackError
2020-12-17 10:27:18 +01:00
Tobias Koppers
63dda151a2
expose Asset and AssetInfo types
...
allow custom properties in AssetInfo
2020-12-17 10:27:18 +01:00
Tobias Koppers
c24091f54d
matched value can be undefined in function rule condition
2020-12-16 18:29:36 +01:00
Tobias Koppers
4c288fead3
compile typings in strict mode to include undefined and null in types
2020-12-16 18:28:49 +01:00
Tobias Koppers
9563338d90
improve reading of cache file
2020-12-14 13:16:20 +01:00
Tobias Koppers
005bdbbefd
fix memory leak when using createReadStream
2020-12-14 11:06:15 +01:00
Tobias Koppers
c6311bae62
allow bigger cache sizes
2020-12-14 08:16:08 +01:00
Tobias Koppers
48571c663f
add selective runtime requirements from startup logic which doesn't prevent inlining modules
...
avoid using startup function for grab data from preexecuted chunks
2020-12-11 14:36:48 +01:00
Tobias Koppers
f76aa61d34
use simple output.pathinfo mode by default
...
cache simple pathinfo transformation in memory
2020-12-04 17:06:37 +01:00
Tobias Koppers
7cc206974c
upgrade typescript major version
2020-11-30 08:42:35 +01:00
Tobias Koppers
d46f945572
fix problem when HMR and different runtimes
...
allow HMR to work in WebWorkers too
2020-11-28 13:53:32 +01:00
Tobias Koppers
ccfe01aab4
allow to process assets that are added during processAssets
...
fix and add processAsset stages
allow to hook into RealContentHashPlugin for custom hashing
2020-11-26 14:00:21 +01:00
Tobias Koppers
eb5481adfb
Merge pull request #11948 from jantimon/fix/plugin-types
...
fixes "Type '(compiler: Compiler) => void' is not assignable to type '() => void'.ts"
2020-11-26 13:56:41 +01:00
Tobias Koppers
35363408c6
fix newly found eslint problems
2020-11-26 11:13:17 +01:00
Tobias Koppers
30b7137064
update dev dependencies
...
fix bug with optional types in typings
2020-11-26 10:48:16 +01:00
Tobias Koppers
dbea79cf8a
improve code and test case
2020-11-25 22:48:11 +01:00
Tobias Koppers
f32762ed69
fix #11990
2020-11-16 11:53:19 +01:00
Hiroki Osame
1422f2400d
docs(type): documented minimized property on asset-info
2020-11-11 01:15:35 -05:00
Jan Nicklas
d12b043c3d
fix: adjust typings to resolve "Type '(compiler: Compiler) => void' is not assignable to type '() => void'.ts
2020-11-09 14:54:40 +01:00
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