diff --git a/cli/plasmo/src/features/background-service-worker/bgsw-messaging.ts b/cli/plasmo/src/features/background-service-worker/bgsw-messaging.ts index 5afe3456d..e44cf2d5b 100644 --- a/cli/plasmo/src/features/background-service-worker/bgsw-messaging.ts +++ b/cli/plasmo/src/features/background-service-worker/bgsw-messaging.ts @@ -1,7 +1,7 @@ -import { join, resolve } from "path" import { camelCase } from "change-case" import glob from "fast-glob" import { outputFile } from "fs-extra" +import { join, resolve } from "path" import { isWriteable } from "@plasmo/utils/fs" import { vLog, wLog } from "@plasmo/utils/logging" @@ -77,7 +77,8 @@ const getHandlerList = async ( const handlerFileList = await glob("**/*.ts", { cwd: handlerDir, - onlyFiles: true + onlyFiles: true, + ignore: dirName === "messages" ? ["external"] : [] }) return handlerFileList.map((filePath) => {