Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Commit 9b09740

Browse files
committed
Updated formatting according to linting rules
1 parent 4af142d commit 9b09740

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

src/chunk-manifest-webpack-plugin.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,24 @@ class ChunkManifestPlugin {
3535
) {
3636
if (c.id in manifest) return manifest;
3737

38-
const hasRuntime = typeof c.hasRuntime === "function"
39-
? c.hasRuntime()
40-
: c.entry;
38+
const hasRuntime =
39+
typeof c.hasRuntime === "function" ? c.hasRuntime() : c.entry;
4140

4241
if (hasRuntime) {
4342
manifest[c.id] = undefined;
4443
} else {
45-
manifest[
46-
c.id
47-
] = mainTemplate.applyPluginsWaterfall("asset-path", filename, {
48-
hash: hash,
49-
chunk: c
50-
});
44+
manifest[c.id] = mainTemplate.applyPluginsWaterfall(
45+
"asset-path",
46+
filename,
47+
{
48+
hash: hash,
49+
chunk: c
50+
}
51+
);
5152
}
5253
return c.chunks.reduce(registerChunk, manifest);
53-
}, {});
54+
},
55+
{});
5456

5557
oldChunkFilename = this.outputOptions.chunkFilename;
5658
this.outputOptions.chunkFilename = "__CHUNK_MANIFEST__";

src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ class InlineChunkManifestHtmlWebpackPlugin {
1919
throw new TypeError("Extract manifest must be boolean");
2020
}
2121

22-
this.extractManifest = options.extractManifest != null
23-
? options.extractManifest
24-
: true;
22+
this.extractManifest =
23+
options.extractManifest != null ? options.extractManifest : true;
2524

2625
const manifestPlugins = options.manifestPlugins;
2726

@@ -38,9 +37,10 @@ class InlineChunkManifestHtmlWebpackPlugin {
3837
})
3938
];
4039

41-
this.plugins = manifestPlugins && manifestPlugins.length
42-
? manifestPlugins
43-
: defaultManifestPlugins;
40+
this.plugins =
41+
manifestPlugins && manifestPlugins.length
42+
? manifestPlugins
43+
: defaultManifestPlugins;
4444
}
4545

4646
apply(compiler) {

0 commit comments

Comments
 (0)