Skip to content

Commit 3246bc2

Browse files
fix: update with core
1 parent c986d78 commit 3246bc2

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/index.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class ExtractCssChunksPlugin {
284284
if (typeof chunkMaps.hash[chunkId] === 'string') {
285285
shortChunkHashMap[chunkId] = chunkMaps.hash[
286286
chunkId
287-
].substring(0, length);
287+
].substring(0, length);
288288
}
289289
}
290290

@@ -306,7 +306,7 @@ class ExtractCssChunksPlugin {
306306
if (typeof contentHash[chunkId] === 'string') {
307307
shortContentHashMap[chunkId] = contentHash[
308308
chunkId
309-
].substring(0, length);
309+
].substring(0, length);
310310
}
311311
}
312312

@@ -369,14 +369,14 @@ class ExtractCssChunksPlugin {
369369
'linkTag.href = fullhref;',
370370
crossOriginLoading
371371
? Template.asString([
372-
`if (linkTag.href.indexOf(window.location.origin + '/') !== 0) {`,
373-
Template.indent(
374-
`linkTag.crossOrigin = ${JSON.stringify(
375-
crossOriginLoading
376-
)};`
377-
),
378-
'}',
379-
])
372+
`if (linkTag.href.indexOf(window.location.origin + '/') !== 0) {`,
373+
Template.indent(
374+
`linkTag.crossOrigin = ${JSON.stringify(
375+
crossOriginLoading
376+
)};`
377+
),
378+
'}',
379+
])
380380
: '',
381381
insert
382382
? 'insert(linkTag);'
@@ -524,7 +524,7 @@ class ExtractCssChunksPlugin {
524524
` * ${m.readableIdentifier(requestShortener)}`,
525525
` - couldn't fulfill desired order of chunk group(s) ${failedChunkGroups}`,
526526
goodChunkGroups &&
527-
` - while fulfilling desired order of chunk group(s) ${goodChunkGroups}`,
527+
` - while fulfilling desired order of chunk group(s) ${goodChunkGroups}`,
528528
]
529529
.filter(Boolean)
530530
.join('\n');

src/loader.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ function hotLoader(content, context) {
2525
if(module.hot) {
2626
// ${Date.now()}
2727
var cssReload = require(${loaderUtils.stringifyRequest(
28-
context.context,
29-
path.join(__dirname, 'hmr/hotModuleReplacement.js')
30-
)})(module.id, ${JSON.stringify({
28+
context.context,
29+
path.join(__dirname, 'hmr/hotModuleReplacement.js')
30+
)})(module.id, ${JSON.stringify({
3131
...context.options,
3232
locals: !!context.locals,
3333
})});
@@ -70,8 +70,8 @@ export function pitch(request) {
7070
const publicPath =
7171
typeof options.publicPath === 'string'
7272
? options.publicPath === '' || options.publicPath.endsWith('/')
73-
? options.publicPath
74-
: `${options.publicPath}/`
73+
? options.publicPath
74+
: `${options.publicPath}/`
7575
: typeof options.publicPath === 'function'
7676
? options.publicPath(this.resourcePath, this.rootContext)
7777
: this._compilation.outputOptions.publicPath;
@@ -207,8 +207,8 @@ export function pitch(request) {
207207
typeof options.esModule !== 'undefined' ? options.esModule : false;
208208
const result = locals
209209
? `\n${esModule ? 'export default' : 'module.exports ='} ${JSON.stringify(
210-
locals
211-
)};`
210+
locals
211+
)};`
212212
: '';
213213

214214
let resultSource = `// extracted by ${pluginName}`;

0 commit comments

Comments
 (0)