From 073253ff098a8b08e7d365f37faa404e40755f10 Mon Sep 17 00:00:00 2001 From: Aotokitsuruya Date: Thu, 23 Nov 2023 19:05:11 +0800 Subject: [PATCH] Fix main field not supported --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4c8a8d6..019c6d4 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "dev": "vite", "preview": "yarn build && wrangler pages dev dist", "build": "vue-tsc && yarn build:ui && yarn build:worker", - "build:worker": "esbuild worker/index.ts --bundle --platform=neutral --outfile=dist/_worker.js", + "build:worker": "esbuild worker/index.ts --bundle --platform=neutral --main-fields=main --outfile=dist/_worker.js", "build:ui": "vite build", "unit:test": "vitest run --no-threads", "unit:test:ui": "vitest --ui --no-threads",