From 5ced57c3eadf9b1c3cdadd5d7e6b5430b7bea5f8 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 5 Nov 2024 19:46:26 +0000 Subject: [PATCH 1/2] changed klaw file filter --- webpack.config.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 0b782cc..86a63ab 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -49,13 +49,13 @@ const buildPopup = async () => { await loadLastChangedFiles(); let shouldRunBool = false; for await (const file of klaw("./popup", { - filter: (path) => { - return !( - path.includes("out") || - path.includes("node_modules") || - path.includes(".next") || - path.includes(".parcel-cache") - ); + filter: (filePath) => { + const dirs = filePath.split(path.sep); + const shouldExclude = dirs.includes("out") || + dirs.includes("node_modules") || + dirs.includes(".next") || + dirs.includes(".parcel-cache"); + return !shouldExclude }, })) { if ( From 64525ccca22e9f5454ce35c27503603562489ec6 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 6 Nov 2024 17:00:56 +0000 Subject: [PATCH 2/2] resolved format issues --- webpack.config.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 86a63ab..bc10063 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -51,11 +51,12 @@ const buildPopup = async () => { for await (const file of klaw("./popup", { filter: (filePath) => { const dirs = filePath.split(path.sep); - const shouldExclude = dirs.includes("out") || - dirs.includes("node_modules") || - dirs.includes(".next") || - dirs.includes(".parcel-cache"); - return !shouldExclude + const shouldExclude = + dirs.includes("out") || + dirs.includes("node_modules") || + dirs.includes(".next") || + dirs.includes(".parcel-cache"); + return !shouldExclude; }, })) { if (