Skip to content

Commit 5e25674

Browse files
committed
Remove comments from undesired location
1 parent 86c109e commit 5e25674

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/kit/src/core/create_manifest_data/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,10 @@ export default function create_manifest_data({ config, output, cwd = process.cwd
247247
/**
248248
* @type {string[]}
249249
*/
250-
let exclusions = config.kit.serviceWorker.exclude || [];
250+
const exclusions = config.kit.serviceWorker.exclude || [];
251251

252252
// .DS_STORE files are automatically removed to keep the compatiblity
253-
exclusions = [...exclusions, '**/.DS_STORE'];
253+
exclusions.push('**/.DS_STORE');
254254

255255
/**
256256
* @type {string[]}

packages/kit/types/config.d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ export type Config = {
4545
hostHeader?: string;
4646
hydrate?: boolean;
4747
serviceWorker?: {
48-
// Glob patterns relative to `files.assets` dir. Files matching this would not be available in $service-worker.files
49-
// e.g. if `files.assets` has value `static` then ['og-tags-images/**/*'] would match all files under `static/og-tags-images` dir.
50-
// As og-tags-images are never loaded by a normal client(browser), they can be comfortably skipped from here.
5148
exclude?: string[];
5249
};
5350
package?: {

0 commit comments

Comments
 (0)