This commit is contained in:
Vitalii Litvinchuk
2026-06-10 15:09:45 +03:00
commit dc8c379ecf
20 changed files with 4457 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { resolve } from "path";
export default defineConfig({
plugins: [react({ jsxRuntime: "automatic" })],
build: {
lib: {
entry: resolve(__dirname, "src/index.ts"),
name: "CryptoLocker",
fileName: "crypto-locker",
},
rollupOptions: {
external: ["react", "react-dom", "react/jsx-runtime", "crypto-js"],
output: {
globals: {
react: "React",
"react-dom": "ReactDOM",
"react/jsx-runtime": "jsxRuntime",
"crypto-js": "CryptoJS",
},
},
},
},
});