diff --git a/index.js b/index.js index 3dd847a..408e89a 100644 --- a/index.js +++ b/index.js @@ -12,11 +12,6 @@ import { randomUUID } from "node:crypto"; * @typedef {import('astro').AstroIntegration} AstroIntegration */ -/** - * @type {Array} - */ -let assets = []; - const plugin_dir = path.resolve(path.dirname('.')); /** @@ -32,7 +27,10 @@ export default function serviceWorker(config) { path: serviceWorkerPath } = config; - console.log('[astro-sw] dir', plugin_dir) + /** + * @type {Array} + */ + let assets = []; return { 'name': 'astro-sw',