mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 12:26:38 -06:00
f33952eca4
Amp-Thread-ID: https://ampcode.com/threads/T-01a021f4-b547-7788-a916-d4a94cbd3e3b Co-authored-by: Amp <amp@ampcode.com>
29 lines
834 B
TypeScript
29 lines
834 B
TypeScript
// Qa Lab helper module supports vite behavior.
|
|
import path from "node:path";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
root: path.resolve(import.meta.dirname),
|
|
base: "./",
|
|
resolve: {
|
|
alias: {
|
|
"openclaw/plugin-sdk/error-runtime": path.resolve(
|
|
import.meta.dirname,
|
|
"../../../packages/normalization-core/src/browser-error-runtime.ts",
|
|
),
|
|
"openclaw/plugin-sdk/text-utility-runtime": path.resolve(
|
|
import.meta.dirname,
|
|
"../../../packages/normalization-core/src/utf16-slice.ts",
|
|
),
|
|
"openclaw/plugin-sdk/time-runtime": path.resolve(
|
|
import.meta.dirname,
|
|
"../../../packages/plugin-sdk/src/time-runtime.ts",
|
|
),
|
|
},
|
|
},
|
|
build: {
|
|
outDir: path.resolve(import.meta.dirname, "dist"),
|
|
emptyOutDir: true,
|
|
},
|
|
});
|