Tobias Koppers
7135727cba
avoid unneccessary separators and arrays
2021-10-04 09:29:09 +02:00
shfshanyue
92f84dcac0
chore: merge multi hash.update
2021-09-26 08:51:53 +08:00
Ivan Kopeykin
ffad02dbe2
fix discussions
2021-09-20 15:40:45 +03:00
Ivan Kopeykin
1b2c08a672
fix discussions
2021-09-17 07:23:29 +03:00
Ivan Kopeykin
18ed9cb34b
fix logic expression evaluation
2021-09-16 13:15:01 +03:00
Tobias Koppers
720aa43bd3
handle hashbangs in javascript files
...
fixes https://github.com/vercel/next.js/issues/27806
2021-08-10 11:34:06 +02:00
Sven Sauleau
6c50c81350
Revert "Revert "Merge pull request #12278 from xtuc/sven/import-assertions""
...
This reverts commit 61946b7c46
.
2021-07-24 23:28:30 +01:00
Tobias Koppers
0bd1e789d4
generate "use strict" only when really needed
2021-07-22 16:09:09 +02:00
Tobias Koppers
3967571924
Merge branch 'main' into fix/overwritten_webpack__exports_onChunksLoaded
2021-07-16 21:58:34 +02:00
Tobias Koppers
61946b7c46
Revert "Merge pull request #12278 from xtuc/sven/import-assertions"
...
This reverts commit df02bc6c0a
, reversing
changes made to a6f341e243
.
2021-07-16 21:54:21 +02:00
Tobias Koppers
c469adc265
fix handling of onChunksLoaded with prefetching
2021-07-16 18:11:29 +02:00
shinyaigeek
1d8f9fd4d0
Fix: overwritten __webpack_exports__ on onChunksLoaded
2021-07-16 18:10:45 +02:00
Tobias Koppers
7f22e4721f
match on asserts
...
change Map to Record
improve test case
2021-07-16 13:17:20 +02:00
Sven Sauleau
b166f46f2c
parse import assertions
2021-07-16 13:14:54 +02:00
Tobias Koppers
629f9f031c
add support for module externals and automatic externals
2021-06-24 16:44:14 +02:00
Tobias Koppers
4da99d8254
add `module` library support, test and example
...
add test cases for `experiments.outputModule`
2021-06-23 14:49:14 +02:00
Tobias Koppers
c3af61fe2a
add `__webpack_modules__` when `__webpack_require__` is used
2021-06-23 14:49:14 +02:00
Tobias Koppers
d09cc17cee
use types from estree
2021-06-22 09:47:29 +02:00
Tobias Koppers
d0f500b76d
Merge pull request #13565 from webpack/dependabot/npm_and_yarn/acorn-8.4.0
...
chore(deps): bump acorn from 8.2.4 to 8.4.0
2021-06-22 09:43:00 +02:00
Tobias Koppers
b6a39e3ccf
remove allowAwaitOutsideFunction option as it's now set by default
2021-06-21 10:14:49 +02:00
Tobias Koppers
4e608c8723
assign class property keys to the correct top level symbol
2021-06-21 09:48:14 +02:00
Tobias Koppers
b0fa9ccada
pretty files
2021-05-11 09:31:46 +02:00
Tobias Koppers
94facd387d
add support for class fields
2021-04-27 10:28:13 +02:00
Tobias Koppers
cb494c9a8b
fix returning exports from runtime for libraries
...
fixes #13165
2021-04-22 09:32:17 +02:00
Tobias Koppers
24c5902374
add interceptModuleExecution, module cache and improve error messages
2021-04-14 14:37:00 +02:00
Tobias Koppers
ea3e0a39ac
add experiments.executeModule
...
rename runModule -> executeModule
improve error reporting
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
87b67a920d
avoid memory leak in v8 ICs after parsing and building modules
2021-03-25 14:52:12 +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
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
2abcede6cd
Merge pull request #12852 from chenxsan/test/test-library-type-assign
2021-03-15 20:33:14 +01:00
Tobias Koppers
d5992633e6
offer a hook to opt-out of strict mode
2021-03-15 16:38:50 +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
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
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
5c42b918b4
further optimizations
2021-02-23 12:03:26 +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
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
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
evilebottnawi
938fc8946a
refactor: add semicolon
2021-01-27 15:47:04 +03:00
Tobias Koppers
a07a1269f0
Merge pull request #11316 from petermetz/master
2021-01-21 11:46:33 +01:00
Tobias Koppers
be13a46750
sort imports
2021-01-20 09:51:17 +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