initial commit
This commit is contained in:
commit
3cdd4eb0d0
16 files changed
+2080
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
define: {
|
||||
"process.env.NODE_ENV": JSON.stringify("production")
|
||||
},
|
||||
build: {
|
||||
outDir: "dist",
|
||||
emptyOutDir: true,
|
||||
lib: {
|
||||
entry: "src/system.ts",
|
||||
formats: ["es"],
|
||||
fileName: () => "system.mjs"
|
||||
},
|
||||
rollupOptions: {
|
||||
output: {
|
||||
// single-file bundle, no code-splitting: Foundry loads this one ESM file directly
|
||||
inlineDynamicImports: true
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user