Skip to content

Commit 6f10cfd

Browse files
committed
removing destructuring assignment
1 parent 16a8b53 commit 6f10cfd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

extractor.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = function extractor(options, fetch) {
3232
var scopedName;
3333
if (generateScopedName) {
3434
scopedName = typeof generateScopedName !== 'function'
35-
? genericNames(generateScopedName || '[name]__[local]___[hash:base64:5]', {context})
35+
? genericNames(generateScopedName || '[name]__[local]___[hash:base64:5]', {context: context})
3636
: function (local, filename, css) {
3737
// had to wrap that function cause i didn't expected,
3838
// that generateShortName() and generateLongName() functions
@@ -55,16 +55,16 @@ module.exports = function extractor(options, fetch) {
5555
.concat([
5656
Values,
5757
mode
58-
? new LocalByDefault({mode})
58+
? new LocalByDefault({mode: mode})
5959
: LocalByDefault,
6060
createImportedName
61-
? new ExtractImports({createImportedName})
61+
? new ExtractImports({createImportedName: createImportedName})
6262
: ExtractImports,
6363
new Scope({generateScopedName: scopedName}),
6464
], append || []);
6565
}
6666

67-
plugins = plugins.concat(new Parser({fetch}));
67+
plugins = plugins.concat(new Parser({fetch: fetch}));
6868

6969
return postcss(plugins);
7070
}

0 commit comments

Comments
 (0)