Krzysztof Kotowicz
8c3ebccc69
Added Trusted Types support for importScripts() in workers.
2021-05-04 16:17:49 +02:00
Bjarki
cca01affef
Make Worker transformation compatible with Trusted Types
2021-05-04 16:12:41 +02:00
Bjarki
c71184958d
Move Trusted Types policy into TrustedTypesRuntimeModule
...
Also make the policy available at runtime through
RuntimeGlobals.getTrustedTypesPolicy(), and update runtime dependencies
accordingly.
2021-05-04 16:12:41 +02:00
Krzysztof Kotowicz
dbd095b44a
Added the Trusted Types logic.
2021-05-04 16:12:34 +02:00
Krzysztof Kotowicz
c816c135ca
Removed a deprecated createURL function reference.
2021-05-04 16:06:37 +02:00
Tobias Koppers
adc10a5636
make ESM tracking info message less verbose
2021-04-30 15:07:17 +02:00
Tobias Koppers
263a06a13c
Merge pull request #13279 from webpack/bugfix/depend-on-modules
...
fix too many modules are included in chunks when using chained dependOn
2021-04-30 13:42:55 +02:00
Tobias Koppers
a36739a177
Merge pull request #13276 from webpack/bugfix/emit-caching
...
emit assets even when they were cleaned from fs in the meantime
2021-04-30 13:31:32 +02:00
Tobias Koppers
81f244ba2e
Merge pull request #13277 from webpack/bugfix/worker-runtime-name
...
fix problems with auto-generated runtime name for workers
2021-04-30 12:48:17 +02:00
Tobias Koppers
027f9bd929
fix too many modules are included in chunks when using chained dependOn
2021-04-30 12:47:59 +02:00
Tobias Koppers
f243907fe8
emit assets even when they were cleaned from fs in the meantime
2021-04-30 11:55:56 +02:00
Tobias Koppers
1ca93aaa6b
Make auto-generated runtime name a hash instead of leaking pathinfo
...
Make auto-generated runtime name more stable by using index instead of source code location
fixes #12883
2021-04-30 11:28:04 +02:00
Tobias Koppers
eea0aee1a7
catch errors thrown during parser/generation creation
2021-04-30 09:45:14 +02:00
Tobias Koppers
a060126e49
improve module dependency processing performance
2021-04-28 10:27:51 +02:00
Tobias Koppers
31415ecdb4
improve algorithmic complexity for merging InitFragments to solve performance in an edge case
2021-04-28 09:10:45 +02:00
Tobias Koppers
532b07e0c1
faster hashing for the common case
2021-04-28 09:10:45 +02:00
Tobias Koppers
fc3fe304d9
return consistent datastructure type
2021-04-28 09:10:44 +02:00
Tobias Koppers
89d6dcb0e2
used cached value
2021-04-28 09:10:44 +02:00
Tobias Koppers
9b57c3cb56
avoid complex "by exports" splitting for splitChunks in development mode
2021-04-28 09:10:44 +02:00
Tobias Koppers
766be5a3fd
add cache.profile flag for more info about (de)serialization timings
2021-04-28 09:10:43 +02:00
Tobias Koppers
0abe3df1c6
Merge pull request #13235 from webpack/feature/class-fields
...
add support for class fields
2021-04-27 11:37:04 +02:00
Tobias Koppers
94facd387d
add support for class fields
2021-04-27 10:28:13 +02:00
Tobias Koppers
00d176419c
avoid nextTick when possible
2021-04-27 09:36:52 +02:00
Tobias Koppers
0aff7d2c63
avoid creating objects for location info when not accessed
2021-04-27 09:36:52 +02:00
Tobias Koppers
6fce46ebd8
avoid duplicate serialization
2021-04-27 01:20:56 +02:00
Tobias Koppers
78ee6fb386
store parents in Dependency
2021-04-23 14:51:25 +02:00
Tobias Koppers
88d90bea14
Use LazySets for ContextModuleFactory
2021-04-23 14:51:25 +02:00
Tobias Koppers
acfea9dae4
improve module graph hashing via bigints
2021-04-23 14:51:24 +02:00
Tobias Koppers
d1a56a8a44
skip unknown exports faster
2021-04-23 14:51:24 +02:00
Tobias Koppers
a89deee176
improve smartGrouping performance
2021-04-23 14:51:24 +02:00
Tobias Koppers
b71e0ced35
Merge branch 'master' into johnnyreilly/master
2021-04-22 21:52:48 +02:00
Tobias Koppers
ea53a23827
improve LoaderContext declaration
...
upgrade tooling
2021-04-22 21:48:29 +02:00
Tobias Koppers
7cc40782b7
fix some internal types
2021-04-22 21:48:25 +02:00
Tobias Koppers
e42915cf49
clean up types
2021-04-22 10:54:50 +02:00
Tobias Koppers
cb494c9a8b
fix returning exports from runtime for libraries
...
fixes #13165
2021-04-22 09:32:17 +02:00
Tobias Koppers
0eb2f352fe
fix typo
...
thanks @markjm
2021-04-21 07:20:11 +02:00
John Reilly
8cd30eb222
revert generic approach
2021-04-20 18:12:16 +01:00
Tobias Koppers
be66dc6242
collect memory cache faster when using filesystem cache
2021-04-20 15:40:06 +02:00
Tobias Koppers
177736f59c
avoid leaking unused memory in buffer backing stores in development mode
2021-04-20 15:22:16 +02:00
Tobias Koppers
09240b1230
avoid leaking context of cached function
2021-04-20 15:17:54 +02:00
Tobias Koppers
bf3f89c6ab
create functions outside of context to avoid leaking the context
2021-04-20 15:17:31 +02:00
Tobias Koppers
43f9320e83
remove large arrays from context to avoid leaking
2021-04-20 14:13:04 +02:00
John Reilly
40a5eb17fe
tried generic workarouuund
2021-04-20 09:18:59 +01:00
John Reilly
1578fd4f2f
schema
2021-04-20 09:01:46 +01:00
John Reilly
39042a2578
Update lib/index.js
...
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-04-20 08:52:15 +01:00
John Reilly
df44d7d8b7
attempt @sokras suggestion
2021-04-20 06:05:54 +01:00
John Reilly
a2f8808fee
apply @sokra's feedback and include runtime type
2021-04-19 19:30:58 +01:00
Tobias Koppers
85fe6ac4f4
Merge pull request #13157 from scamden/pr-hash-bug
...
fix(resolve): allows filesysteminfo to resolve files that have #'s
2021-04-19 19:42:59 +02:00
Tobias Koppers
28d9589d45
Merge pull request #13154 from webpack/perf/iterable
...
cheaper getIterator
2021-04-19 16:29:45 +02:00
Tobias Koppers
0197867237
use paths without fragment and query
2021-04-19 12:13:47 +02:00
Tobias Koppers
a8e229f2d8
Merge pull request #13174 from webpack/bugfix/pnpapi-external
...
add pnpapi as builtin
2021-04-19 11:12:44 +02:00
Tobias Koppers
ee24b22073
Merge pull request #13169 from janlent1/master
...
Fix deprecation message for LimitChunkCountPlugin
2021-04-19 10:34:15 +02:00
Tobias Koppers
f8fdc19c71
add pnpapi as builtin
...
fixes https://github.com/webpack/enhanced-resolve/pull/286
2021-04-19 10:30:51 +02:00
Tobias Koppers
ff6656338d
fix performance regression
2021-04-18 20:28:39 +02:00
Jan Lentmaier
d88605dcbd
Fix deprecation message for LimitChunkCountPlugin
...
Just a quick test whether the issue can easily be solved
by using the chunkGraph instead of the old methods.
2021-04-18 15:54:34 +02:00
John Reilly
586d013b91
feat: LoaderContext type
2021-04-16 19:28:30 +01:00
Tobias Koppers
e21b1d46fe
precompile schemas for improved startup performance
2021-04-16 16:02:58 +02:00
Sterling Camden
1e396e8296
fix(resolve): allows filesysteminfo to resolve files that have #'s escaped with \0
...
i don't understand the reasoning behind @sokra's escaping in enhanced resolve well enough to know if
this makes sense or is basically just undoing the hard work he did to distinguish these characters
from fragments. maybe he can chime in if this makes no sense to do
2021-04-15 11:43:34 -07:00
Tobias Koppers
70316dc998
fix #13130
2021-04-15 16:32:00 +02:00
Tobias Koppers
c7b1471251
cheaper getIterator
2021-04-15 15:17:52 +02:00
Tobias Koppers
2df8267220
handle falsy entry options correctly
2021-04-14 20:21:17 +02:00
Tobias Koppers
8d3a230366
fix passing publicPath to `this.importModule`
2021-04-14 19:48:22 +02:00
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
24c5902374
add interceptModuleExecution, module cache and improve error messages
2021-04-14 14:37:00 +02:00
Tobias Koppers
d808d04d26
attach the chunk graph to RuntimeModules
2021-04-14 12:26:35 +02:00
Tobias Koppers
0513a52df6
cache HarmonyExportImportedDependency.getMode
2021-04-14 09:11:23 +02:00
Tobias Koppers
bbcc5a8ebe
add caching on ModuleGraph
...
cache star reexport assignment
2021-04-14 09:11:23 +02:00
Tobias Koppers
9cecf3c4a4
add support for serializing circular values
2021-04-14 08:56:32 +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
33c862e07b
emit assets from modules during executing modules
2021-04-12 12:42:25 +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
57f04262b2
only warn when there is really a casing difference
2021-04-12 12:27:54 +02:00
Tobias Koppers
21bc6e715b
add support for a pseudo `.webpack[type]` extension allows to set module type when no other type is set from module.rules
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
b525e61a72
make sure that invalid event is only reported once
2021-04-09 17:51:58 +02:00
Tobias Koppers
cef2a8fea0
dispose code generation results after sealing the compilation
2021-04-08 18:33:51 +02:00
Tobias Koppers
51bd62d0b8
remove unused method
2021-04-08 18:26:22 +02:00
Tobias Koppers
c1b8a6c859
reduce number of write syscalls by creating larger buffers
...
and may copy small existing buffers into the larger one
2021-04-08 18:26:22 +02:00
Tobias Koppers
a3be72b24c
avoid leaking memory
2021-04-07 20:50:42 +02:00
Tobias Koppers
3caf3e95a8
avoid leaking processed assets
2021-04-07 20:48:07 +02:00
Tobias Koppers
6e3dbe32eb
Merge pull request #13077 from webpack/bugfix/hmr-entrypoint-reexecute
...
ensure that entrypoints are always re-executed when updated
2021-04-07 18:30:16 +02:00
Tobias Koppers
795b4b7b50
ensure that entrypoints are always re-executed when updated
2021-04-07 17:37:06 +02:00
Tobias Koppers
651e2ff0cb
fix subtraction of runtimes
...
fixes #13063
2021-04-07 15:50:28 +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
f64f837629
tty detection uses provided stream
2021-04-06 15:23:22 +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
e2fb89eed1
improve resolving of build dependencies when `exports` field is used
2021-04-06 13:58:36 +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
Pascal Corpet
cc1b41420c
Update lib/webpack.js
...
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-04-01 23:52:21 +02: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
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
3d90836f29
fix some edge cases in deterministicGrouping and add more tests
2021-03-31 16:55:30 +02:00
Tobias Koppers
667bbf02bb
export base dependencies correctly
2021-03-31 16:40:24 +02:00
Tobias Koppers
3286203141
Merge pull request #13016 from 43081j/expose-assets
...
expose Stats types
2021-03-31 15:10:44 +02:00
Tobias Koppers
f8b7625c43
expose all Stats child types
2021-03-31 13:37:53 +02:00
43081j
64fc30f0fe
expose StatsAsset type
...
Fixes #13014
2021-03-29 22:02:31 +01:00
Tobias Koppers
cb94f3cbea
improve logging for resolving build dependencies
2021-03-29 09:17:24 +02:00
Tobias Koppers
87b67a920d
avoid memory leak in v8 ICs after parsing and building modules
2021-03-25 14:52:12 +01:00
Barak Igal
92e8a1252e
export AsyncDependenciesBlock and ModuleDependency
2021-03-25 15:37:20 +02:00
Tobias Koppers
2696446edf
avoid memory leak in v8 ICs after (de)serializing
2021-03-25 13:24:52 +01:00
shYkiSto
9566a5b732
fix(NormalModule): call super to restore base module cache data
2021-03-23 16:44:03 -07:00
Tobias Koppers
0307bcf691
Merge pull request #12902 from xiaoxiaojx/feat/assetModulePublicPath
2021-03-23 07:56:55 +01:00
Tobias Koppers
3f378d9ff4
improve cache serialization by 30%
2021-03-22 20:28:08 +01:00
Tobias Koppers
3bdfa84ca8
remove from normalization
2021-03-22 15:10:13 +01:00
Tobias Koppers
7f362c816f
merge related info correctly
2021-03-22 15:08:06 +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
Tobias Koppers
d500420688
fix duplicate new URL and spacing for worker dependencies
...
update worker example
2021-03-22 14:30:44 +01:00
Tobias Koppers
1f460409cc
Merge pull request #12945 from webpack/bugfix/lazy-compilation
...
fix lazy compilation caching
2021-03-22 14:04:03 +01:00
Tobias Koppers
d23706860c
allow HMR deps for lazy compilation
2021-03-22 11:59:37 +01:00
Tobias Koppers
9d28d7c1ad
fix lazy compilation caching
2021-03-22 11:46:29 +01:00
Tobias Koppers
9c648cf90f
improve error handling in beforeLoaders hook
2021-03-22 10:17:17 +01:00
xiaoxiaojx
55fd79ee6a
feat: support assetModulePublicPath
2021-03-20 17:53:01 +08:00
Seth Benjamin
94bd3bc6f9
fix: allow invalidation after first watch run
2021-03-19 12:32:50 -07:00
Tobias Koppers
f81c9ba777
Merge pull request #12936 from webpack/bugfix/cache-entry-ids
2021-03-19 17:25:00 +01:00
Tobias Koppers
7de25e52bb
Merge pull request #12935 from webpack/feature/loader-utils
...
offer contextify and absolutify in loader context as utils
2021-03-19 17:02:10 +01:00
Tobias Koppers
89a44ab742
fix caching bug when split chunks of an entrypoint change and modules of the entrypoint stay equal
2021-03-19 16:13:18 +01:00
Tobias Koppers
aacd7b2143
fix library exports when using onChunks in entry
2021-03-19 16:13:18 +01:00
Tobias Koppers
dace3350e2
fix incorrect id assignment of record ids plugin
2021-03-19 15:57:40 +01:00
Tobias Koppers
ecb2c18cc6
offer contextify and absoluteify in loader context as utils
2021-03-19 10:59:10 +01:00
Tobias Koppers
09faac25ec
fix imports field
2021-03-19 09:13:47 +01:00
Tobias Koppers
174eb3cdf8
fix race condition in MultiCompiler queuing
...
fixes https://github.com/vercel/next.js/issues/23125
2021-03-17 11:04:41 +01:00
Tobias Koppers
fccc13aaa0
Merge pull request #12907 from webpack/bugfix/assign-library-runtime-chunk
...
fix problem with strict mode for assigning libraries with separate runtime chunk
2021-03-16 20:54:25 +01:00
Tobias Koppers
a93eb10903
fix problem with strict mode for assigning libraries with separate runtime chunk
2021-03-16 19:53:13 +01:00
Ali Al Amine
8dcaade8fc
Fix #12908
2021-03-16 20:19:10 +02:00
Tobias Koppers
7dc945f147
allow to place runtime outside of the output path
2021-03-16 13:07:58 +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
781fad2d10
Merge pull request #12874 from malectro/dev
2021-03-15 20:32:38 +01:00
Tobias Koppers
99ab8bc7a9
Merge pull request #12610 from anshumanv/12577
...
fix: prefix public path in importScripts
2021-03-15 17:02:41 +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
Anshuman Verma
eb63cb78b6
fix: prefix public path in importScripts
2021-03-15 16:08:59 +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
evilebottnawi
448ca3d951
fix: code
2021-03-15 14:42:55 +03:00
evilebottnawi
139324cbba
test: update snapshots
2021-03-15 14:42:55 +03:00
evilebottnawi
ea9b9917cd
fix: add `;`
2021-03-15 14:42:55 +03:00
evilebottnawi
c223b65e7a
fix: code
2021-03-15 14:42:55 +03:00
evilebottnawi
57eaf7f23c
refactor: code
2021-03-15 14:42:55 +03:00
evilebottnawi
ab60c54f3d
fix: es5
2021-03-15 14:42:55 +03: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
69218d4ea0
fix problem with startup of non-js initial chunks
...
fixes #12880
2021-03-14 19:54:50 +01:00
Tobias Koppers
61cc65c58e
improve parsing to handle non-literal options
2021-03-12 12:09:02 +01:00
Ingvar Stepanyan
ea2cdeb834
Remove `type: 'module` from `new Worker` exprs
...
Fixes #12686 .
2021-03-12 11:00:40 +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
bcf3cb2347
Merge pull request #12872 from webpack/bugfix/ignore-asset-modules
...
allow to define "ignored modules" per dependency
2021-03-11 20:34:48 +01:00
Kyle Warren
f74af75a56
fixed possible collision with addAll es proposal
2021-03-11 10:59:44 -08:00
Tobias Koppers
8ea0a6ad4e
Merge pull request #12831 from animecyc/bugfix/shared-plugin-runtime-bug
...
fix: use runtime globals in shared plugin
2021-03-11 19:30: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
cf208782e6
fix web worker chunk loadign for non-js chunks
2021-03-11 18:32:44 +01:00
Tobias Koppers
85a6eee0bb
move parser.filename back to generator.filename
2021-03-11 17:19:11 +01:00
Tobias Koppers
4df0c804b2
Merge pull request #12870 from webpack/bugfix/generator-depends-on-compilation
2021-03-11 14:01:14 +01:00
Tobias Koppers
182c398957
Merge pull request #12835 from wojtekmaj/fix/negative-right
...
fix deterministicGrouping looping over group.nodes's negative indexes
2021-03-11 11:55:25 +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
chenxsan
3edaddf6d7
opt out of strict mode
2021-03-10 18:16:52 +08:00
Tobias Koppers
a59b136fe8
improve correctness of maxSize splitting for edge cases
2021-03-09 22:47:05 +01:00
Wojciech Maj
a93fd01918
fix deterministicGrouping looping over group.nodes's negative indexes
...
Fixes #12487
2021-03-09 22:39:33 +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
715547c3e0
remove unused code
...
fix naming for non js entry handling in jsonp chunk loading
2021-03-09 17:19:16 +01:00
Tobias Koppers
393913dbd8
rename files, avoid indenting runtime code
2021-03-09 09:42:01 +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
Tobias Koppers
c18b3c53e5
Merge pull request #12832 from webpack/bugfix/array-default-fallback
...
fix array expansion when using "..."
2021-03-08 10:51:34 +01:00
Tobias Koppers
9e7a29354e
Merge pull request #12822 from webpack/bugfix/avoid-package-json-build-dependency
2021-03-08 10:46:03 +01:00
Tobias Koppers
e63e733713
fix array expansion when using "..."
2021-03-08 09:41:11 +01:00
Pascal Corpet
60d4605173
fix types: accept a readonly array for configuration options
2021-03-08 09:06:04 +01:00
Tobias Koppers
97064eebb8
Merge pull request #12823 from chenxsan/bugfix/fix-typo
...
fix a grammar problem
2021-03-08 07:31:51 +01:00
Seth Benjamin
9fa45137d8
fix: use runtime globals in shared plugin
...
- Fixes a bug that caused HMR to fail when using Module Federation (__webpack_modules__ is not defined).
2021-03-07 16:03:05 -08:00
Tobias Koppers
e28788a4d4
Merge pull request #12714 from jasongrout/uncpaths
2021-03-06 19:34:55 +01:00
Tobias Koppers
8dcb90dbbd
avoid making the package.json in context a build dependency
2021-03-06 16:36:14 +01:00
chenxsan
45a439c75f
fix a grammar problem
2021-03-06 22:09:34 +08:00
evilebottnawi
3237c5a670
fix: prefer provided external over built-in
2021-03-02 13:11:31 +03:00
Tobias Koppers
70376ad4ec
fix problem where emitting an asset twice affects the hash
2021-03-01 09:51:46 +01:00
Tobias Koppers
3ea2061c93
Merge pull request #12778 from webpack/bugfix/12770
...
MultiCompiler Watching fixes
2021-02-24 21:02:48 +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
1ff55df486
fixes #12769
2021-02-24 12:54:17 +01:00
Tobias Koppers
9efce4bd84
Merge pull request #12761 from zollero/master
...
Fix letter spelling of missing a 's'
2021-02-23 22:48:10 +01:00
Tobias Koppers
1a584d3148
ensure all successful compiled modules are persistent cached
...
fix some test cases and code to ensure this is true
2021-02-23 15:36:53 +01:00
Tobias Koppers
f96194e0f6
storing ConcatenatedModule doesn't make sense, since it has no cachable info
...
instead the code geneneration cache will cover everything
2021-02-23 15:36:52 +01:00
Zollero
bb1d319a8a
fix letter spelling of missing a 's'
...
fix letter spelling of missing a 's'
2021-02-23 19:23:50 +08:00
Tobias Koppers
5c42b918b4
further optimizations
2021-02-23 12:03:26 +01:00
Tobias Koppers
365a362522
performance optimization
...
add statistics to ModuleConcatenationPlugin
2021-02-23 10:59:59 +01:00
Tobias Koppers
84ec7708c2
improve performance of getModuleRuntimes
2021-02-23 00:25:38 +01:00
Tobias Koppers
0742a05bc1
fix `experiments.lazyCompilation: true`
2021-02-22 23:25:37 +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
Jason Grout
194ba960fe
Convert path testing functions to use node builtin isAbsolute function.
2021-02-22 09:30:45 -08:00
Tobias Koppers
972b7f9bd1
Merge pull request #12743 from webpack/bugfix/logger-name
...
fix logger name
2021-02-22 15:43:41 +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
a90d2b20f5
fix logger name
2021-02-22 13:41:21 +01:00
Tobias Koppers
2bfbf81b59
Merge pull request #12745 from webpack/perf/module-concatenation
...
improve performance of finding modules for concatenation
2021-02-22 13:39:29 +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
9b448c14d9
debug logging should be included in stats even if stats.logging is false
2021-02-22 12:53:52 +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
Tobias Koppers
a084baac2f
improve performance of finding modules for concatenation
2021-02-22 10:52:39 +01:00
Tobias Koppers
e09090bbf1
Merge pull request #12734 from npenin/master
2021-02-22 10:13:23 +01:00
Nicolas Penin
3a2409fcde
Update index.js
2021-02-21 10:59:17 +01:00
Nicolas Penin
83bc3c588b
updated typedef in index.js
2021-02-21 10:53:38 +01:00
Patrik Åkerstrand
a62c350804
simplify branching logic
2021-02-19 19:32:23 +01:00
Patrik Åkerstrand
398fdef5c8
Fix module concatenation renaming bug
...
Fixes a case where variable renaming due to module concatenation caused
the generated code to look up a different property than the source code, when
combined with a default value for the property
Closes #12712
2021-02-19 12:08:21 +01:00
Jason Grout
2c01738149
Lint fix
2021-02-18 09:25:19 -08:00
Jason Grout
058951faa1
Handle Windows UNC paths as Windows paths
...
Fixes https://github.com/webpack/webpack/issues/12305
UNC paths are defined in section 2.2.57 of https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-DTYP/%5bMS-DTYP%5d.pdf . See also https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats#unc-paths , for example.
2021-02-18 08:53:42 -08:00
Tobias Koppers
cdac6695fb
Merge pull request #12710 from webpack/bugfix/library-runtime-chunk
...
fix regression when combining library + runtimeChunk + node target
2021-02-18 16:47:16 +01:00
Tobias Koppers
cc6f3d9113
fix regression when combining library + runtimeChunk + node target
...
related to https://github.com/vercel/next.js/pull/22187
2021-02-18 15:50:40 +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
32bd1a2ff5
Merge pull request #12692 from dnalborczyk/spellcheck
...
chore: move unknown word to cspell.json
2021-02-17 10:15:28 +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
Daniel Nalborczyk
bd5e4ddfa2
chore: move word to cspell.json
2021-02-15 23:21:04 -05:00
Tobias Koppers
44b4e25b98
fixes for electron target
...
electron has `importScripts` in worker
only choose a chunkLoading which fits to the chunkFormat
prefer fetch wasm loading over node wasm loading
2021-02-15 17:19:08 +01:00
Tobias Koppers
1e90726c6f
Merge pull request #12680 from webpack/bugfix/12676
...
order runtime chunks correctly for hashing
2021-02-14 23:53:30 +01:00
Tobias Koppers
ec3b1f0876
Merge pull request #12671 from webpack/feature/multi-compiler-parallelism-dependencies
2021-02-14 23:30:28 +01:00
Tobias Koppers
ca0df823c8
order runtime chunks correctly for hashing
...
fixes #12676
2021-02-14 21:59:45 +01:00
Tobias Koppers
51057e781c
fix handler called with empty stats
2021-02-14 21:57:52 +01:00
Tobias Koppers
4d0f567144
cheaper options access
2021-02-14 21:43:30 +01:00
Tobias Koppers
a047cf8c10
Merge pull request #12677 from webpack/bugfix/12669
...
fix #12669
2021-02-14 21:41:31 +01:00
Tobias Koppers
9a7ffbabd3
only execute loader/require when no serializer is registered yet
2021-02-14 19:50:10 +01:00
Tobias Koppers
902aecd26c
fix #12669
2021-02-14 19:43:39 +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
683621e93f
fix stats output in some edge cases
2021-02-13 21:02:47 +01:00
Tobias Koppers
547b4d8deb
Merge pull request #12654 from webpack/feature/better-libraries
2021-02-11 16:32:40 +01:00
Tobias Koppers
aa95befe42
Merge pull request #12657 from Knagis/lazy-ie11
...
Fix lazy compilation not-supported error message on IE11
2021-02-11 16:32:13 +01:00
Tobias Koppers
8fda3dee8c
Merge pull request #12658 from webpack/hint/stats-children
...
hint about how to show child errors and warnings
2021-02-11 16:32:00 +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
0c4e157196
fix incorrect parsing of define functions
...
fix invalid code when using declaring local modules and arrow functions are supported
2021-02-11 11:18:40 +01:00
Tobias Koppers
1b463f9820
Merge pull request #12632 from fcaminada/fixUnhandedPromise
2021-02-11 11:17:06 +01:00
Tobias Koppers
3a8b3d983b
hint about how to show child errors and warnings
...
fixes #12653
2021-02-11 10:53:52 +01:00
Karlis Gangis
7552289daf
Fix lazy compilation error message on IE11
2021-02-11 11:43:10 +02:00
David Fong
b01d694740
fix backslash-escaping string replace
...
Thanks, sokra!
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-02-10 18:25:18 +01:00
david-fong
68aca0a86d
handle escaping + update jest snapshot
2021-02-10 18:23:52 +01:00
David Fong
9a8e6c8c24
Use single-quoted string for JSON marshalling
...
See #12641
2021-02-10 18:23:04 +01:00
Tobias Koppers
1fc441c7c6
Merge pull request #12639 from webpack/feature/library-module
2021-02-10 17:46:24 +01:00
Felipe Caminada
83fcb3b0ba
Returning thrown error to prevent unhandled promise
...
Throwing error when loaded module has errors
Adding newline at the end of the index.js file
Changing test logic to address error on cached tests
2021-02-10 08:09:15 -08:00
Tobias Koppers
1061c72c37
Merge pull request #12647 from webpack/bugfix/empty-entry
2021-02-10 17:05:25 +01:00
Tobias Koppers
b30596e170
enforce side-effects on async entries similar to normal entrypoints
...
fixes #12646
2021-02-10 16:23:36 +01:00
Tobias Koppers
d65f3bbf0d
fix crash when all modules of an entrypoint fail resolving and another entrypoint dependOn it
2021-02-10 15:40:11 +01:00
Tobias Koppers
35807ca018
add very basic library type "module"
2021-02-09 21:28:18 +01:00
Tobias Koppers
89e95d6bda
newline fixes for startup code
2021-02-09 21:28:10 +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