Skip to content

Commit 8e48ba8

Browse files
author
Jarand Millett
committed
fix: linting
1 parent 78b8dd9 commit 8e48ba8

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/index.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import webpack from 'webpack';
55
import sources from 'webpack-sources';
66

77
const { ConcatSource, SourceMapSource, OriginalSource } = sources;
8-
const { Template, util: { createHash } } = webpack;
8+
const {
9+
Template,
10+
util: { createHash },
11+
} = webpack;
912

1013
const NS = path.dirname(fs.realpathSync(__filename));
1114

@@ -97,7 +100,12 @@ class CssModule extends webpack.Module {
97100
}
98101

99102
class CssModuleFactory {
100-
create({ dependencies: [dependency] }, callback) {
103+
create(
104+
{
105+
dependencies: [dependency],
106+
},
107+
callback
108+
) {
101109
callback(null, new CssModule(dependency));
102110
}
103111
}
@@ -390,7 +398,11 @@ class MiniCssExtractPlugin {
390398
const [chunkGroup] = chunk.groupsIterable;
391399
if (typeof chunkGroup.getModuleIndex2 === 'function') {
392400
modules.sort(
393-
(a, b) => (chunkGroup.getModuleIndex2(a) || 0) < (chunkGroup.getModuleIndex2(b) || 0) ? 1 : -1
401+
(a, b) =>
402+
(chunkGroup.getModuleIndex2(a) || 0) <
403+
(chunkGroup.getModuleIndex2(b) || 0)
404+
? 1
405+
: -1
394406
);
395407
} else {
396408
// fallback for older webpack versions

0 commit comments

Comments
 (0)