Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit 9fe8c3c

Browse files
Fix __dirname (#110)
1 parent e2eb3f2 commit 9fe8c3c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@cloudquery/plugin-config-ui-lib",
33
"description": "Plugin configuration UI library for CloudQuery Cloud App",
4-
"version": "11.4.0",
4+
"version": "11.4.1",
55
"private": false,
66
"main": "dist/index.cjs.js",
77
"module": "dist/index.esm.js",

src/configs/vite.config.app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@ import 'dotenv/config';
22

33
import react from '@vitejs/plugin-react-swc';
44
import { minify as htmlMinify } from 'html-minifier-terser';
5+
import path from 'node:path';
6+
import { fileURLToPath } from 'node:url';
57

68
import monacoEditorVitePlugin from 'vite-plugin-monaco-editor';
79

810
const monacoEditorPlugin = monacoEditorVitePlugin.default;
911

12+
const __filename = fileURLToPath(import.meta.url);
13+
const __dirname = path.dirname(__filename);
14+
1015
const envVariables = {};
1116

1217
for (const key of Object.keys(process.env)) {

0 commit comments

Comments
 (0)