File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ class ConfigGenerator {
82
82
this . webpackConfig . runtimeConfig . devServerFinalIsHttps = false ;
83
83
}
84
84
85
+ /**
86
+ * @type {import('webpack').Configuration }
87
+ */
85
88
const config = {
86
89
context : this . webpackConfig . getContext ( ) ,
87
90
entry : this . buildEntryConfig ( ) ,
@@ -158,6 +161,9 @@ class ConfigGenerator {
158
161
}
159
162
160
163
buildEntryConfig ( ) {
164
+ /**
165
+ * @type {Record<string, string[]> }
166
+ */
161
167
const entry = { } ;
162
168
163
169
for ( const [ entryName , entryChunks ] of this . webpackConfig . entries ) {
@@ -544,7 +550,7 @@ class ConfigGenerator {
544
550
}
545
551
546
552
if ( this . webpackConfig . shouldUseSingleRuntimeChunk ) {
547
- optimization . runtimeChunk = 'single' ;
553
+ optimization . runtimeChunk = /** @type { const } */ ( 'single' ) ;
548
554
}
549
555
550
556
optimization . splitChunks = applyOptionsCallback (
@@ -558,7 +564,7 @@ class ConfigGenerator {
558
564
buildCacheConfig ( ) {
559
565
const cache = { } ;
560
566
561
- cache . type = 'filesystem' ;
567
+ cache . type = /** @type { const } */ ( 'filesystem' ) ;
562
568
cache . buildDependencies = this . webpackConfig . persistentCacheBuildDependencies ;
563
569
564
570
applyOptionsCallback (
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ module.exports = {
25
25
getLoaders ( webpackConfig , useCssModules = false ) {
26
26
const usePostCssLoader = webpackConfig . usePostCssLoader ;
27
27
28
+ /**
29
+ * @type {boolean|object }
30
+ */
28
31
let modulesConfig = false ;
29
32
if ( useCssModules ) {
30
33
modulesConfig = {
You can’t perform that action at this time.
0 commit comments