Tobias Koppers
869f9c8a8c
use createScriptUrl only when needed
2021-05-10 09:58:27 +02:00
Tobias Koppers
bb8ba1cd05
disable trustedTypes by default
...
allow to pass a boolean as trustedTypesPolicy
2021-05-10 09:02:46 +02:00
Tobias Koppers
87c0d1cd94
Merge branch 'master' into johnnyreilly/master
2021-05-07 18:07:23 +02:00
Krzysztof Kotowicz
3561285ea8
Skip using Trusted Types checks if trustedTypesPolicyName is empty.
2021-05-07 10:30:57 +02:00
Bolarinwa Balogun
0d1e2f9c5b
Apply requested changes
2021-05-06 07:57:33 -04:00
Bjarki
b6e112dabe
Only expose createScriptURL function from Trusted Types policy
...
Since createScriptURL is the only function that is used on webpack's
Trusted Types policy, replace the getTrustedTypesPolicy global with a
simpler createScriptURL global.
In terms of compiled code, this replaces the non-minifiable
tt().createScriptURL(url) with tu(url), which is more compact in terms
of code size.
2021-05-04 16:26:22 +02:00
Bjarki
cff99ee066
Split use-trusted-types into two test cases
...
This test checks for behaviour in environments with and without Trusted
Types support. Separate this into two tests so that they each run in a
clean environment.
2021-05-04 16:17:49 +02:00
Krzysztof Kotowicz
8c3ebccc69
Added Trusted Types support for importScripts() in workers.
2021-05-04 16:17:49 +02:00
Bjarki
2d56faf7d2
Update snapshots
2021-05-04 16:17:45 +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
Emanuel Tesar
f3eb1bce51
Integrate Trusted Types in webpack
2021-05-04 16:06:37 +02:00
Bolarinwa Balogun
743b190816
fix: resolve mismatch with types declaration and docs for resourceQuery
2021-05-03 11:40:26 -04: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
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
eea0aee1a7
catch errors thrown during parser/generation creation
2021-04-30 09:45:14 +02:00
Tobias Koppers
24fa101875
Merge pull request #13239 from webpack/ci/node-16
...
run tests on Node.js 16
2021-04-28 20:55:06 +02:00
Tobias Koppers
2bcf0c2980
fix test cases for node 16
2021-04-28 16:10:45 +02:00
Tobias Koppers
532b07e0c1
faster hashing for the common case
2021-04-28 09:10:45 +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
3ddadb2031
run tests on Node.js 16
2021-04-27 11:43:25 +02:00
Tobias Koppers
94facd387d
add support for class fields
2021-04-27 10:28:13 +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
b71e0ced35
Merge branch 'master' into johnnyreilly/master
2021-04-22 21:52:48 +02:00
Tobias Koppers
4e70b37579
test typings and fix type problems in loaders in the test suite
2021-04-22 21:48:47 +02:00
Tobias Koppers
6b3408d8ca
improve testing logic
2021-04-22 09:46:30 +02:00
Tobias Koppers
cb494c9a8b
fix returning exports from runtime for libraries
...
fixes #13165
2021-04-22 09:32:17 +02:00
Tobias Koppers
be66dc6242
collect memory cache faster when using filesystem cache
2021-04-20 15:40:06 +02:00
John Reilly
df44d7d8b7
attempt @sokras suggestion
2021-04-20 06:05:54 +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
da2c5f286b
add test case
2021-04-19 12:22:51 +02:00
Tobias Koppers
0a774a6cfb
improvements
2021-04-19 11:53:11 +02:00
igio
164c91a6b9
feat: accept empty string in config.resolve.extensions
...
- remove minLength from extensions in schema/WebpackOptions
- add tests reflecting the change
- no conflicts with existing tests
- no conflicts with enhanced-resolve
2021-04-19 11:45:21 +02:00
Tobias Koppers
49890b77aa
Merge pull request #13153 from webpack/bugfix/13130
...
fix #13130
2021-04-15 17:44:41 +02:00
Tobias Koppers
70316dc998
fix #13130
2021-04-15 16:32:00 +02:00
Tobias Koppers
4837c3ddb9
Merge pull request #13140 from jamesgeorge007/update-property-desc
...
chore: update cache property descriptions
2021-04-14 21:32:51 +02:00
Tobias Koppers
8d3a230366
fix passing publicPath to `this.importModule`
2021-04-14 19:48:22 +02:00
jamesgeorge007
9f9976d3cd
test: update snapshots
2021-04-14 22:43:44 +05:30
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
31353e36c5
Merge pull request #13132 from webpack/test/stability
...
improve test stability
2021-04-14 12:55:08 +02:00
Tobias Koppers
ad4b8063ac
improve test stability
2021-04-14 12:10:15 +02:00
Tobias Koppers
846e8f0265
improve error reporting
2021-04-13 17:33:41 +02:00
Tobias Koppers
543259f173
update snapshot
2021-04-12 15:41:00 +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
f8ed312c34
capture module assets when using executeModule
2021-04-12 12:27:55 +02:00
Tobias Koppers
596b133087
update snapshot
2021-04-12 12:27:55 +02:00
Tobias Koppers
ea3e0a39ac
add experiments.executeModule
...
rename runModule -> executeModule
improve error reporting
2021-04-12 12:27:55 +02:00
Tobias Koppers
0d6b5db12e
add watch test case
2021-04-12 12:27:55 +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
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
b525e61a72
make sure that invalid event is only reported once
2021-04-09 17:51:58 +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
Hyeonmin Park
e5e7b3247a
fix: update cli test snapshot
2021-04-06 23:46:57 +09:00
Hyeonmin Park
74fabafe22
fix: base config test in Defaults
2021-04-06 22:50:19 +09: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
Hyeonmin Park
f000617d9f
chore: fix typo collaped
2021-04-04 13:39:30 +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
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
d39e948347
update cli snapshot
2021-03-31 19:24:27 +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
0307bcf691
Merge pull request #12902 from xiaoxiaojx/feat/assetModulePublicPath
2021-03-23 07:56:55 +01:00
Tobias Koppers
3bdfa84ca8
remove from normalization
2021-03-22 15:10:13 +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
50a170029f
add test case
2021-03-22 11:59:48 +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
ecb2c18cc6
offer contextify and absoluteify in loader context as utils
2021-03-19 10:59:10 +01:00
Guy Bedford
5e2a457d28
even simpler example
2021-03-18 23:51:31 +02:00
Guy Bedford
0cfd7cc8f2
fixup test
2021-03-18 23:48:33 +02:00
Guy Bedford
421855bcf1
imports test with failure
2021-03-18 18:04:21 +02: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
Tobias Koppers
744aa27943
add test case
2021-03-16 19:51:15 +01: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
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
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
ea9b9917cd
fix: add `;`
2021-03-15 14:42:55 +03:00
evilebottnawi
c223b65e7a
fix: code
2021-03-15 14:42:55 +03:00
evilebottnawi
063b5dd371
test: update snapshots
2021-03-15 14:42:55 +03:00
evilebottnawi
eb3bcf2d65
test: update snapshots
2021-03-15 14:42:55 +03: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
e839494ff0
Disallow type:module + importScripts in tests
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
Tobias Koppers
c0146653e8
update cli snapshots
2021-03-11 19:31:33 +01: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
cf57a14ba7
improve test case
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
b14ecc1be0
fix merge issue
2021-03-11 17:18:21 +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
1ab7078835
update cli snapshot
2021-03-11 11:51:24 +01:00
Tobias Koppers
2656628db5
add test case
2021-03-11 10:56:50 +01:00
Seth Benjamin
cbcc873383
chore: add hot-case share-plugin test
2021-03-10 18:44:54 -08:00
chenxsan
8250133209
add test for type assign-properties
2021-03-10 18:27:14 +08:00
chenxsan
697367b911
update test
2021-03-10 13:02:50 +08:00
chenxsan
c89294e8fa
add failing test
2021-03-10 12:47:11 +08:00
Tobias Koppers
a59b136fe8
improve correctness of maxSize splitting for edge cases
2021-03-09 22:47:05 +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
5ff9a1486f
add test case
2021-03-08 09:40:02 +01:00
Tobias Koppers
b6502d2983
improve test suite stablility
2021-03-08 09:13:41 +01:00
dmattia
b89b536106
Add a test case for resolve.fallback
2021-03-06 12:27:28 -06:00
Tobias Koppers
8dcb90dbbd
avoid making the package.json in context a build dependency
2021-03-06 16:36:14 +01:00
evilebottnawi
3237c5a670
fix: prefer provided external over built-in
2021-03-02 13:11:31 +03:00
Tobias Koppers
923ac94f82
add test case for assets that become identical after optimization
2021-03-01 10:15:06 +01: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
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
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
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
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
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
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
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
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
902aecd26c
fix #12669
2021-02-14 19:43:39 +01:00
Tobias Koppers
c925a45888
add handler
2021-02-13 21:18:47 +01:00
Tobias Koppers
70d68bcd0a
add tests for progress
2021-02-13 21:13:48 +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
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
756938a7c6
Merge pull request #12642 from david-fong/singlequoted-json-marshalling
2021-02-11 10:59:55 +01:00
Tobias Koppers
3a8b3d983b
hint about how to show child errors and warnings
...
fixes #12653
2021-02-11 10:53:52 +01:00
Tobias Koppers
67d89485f3
Merge pull request #10825 from jeffin143/reslove-alias-test
2021-02-10 19:40:12 +01:00
david-fong
68aca0a86d
handle escaping + update jest snapshot
2021-02-10 18:23:52 +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
89e95d6bda
newline fixes for startup code
2021-02-09 21:28:10 +01:00
Tobias Koppers
b29dd3d224
add renderStartup hook
2021-02-09 21:27:10 +01:00
Tobias Koppers
1c8fe2a8f8
allow module inlining when exports is used
2021-02-09 21:26:23 +01:00
Tobias Koppers
d0fe577b27
add some better hints when resolving fails
2021-02-08 22:11:05 +01:00
Tobias Koppers
56a4224048
run tests on node 15
...
fix test case
2021-02-07 20:22:23 +01:00
Tobias Koppers
223d72245d
fix test case to not use whole namespace object
2021-02-07 17:22:42 +01:00
Tobias Koppers
92fba2d346
fix json related tree shaking and caching problems
...
json with constructor property now caches correctly
json generation with object prototype property now works correctly
tree shaking json array when accessing length property now works correctly
fix incorrect call context when calling properties on imports from CommonJS modules
fixes #12615
2021-02-07 16:43:44 +01:00
Tobias Koppers
0e63c0db0a
fix infinite loop in defaulting
2021-02-05 20:09:50 +01:00
Tobias Koppers
5583c245c9
Merge pull request #12601 from webpack/feature/error-details-auto
2021-02-05 19:58:25 +01:00
Tobias Koppers
1ce758bce8
fix snapshot
2021-02-05 16:29:26 +01:00
Tobias Koppers
65f1fb4d93
add to change base URI at runtime
...
fix missing runtime requirement for base uri
2021-02-05 16:17:18 +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
fc9433f3eb
add test case
2021-02-04 14:34:08 +01:00
Tobias Koppers
fdae092cee
Merge pull request #12575 from webpack/ci/timing-snapshot
...
exclude ModuleProfile from snapshot as it's not deterministic
2021-02-03 15:26:30 +01:00
Tobias Koppers
93931241ba
Merge pull request #12567 from mattcompiles/fix-broken-rebuild
2021-02-03 14:41:42 +01:00
Tobias Koppers
a4d1f7cbd7
improve BinaryMiddleware test cases
2021-02-03 11:53:03 +01:00
Tobias Koppers
e88c14836e
exclude ModuleProfile from snapshot as it's not deterministic
2021-02-03 09:58:17 +01:00
Matt Jones
17acae4d9e
Fix formatting
2021-02-03 08:58:27 +11:00
Matt Jones
d39cbe2ee6
Fix module rebuilds that add new dependencies
2021-02-03 08:40:20 +11:00
Tobias Koppers
5c6720850a
Merge pull request #12565 from webpack/bugfix/12562
...
fix #12562
2021-02-02 21:13:14 +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
e5cca2fa1a
fix #12562
2021-02-02 20:26:52 +01:00
Tobias Koppers
c4c22ecb08
Merge pull request #12553 from Knagis/lazy-compile-options
2021-02-02 19:29: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
b976379149
rename and fix test case
2021-02-02 13:11:39 +01:00
Sergey Melyukov
654e4e1ba0
Merge remote-tracking branch 'upstream/master' into clean
2021-02-02 10:38:41 +03:00
Tobias Koppers
09ba8d8abe
update stats snapshot
2021-02-02 03:32:25 +01:00
Tobias Koppers
2ad86c366b
update test cases
2021-02-02 01:26:33 +01:00
Karlis Gangis
c15fc1bae4
Fix new Worker() compatibility check in unit tests for older node versions
2021-02-01 18:01:20 +02:00
Karlis Gangis
f0fa61ae1f
Add new options for lazyCompilation: imports and skipModule
2021-02-01 16:52:47 +02:00
Tobias Koppers
e66cd2fc9b
fix merge issue
2021-01-29 20:01:13 +01:00
Tobias Koppers
827c52eeb7
Merge pull request #12529 from webpack/bugfix/tla
2021-01-29 16:59:08 +01:00
Tobias Koppers
b2a4ea185f
workaround for v8 bug
2021-01-29 14:53:51 +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
evilebottnawi
173c092dd5
test: update snapshot
2021-01-27 16:01:04 +03: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
c4d41ffa55
nitpicks for tests
2021-01-22 10:24:25 +01:00
Tobias Koppers
100317556e
add lazy compilation for entrypoints
2021-01-22 01:01:17 +01:00
Tobias Koppers
988cf8d47a
improve error handling
2021-01-21 21:05:23 +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
f85f0d5baf
Merge pull request #12452 from webpack/bugfix/12044
2021-01-21 09:13:55 +01:00
Tobias Koppers
f6dac795ed
Merge pull request #12462 from webpack/bugfix/profiling-timestamps
2021-01-20 21:17:15 +01:00
webpack bot
589b7468da
Merge pull request #12109 from webpack/dependabot/npm_and_yarn/css-loader-5.0.1
...
chore(deps-dev): bump css-loader from 3.6.0 to 5.0.1
2021-01-20 20:27:11 +01:00
Tobias Koppers
65d3c38094
workaround for terser bug
2021-01-20 20:24:16 +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
9bec35433c
add test case
2021-01-20 17:54:53 +01:00
Tobias Koppers
941f583da0
Merge pull request #10845 from jamesgeorge007/update-metadata
...
tests: update metadata
2021-01-20 09:01:19 +01:00
Peter Somogyvari
12f37fe80d
feat(CommonJsPlugin): magic comment to ignore require calls
...
A partial port of the same magic comments that are supported
for import() calls already via this commit:
f65e9dac98
Signed-off-by: Peter Somogyvari <peter.metz@unarin.com>
2021-01-19 11:54:29 -08:00
Tobias Koppers
8d2c2f44c5
Merge pull request #12453 from webpack/bugfix/reuse-vendor-entry
...
reuseExistingChunk is able to reuse an entry chunk when it's the only selected chunk
2021-01-19 19:23:38 +01:00
Tobias Koppers
f976ddd6e1
update test cases for css-loader update
2021-01-19 17:24:37 +01:00
Tobias Koppers
2b3489d136
reuseExistingChunk is able to reuse an entry chunk when it's the only selected chunk
2021-01-19 17:08:58 +01:00
Ivan Kopeykin
9fadec4dc1
fix: walk iife function expression params
2021-01-19 13:35:50 +01:00
Tobias Koppers
4ec418c8ee
allow inner graph shaking for new URL()
...
fixes #11818
2021-01-19 13:31:55 +01:00
jamesgeorge007
380a5c48ec
refactor: update other instances
2021-01-19 17:19:33 +05:30
jamesgeorge007
6a6db2a155
refactor: use es6 arrow functions for the sake of consistency
2021-01-19 16:56:14 +05:30
jamesgeorge007
dc4320f728
tests: rephrase description for Compiler tests
2021-01-19 16:56:14 +05:30
jamesgeorge007
50e48a8ad7
refactor: avoid redundant else block
2021-01-19 16:56:14 +05:30
jamesgeorge007
427491edbd
tests: rephrase descriptions
2021-01-19 16:56:13 +05:30
Tobias Koppers
b7cbe9d36e
Merge pull request #11913 from snitin315/fix/error-message
2021-01-18 20:39:22 +01:00
Tobias Koppers
f28abd8b0b
Merge pull request #12442 from webpack/bugfix/12244
2021-01-18 20:38:47 +01:00
Tobias Koppers
dfe9cd392a
Merge pull request #11629 from xiaoxiaojx/feat/issue_11571
2021-01-18 19:24:09 +01:00
Tobias Koppers
e9183f9810
only return result of startup when needed
...
fixes #12244
2021-01-18 19:21:12 +01:00
Tobias Koppers
a08eca78ff
Merge pull request #12132 from jakenorthey/feature/prioritize-eager-shared-modules
2021-01-18 17:00:21 +01:00
Tobias Koppers
1e988a109b
Merge branch 'master' into feat/issue_11571
2021-01-18 16:54:26 +01:00
Tobias Koppers
1ca9f85d4e
improve and align error message
2021-01-18 16:22:07 +01:00
Nitin Kumar
ea9f5c4fb8
tests: for invalid library name error message
2021-01-18 16:16:37 +01:00
Tobias Koppers
c80c8fe5c2
Merge pull request #10702 from vankop/webpack-is-included
...
feat: new dependency __webpack_is_included__
2021-01-16 19:02:41 +01:00
Tobias Koppers
fa5cc4500d
Merge pull request #11433 from samcooke98/samc/fix-module-rebuild
2021-01-15 16:45:28 +01:00
Tobias Koppers
6d64eb0eae
add side effects to avoid optimization
2021-01-15 16:44:25 +01:00
Tobias Koppers
e475ec3fb0
Merge pull request #12429 from webpack/feature/resolve-in-externals
2021-01-15 16:07:15 +01:00