John Reilly
35eef1e861
Update declarations/LoaderContext.d.ts
...
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-04-20 09:08:16 +01:00
John Reilly
111e95c191
Update declarations/LoaderContext.d.ts
...
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-04-20 09:07:59 +01:00
John Reilly
a679319ce6
bring in suggested types
2021-04-20 09:06:34 +01:00
John Reilly
25c80ea9bc
Merge branch 'master' of https://github.com/johnnyreilly/webpack
2021-04-20 09:01:52 +01:00
John Reilly
1578fd4f2f
schema
2021-04-20 09:01:46 +01:00
John Reilly
3d45e2b666
Update declarations/LoaderContext.d.ts
...
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-04-20 09:00:51 +01:00
John Reilly
5ef8acac7c
Update declarations/LoaderContext.d.ts
...
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-04-20 09:00:32 +01:00
John Reilly
b967f36a42
Update declarations/LoaderContext.d.ts
...
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-04-20 09:00:20 +01:00
John Reilly
79da3201ac
non generics
2021-04-20 08:41:42 +01:00
John Reilly
df44d7d8b7
attempt @sokras suggestion
2021-04-20 06:05:54 +01:00
John Reilly
a2f8808fee
apply @sokra's feedback and include runtime type
2021-04-19 19:30:58 +01:00
Tobias Koppers
e21b1d46fe
precompile schemas for improved startup performance
2021-04-16 16:02:58 +02:00
jamesgeorge007
ec1eb4b037
chore: update type definitions
2021-04-14 22:44:05 +05:30
Tobias Koppers
38de0dbf4e
allow to specify `publicPath` for each entrypoint
2021-04-14 16:38:01 +02:00
Tobias Koppers
ea3e0a39ac
add experiments.executeModule
...
rename runModule -> executeModule
improve error reporting
2021-04-12 12:27:55 +02:00
Tobias Koppers
4e117781e8
improvements
...
add appendOnly flag
add custom console
add custom stream
2021-04-06 15:20:27 +02:00
Hyeonmin Park
72ba68cc78
feat: add colors flag to infrastructureLogging
2021-04-04 14:28:31 +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
Sergey Melyukov
515d0d6d4a
(chore): fix types
2021-03-23 14:41:30 +03: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
xiaoxiaojx
55fd79ee6a
feat: support assetModulePublicPath
2021-03-20 17:53:01 +08:00
Tobias Koppers
7572217e97
add `emit` option for asset modules
...
fixes #12474
2021-03-11 18:45:34 +01:00
Tobias Koppers
85a6eee0bb
move parser.filename back to generator.filename
2021-03-11 17:19:11 +01:00
Tobias Koppers
f93aacd55f
move filename processing from asset generator to parser
...
remove memory leak from asset generator
2021-03-11 10:40:03 +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
0b4506b206
improve typings for loggingDebug and other filtering configuration options
2021-02-22 13:18:27 +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
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
36306a06e1
Merge pull request #11561 from smelukov/clean
2021-02-02 20:31:45 +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
22471f6dd6
Improvements to schema
2021-02-02 13:46:45 +01:00
Sergey Melyukov
654e4e1ba0
Merge remote-tracking branch 'upstream/master' into clean
2021-02-02 10:38:41 +03:00
Tobias Koppers
ba12efe094
change skipModule to test
...
allow values similar to `splitChunks.test`
using positive logic instead
2021-02-01 17:12:20 +01:00
Karlis Gangis
f0fa61ae1f
Add new options for lazyCompilation: imports and skipModule
2021-02-01 16:52:47 +02: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
Tobias Koppers
100317556e
add lazy compilation for entrypoints
2021-01-22 01:01:17 +01:00
Tobias Koppers
a1515fa9f0
add experimental lazy compilation
2021-01-21 17:39:56 +01:00
Tobias Koppers
7002681c33
remove duplication in schema and types
2021-01-20 20:53:29 +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
1e988a109b
Merge branch 'master' into feat/issue_11571
2021-01-18 16:54:26 +01:00
Tobias Koppers
e475ec3fb0
Merge pull request #12429 from webpack/feature/resolve-in-externals
2021-01-15 16:07:15 +01:00
Tobias Koppers
b6e349b018
offer getResolve to externals
...
improve types of externals configuration option
support promises in externals
2021-01-15 13:55:37 +01:00
Jaiwanth
8569b154b5
Added chunkModulesSpace to schema
2021-01-14 13:06:33 +05:30
Tobias Koppers
32cea584b4
add resolve.preferAbsolute option
2021-01-11 16:38:15 +01:00
Tobias Koppers
87a0eef85c
separate index signatures from properties to generate valid typescript
2021-01-08 21:35:44 +01:00
Tobias Koppers
dcf6449393
allow function for externals.byLayer
2021-01-06 11:14:23 +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
aac7f2e619
allow to configure parsers and generators globally
...
get plugin schemas from root schema
normalize module.parser/generator
add test case
2021-01-05 12:08:30 +01:00
Tobias Koppers
cd70878036
update description
2021-01-04 15:43:47 +01:00
Jaiwanth
ee1fcf1255
Added nestedModulesSpace to schema and updated the types
2020-12-29 22:08:49 +05:30
Tobias Koppers
284eb60fc0
fix typings for `object` arguments
2020-12-18 13:52:27 +01:00
Tobias Koppers
b5b1f25ad2
improve typings for stats related hooks and classes
2020-12-17 18:51:55 +01:00
Tobias Koppers
8acebd2ff5
treat `undefined` equal to not existing in rules
...
both are treated as empty string
2020-12-17 11:20:11 +01:00
Tobias Koppers
c24091f54d
matched value can be undefined in function rule condition
2020-12-16 18:29:36 +01:00
Tobias Koppers
f76aa61d34
use simple output.pathinfo mode by default
...
cache simple pathinfo transformation in memory
2020-12-04 17:06:37 +01:00
Tobias Koppers
6762521773
upgrade tooling for improved array types
...
fixes #11801
fixes #11850
2020-10-28 20:51:08 +01:00
Tobias Koppers
e1b5a78a24
add optimization.sideEffects: "flag" and use this by default
...
analysing for side effects cause unnecessary changes in parent modules and we want to avoid that in development
2020-10-27 06:50:07 +01:00
Tobias Koppers
195a9408ff
improve description
2020-10-22 18:58:14 +02:00
Cronus1007
7f76c2d722
followSymLinks Options Added with the snapshots and typings updated
2020-10-22 19:57:07 +05:30
xiaoxiaojx
f25b09f783
feat: libraryTarget add assign-properties
2020-10-11 04:49:40 +08:00
Sergey Melyukov
ee0c891c67
(fix): pr comments
2020-10-07 15:30:14 +03:00
Sergey Melyukov
8c2e4f595b
Merge remote-tracking branch 'upstream/master' into clean
2020-10-07 14:19:55 +03:00
Sergey Melyukov
132ca09a11
(refactor): CleanPlugin
2020-10-07 13:48:51 +03:00
Sergey Melyukov
6ccec90ef4
(feat): support ignore propery and ignore hook in CleanPlugin
2020-10-02 18:08:03 +03:00
Sergey Melyukov
3649a10756
(fix): linting
2020-09-30 19:02:14 +03:00
Sergey Melyukov
4b04a4b1f5
(feat): add output.clean
2020-09-30 18:33:30 +03:00
Tobias Koppers
68f0dbe748
allow plugins to modify the default size types for splitChunks
2020-09-29 14:34:59 +02:00
Tobias Koppers
4ea79e0683
update enhanced-resolve and webpack-sources
...
add resolve.preferRelative
set preferRelative for new URL() and new Worker() to fix relative requests
2020-09-28 20:43:03 +02:00
Aaron Tribou
0cf554f537
Merge branch 'master' into bugfix/accept-ignored-regex
2020-09-26 10:16:46 -05:00
Tobias Koppers
b8950e8581
output.chunkFilename can be a function
2020-09-25 16:03:05 +02:00
Aaron Tribou
e7bf987114
Check-in updates from special-lint-fix
2020-09-20 20:44:46 -05:00
Tobias Koppers
ea075be453
add config.ignoreWarnings
...
deprecate stats.warningsFilter
2020-09-20 22:08:38 +02:00
Tobias Koppers
f263359fd8
use output.importMetaName for import.meta
2020-09-18 10:55:37 +02:00
Tobias Koppers
4dc04d1971
Merge branch 'master' into dynamically-resolve-public-path
2020-09-18 10:40:39 +02:00
Tobias Koppers
aadc15e740
update enhanced-resolve for
...
- imports field support
- resolve.fallback option
recommend resolve.fallback for polyfills
2020-09-16 07:28:32 +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
bbdb33a5cf
rename output.environment.import -> output.environment.dynamicImport
2020-09-11 23:11:02 +02:00
Tobias Koppers
7e85649492
improve target options
...
infer target properties from different targets and fill defaults from that
custom targets can now be created via `target: false` and a plugin (similar to the other options)
add stubs from universal chunk/wasm loading and module chunk format
add externalsPresets.electron and externalsPresets.electronRenderer
node.__file/dirname: "eval-only"
2020-09-10 11:42:09 +02:00
Tobias Koppers
48010fb955
replace output.ecmaVersion with output.environment and more detailed flags
2020-09-10 11:12:28 +02:00
Tobias Koppers
730aefef37
Merge pull request #11412 from webpack/experiments/enable-mjs
...
enable mjs experiment
2020-09-10 10:57:36 +02:00
Tobias Koppers
817c1bf9c7
move default externals from target into externalsPresets option
2020-09-09 15:18:59 +02:00
Tobias Koppers
aa67a435a4
refactor wasm loading from target into output.wasmLoading option
...
allow entry specific wasm loading
2020-09-09 11:20:37 +02: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
2d4c9da6a6
enable mjs experiment
2020-09-07 23:15:24 +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
8e0c511068
replace hash, version, time and builtAt with build summary at the bottom
2020-09-03 22:12:52 +02:00
Tobias Koppers
ce97f40bb7
update test case for changed stats format
...
fix bug with groupModulesByType flag
rename stats.runtime to stats.runtimeModules
2020-09-02 10:51:10 +02:00
Tobias Koppers
5282f878a1
fix groupModulesByAttributes description
2020-09-01 20:52:36 +02:00
Tobias Koppers
8904dd7b91
rename groupAssetsByStatus to groupAssetsByEmitStatus
2020-09-01 20:52:34 +02:00
Tobias Koppers
be021e00f4
add grouping of modules
2020-09-01 18:31:22 +02:00
Tobias Koppers
3ea9400505
add grouping of assets
2020-09-01 18:16:43 +02:00
Tobias Koppers
7381cc0536
move baseUri into chunk loading runtime modules
2020-08-29 01:59:39 +02:00
Tobias Koppers
312e2ab587
Merge branch 'master' into feature/asset-url
2020-08-28 20:54:50 +02:00
Tobias Koppers
a7e86c791c
remove chunkCallbackName, update snapshots
2020-08-28 10:59:40 +02:00
Tobias Koppers
07d863e14c
implement enabledChunkLoadingTypes approach
...
allow chunkLoading per entry
allow custom library/chunkLoading types
2020-08-28 10:59:37 +02:00
Tobias Koppers
d69fadf8e8
add output.chunkLoading option to control chunk loading plugins
2020-08-28 10:58:04 +02:00
Tobias Koppers
805d26b0ae
unify config options for jsonpFunction and chunkLoadFunction to chunkLoadingGlobal
...
rename hotUpdateFunction to hotUpdateGlobal
2020-08-28 10:58:00 +02:00
Tobias Koppers
d6e637f33c
add "snapshot" configuration to allow to configure how snapshots are created
...
expose snapshot options for module, resolve, buildDependencies and resolveBuildDependencies
move managedPaths and immutablePaths from config.cache to config.snapshot
add timestamp + hash snapshotting mode
use timestamp + hash mode by default in production and for buildDependencies
2020-08-26 01:27:13 +02:00