wangqi
dbf8b355df
update snapshots
2021-12-29 20:41:04 +08:00
Tobias Koppers
08ea1464d5
keep state of chunk loading during hmr updates
...
ignore duplicate chunk loads
2021-08-16 13:50:43 +02:00
Tobias Koppers
b29c44e223
add separate webpack warmup step with large timeout
2021-07-15 16:37:54 +02: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
evilebottnawi
448ca3d951
fix: code
2021-03-15 14:42:55 +03: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
Tobias Koppers
d64227af29
re-add chunkId to script loading when available
2021-01-06 10:08:40 +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
436be4a029
allow to execute chunks before the runtime has executed
...
even when the entrypoint has only a single chunk
fixes #12130
2020-12-07 09:32:07 +01:00
Tobias Koppers
ac15f06f2a
improve handling of exported Promises
2020-11-16 20:24:54 +01:00
Tobias Koppers
590aacc2ae
make visible exports from non-harmony modules more consistent
...
fixes #11995
2020-11-16 17:19:36 +01:00
Tobias Koppers
2ec90b3687
add asset info for `sourceFilename` and `javascriptModule`
2020-10-22 10:47:23 +02:00
Tobias Koppers
79256529c4
upgrade terser-webpack-plugin
2020-10-15 10:01:10 +02:00
Tobias Koppers
4dc04d1971
Merge branch 'master' into dynamically-resolve-public-path
2020-09-18 10:40:39 +02:00
Tobias Koppers
2f01aac8ce
web worker support for automatic publicPath
2020-09-18 10:31:05 +02:00
Tobias Koppers
b5719c57e2
improve public path runtime module
2020-09-18 09:48:53 +02:00
Tobias Koppers
d4a95cd6ad
display large assets first
...
sort assets by size
2020-09-17 15:21:14 +02:00
Ivan Kopeykin
580de0873a
update publicPath
...
- support option output.publicPath="auto"
- add test cases
- render import.meta.url for output.scriptType="module"
2020-09-15 00:27:38 +03:00
Tobias Koppers
ed06a7f83a
new Worker() support
...
add support for async anonymous entrypoints from inside the codebase
add worker example
move entry options into Entrypoint and receive them from there
2020-09-08 07:37:20 +02:00
Tobias Koppers
0afc6a7f48
print entrypoint only when necessary (stats.entrypoints: "auto")
...
show sizes for entrypoints
2020-09-03 23:29:14 +02:00
Tobias Koppers
3ea9400505
add grouping of assets
2020-09-01 18:16:43 +02:00
Tobias Koppers
6928a65911
conflict-free handling of global in import-script
...
use destructuring when available
2020-08-28 11:27:33 +02:00
Tobias Koppers
d5d2e3f244
use "self" as globalObject for web-like targets
2020-08-28 11:27:31 +02:00
Tobias Koppers
4505a47e61
update snapshots and deprecations
2020-08-04 13:58:10 +02:00
Tobias Koppers
a69e5dbba8
fix script loading problem with multiple parallel runtimes
2020-08-03 15:28:43 +02:00
Tobias Koppers
d0ef2ce43f
display assets in stats in a list instead of a table
...
group related assets below the parent asset
2020-08-02 08:07:32 +02:00
Tobias Koppers
02c01d541b
a little more defensive in the chunk loading runtime code to avoid crashes
2020-07-02 15:25:24 +02:00
Tobias Koppers
2d73392b68
avoid collision in `data-webpack` by adding the uniqueName
2020-06-19 18:55:40 +02:00
Tobias Koppers
18f6c0b803
update snapshots
2020-06-04 14:54:16 +02:00
jamesgeorge007
19a551a671
refactor: invoke createFsFromVolume as a function
2020-02-18 20:22:26 +05:30
jamesgeorge007
e1ec9e6bea
chore: migrate to memfs
2020-02-18 20:22:10 +05:30
Tobias Koppers
782e4535ac
Refactor how exportsType work
...
add flagged exportsType for __esModule flagged
add getExportsType to merge strict with exportsType
move CommonJsStuffPlugin into CommonJsPlugin
split CommonJsPlugin into imports and exports part
enable minimal tree shaking for CommonJs imports and exports
2019-12-06 11:13:08 +01:00
Sergey Melyukov
faf784b6ab
refactor hop runtime helper
2019-12-03 16:27:39 +03:00
Sergey Melyukov
6b59d113a4
optimize webpack runtime size
2019-12-02 17:59:37 +03:00
Tobias Koppers
84b6817f60
consistency and bugfixes for reexporting json
2019-11-05 10:39:12 +01:00
Tobias Koppers
5261758bed
update test cases and snapshots
2019-11-04 21:11:16 +01:00
Tobias Koppers
18899d2d69
fix problem with retrying import()
2019-10-29 10:25:44 +01:00
Tobias Koppers
70bd9d6d50
fix test cases
2019-10-22 11:51:14 +02:00
Tobias Koppers
4c3d7c9cbb
improve developer experience
...
add `stats.ids` options which is off by default in toString
sort modules by depth by default
show chunk id hints
improve module and chunks sorting in stats
automatically switch stats.modules off the modules are displayed in chunks
2019-10-10 20:22:13 +02:00
Tobias Koppers
80bc311d72
remove "use strict" from runtime things for bundle size reasons
2019-10-09 00:20:58 +02:00
Tobias Koppers
ddc3dae0e6
refactor Module.source() and Module.getRuntimeRequirements() into Module.codeGeneration
...
add code generation phase to Compilation
add `output.iife` options to remove iife wrapper
add `experiments.outputModule` which enabled `output.module`
add `output.module` which sets defaults to `output.iife: false`, `output.libraryTarget: "module"`, `output.jsonpScriptType: "module"`, `terserOptions.module: true`
add `output.module` example
improve runtime requirements needed by ConcatenatedModule
add entry inlining, which inlines entry module code into runtime scope (only when safe)
make whole bundle strict when all modules are strict
2019-10-08 23:59:48 +02:00
Tobias Koppers
f45ba2408e
remove items from runtime when unneeded
...
remove some hooks from MainTemplate, move some hooks to CompatRuntimeModule
add requireScope RuntimeGlobal
2019-10-08 23:46:23 +02:00
Tobias Koppers
aa06e18df1
fix merge error
2019-09-13 12:53:53 +02:00
Tobias Koppers
e507392094
add output.ecmaVersion options to set emitted code style
...
fix a bug with prefetching initial chunks
InitFragments have get[End]Content methods which get a sourceContext
RuntimeModules have implicit chunk and compilation
changed default to `output.ecmaVersion: 2015`
2019-08-26 21:32:29 +02:00
Tobias Koppers
f68bb833d2
Merge export getters in a module into single statement
2019-08-23 14:07:01 +02:00
Tobias Koppers
db0805e309
update non-jest dependencies in range
2019-08-06 13:44:26 +02:00
Tobias Koppers
fe790eea65
update eslint and lint-staged
2019-08-06 10:57:37 +02:00
Tobias Koppers
dde6bda951
fix merge issue
2019-08-05 13:47:27 +02:00
Tobias Koppers
4fa8addeec
Handle auxiliary files separately from normal files
2019-07-17 23:13:08 +02:00