Setup example worker
This commit is contained in:
+7
-1
@@ -18,7 +18,13 @@ function devTools(): Plugin {
|
||||
|
||||
export default defineConfig({
|
||||
server: { host, port, hmr: false },
|
||||
build: { target: "esnext" },
|
||||
build: {
|
||||
target: "esnext",
|
||||
main: `${root}index.html`,
|
||||
lib: {
|
||||
entry: `${root}worker.ts`,
|
||||
},
|
||||
},
|
||||
test: {
|
||||
include: ["./engine/**/*.test.ts"],
|
||||
environment: "jsdom",
|
||||
|
||||
Reference in New Issue
Block a user