From 3f329904995d3cc62cb14e1953c5d98e9c196520 Mon Sep 17 00:00:00 2001 From: sharevb Date: Sat, 17 Feb 2024 14:44:27 +0100 Subject: [PATCH] chore: prepare sshpk for cert/key/sshkeys related tools --- package.json | 2 ++ vite.config.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/package.json b/package.json index 65f29dbd..512f3d82 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,7 @@ "plausible-tracker": "^0.3.8", "qrcode": "^1.5.1", "sql-formatter": "^13.0.0", + "sshpk": "^1.18.0", "ua-parser-js": "^1.0.35", "ulid": "^2.3.0", "unicode-emoji-json": "^0.4.0", @@ -129,6 +130,7 @@ "unplugin-icons": "^0.17.0", "unplugin-vue-components": "^0.25.0", "vite": "^4.4.9", + "vite-plugin-node-polyfills": "^0.21.0", "vite-plugin-pwa": "^0.16.0", "vite-plugin-vue-markdown": "^0.23.5", "vite-svg-loader": "^4.0.0", diff --git a/vite.config.ts b/vite.config.ts index 42a2cb29..2e5c0254 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,5 +1,6 @@ import { resolve } from 'node:path'; import { URL, fileURLToPath } from 'node:url'; +import { nodePolyfills } from 'vite-plugin-node-polyfills'; import VueI18n from '@intlify/unplugin-vue-i18n/vite'; import vue from '@vitejs/plugin-vue'; @@ -97,6 +98,7 @@ export default defineConfig({ resolvers: [NaiveUiResolver(), IconsResolver({ prefix: 'icon' })], }), Unocss(), + nodePolyfills(), ], base: baseUrl, resolve: {