Skip to content

Commit 8225e25

Browse files
committed
React のビルドを修正
1 parent 40f538f commit 8225e25

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

vite.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ import { resolve } from "path";
55
export default defineConfig({
66
plugins: [react()],
77
build: {
8-
lib: {
9-
entry: {
8+
rollupOptions: {
9+
input: {
1010
sidepanel: resolve(__dirname, "src/sidepanel/index.html"),
1111
background: resolve(__dirname, "src/background.ts"),
1212
content: resolve(__dirname, "src/content.ts"),
1313
},
14-
formats: ["es"],
14+
output: {
15+
entryFileNames: "[name].js",
16+
},
1517
},
1618
},
1719
});

0 commit comments

Comments
 (0)