Tobias Koppers
d3cc2de2f9
add experiments.asyncEntries
...
add async entries plugin
async entries in global parser options
allow chunkFormat, chunkFilename and initialChunkFilename for entries
2021-04-14 14:45:50 +02:00
Tobias Koppers
7fa009e254
fix behavior of runtime option for async entries
...
add runtimeName option to set the runtime name but not the runtime chunk
2021-04-14 14:41:05 +02:00
Tobias Koppers
bbcc5a8ebe
add caching on ModuleGraph
...
cache star reexport assignment
2021-04-14 09:11:23 +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
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
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
cef2a8fea0
dispose code generation results after sealing the compilation
2021-04-08 18:33:51 +02:00
Tobias Koppers
3caf3e95a8
avoid leaking processed assets
2021-04-07 20:48:07 +02: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
Tobias Koppers
85a6eee0bb
move parser.filename back to generator.filename
2021-03-11 17:19:11 +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
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
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
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
ca0df823c8
order runtime chunks correctly for hashing
...
fixes #12676
2021-02-14 21:59:45 +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
93931241ba
Merge pull request #12567 from mattcompiles/fix-broken-rebuild
2021-02-03 14:41:42 +01:00
Matt Jones
d39cbe2ee6
Fix module rebuilds that add new dependencies
2021-02-03 08:40:20 +11:00
Tobias Koppers
3e1c7082d2
log out module profile summary when profiling is enabled
2021-02-02 03:29:21 +01: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
Sam Cooke
ea4e298efe
Self-review, add chunkGraph
2021-01-13 12:53:37 +01:00
Sam Cooke
a1a536ceb0
Linting
2021-01-13 12:53:37 +01:00
Sam Cooke
13af82bb9e
Fix failing test
2021-01-13 12:53:36 +01:00
Tobias Koppers
10aa3daede
add experiments.layers
...
add layers to define different module layers
support module layers in stats
add layer support for NormalModules
fixes #11466
2021-01-05 20:50:59 +01:00
Tobias Koppers
b5b1f25ad2
improve typings for stats related hooks and classes
2020-12-17 18:51:55 +01:00
Tobias Koppers
63dda151a2
expose Asset and AssetInfo types
...
allow custom properties in AssetInfo
2020-12-17 10:27:18 +01:00
Tobias Koppers
1c7f221e0a
fix triggering processAssets for some assets twice
2020-12-10 17:40:12 +01:00
Tobias Koppers
c2069f8db7
fix handling of multiple identical assets with different querystrings
...
fixes #11894
2020-12-09 16:10:32 +01:00
Tobias Koppers
ccfe01aab4
allow to process assets that are added during processAssets
...
fix and add processAsset stages
allow to hook into RealContentHashPlugin for custom hashing
2020-11-26 14:00:21 +01:00
Tobias Koppers
eb5481adfb
Merge pull request #11948 from jantimon/fix/plugin-types
...
fixes "Type '(compiler: Compiler) => void' is not assignable to type '() => void'.ts"
2020-11-26 13:56:41 +01:00
Tobias Koppers
cbcd459d19
fix conflicting real imports and type imports
2020-11-26 10:02:59 +01:00
Hiroki Osame
1422f2400d
docs(type): documented minimized property on asset-info
2020-11-11 01:15:35 -05:00
Jan Nicklas
d12b043c3d
fix: adjust typings to resolve "Type '(compiler: Compiler) => void' is not assignable to type '() => void'.ts
2020-11-09 14:54:40 +01:00
Tobias Koppers
19f51535ca
merge multiple import statements with different conditions correctly
...
improve hashing when conditional runtime evaluation is involved
add test cases
2020-10-27 06:48:54 +01:00
Tobias Koppers
7661ad868a
generate code that executes depending on runtime
...
fixes #11770
2020-10-27 06:30:49 +01:00
Tobias Koppers
2ec90b3687
add asset info for `sourceFilename` and `javascriptModule`
2020-10-22 10:47:23 +02:00
Tobias Koppers
204caeee05
fix order of asset optimization to fix conflict between compression-plugin and real hash plugin
2020-10-16 14:42:46 +02:00
Tobias Koppers
63ba54c109
update chunk to files mapping when deleting assets
2020-10-15 14:27:23 +02:00
Tobias Koppers
45040463c6
order runtime chunks correctly when they depend on each other
2020-10-14 21:19:50 +02:00
Christian Brueggemann
51f8069907
Try to fix lint errors
2020-10-06 17:55:22 +02:00
Christian Brueggemann
f7e6f2a02a
Remove own implementation of Array equals
2020-10-06 17:48:13 +02:00
Christian Brueggemann
302db2a1f8
Try to fix lint errors
2020-10-06 17:42:03 +02:00
Christian Brüggemann
3aac3350a8
Fix compilation of projects where dependsOn is an array
...
An entrypoint can be defined with `dependOn` specified as an array (see docs)[https://webpack.js.org/configuration/entry-context/#entry ], for example:
```javascript
splitmodule1: {
import: scanSourceFiles('./src/splitmodule1'),
dependOn: [ 'pluginregistry'] // Note that we could specify multiple dependencies here, e.g. dependOn: ['core', 'pluginregistry']
}
```
Using the Webpack Watcher results in the following error:
```
× 「wdm」: Error: Conflicting entry option dependOn = pluginregistry vs pluginregistry
at Compilation._addEntryItem (C:\Users\c.brueggemann\Documents\Projects\codesplit\node_modules\webpack\lib\Compilation.js:1616:7)
at Compilation.addEntry (C:\Users\c.brueggemann\Documents\Projects\codesplit\node_modules\webpack\lib\Compilation.js:1560:8)
at C:\Users\c.brueggemann\Documents\Projects\codesplit\node_modules\webpack\lib\DynamicEntryPlugin.js:59:23
at new Promise (<anonymous>)
at C:\Users\c.brueggemann\Documents\Projects\codesplit\node_modules\webpack\lib\DynamicEntryPlugin.js:58:10
```
This PR fixes the crash by comparing the arrays deeply instead of using incorrectly comparing them using `===`. I'm not too familiar with Webpack, so I'll be happy to adjust according to feedback.
2020-10-06 16:28:06 +02:00
Tobias Koppers
07fc554bef
improve warnings and errors handling in stats
...
respect warningsFilter for warnings count
include child compilation warnings and errors in count
show hint for child compilation errors and warnings
2020-09-20 21:24:15 +02:00