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
Tobias Koppers
58a157334e
fix merge snapshot update
2019-06-13 14:07:11 +02:00
Tobias Koppers
d4651abe8e
fix test failures
2019-06-05 16:10:08 +02:00
Tobias Koppers
70c28f929b
fix merge issue
2019-05-20 16:59:50 +02:00
Tobias Koppers
924daa105b
Use simpler/faster hash function to get a hash number
...
Use deterministic mangled names for exports
refactor assignDeterministicIds
rename __webpack_init__ function in wasm to ""
fix bug with incorrectly cached StaticExportsDependency
fix bug in hash logic of Module
2019-02-20 22:41:07 +01:00
Tobias Koppers
e2e0983f4c
remove splitChunks restriction for custom filenames on non-initial chunks
...
fix bug, which generated incorrect static url mapping for get chunk filename runtime module
optimize generated code for chunk filename (shorter)
2019-02-19 11:16:53 +01:00
Tobias Koppers
50d63602b5
fix stats assetsByChunkName
...
It's now always an array
2018-12-31 09:15:01 +01:00
Tobias Koppers
3079886e47
filter entrypoints from namedChunkGroups in Stats only for printing
2018-12-28 12:57:38 +01:00
Florent Cailhol
e85d9d8447
Add namedChunkGroups tests
2018-12-28 09:56:11 +01:00
Tobias Koppers
b3319a486d
fix incorrect default for some options with all: false
2018-12-25 21:39:25 +01:00
Florent Cailhol
9caaa664f7
Refactor webpack main
2018-12-09 15:32:03 +01:00