Skip to content

Commit

Permalink
Fix Vite Config
Browse files Browse the repository at this point in the history
  • Loading branch information
gigincg committed Oct 1, 2024
1 parent 82ece77 commit a00a6ba
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ const cdnUrls =

function getPluginAliases() {
const pluginsDir = path.resolve(__dirname, "apps");
// Make sure the `apps` folder exists
if (!fs.existsSync(pluginsDir)) {
return {};
}
const pluginFolders = fs.readdirSync(pluginsDir);

const aliases = {};
Expand All @@ -45,7 +49,11 @@ function getPluginAliases() {
}

function getPluginDependencies() {
const pluginsDir = path.resolve(__dirname, "plugins");
const pluginsDir = path.resolve(__dirname, "apps");
// Make sure the `apps` folder exists
if (!fs.existsSync(pluginsDir)) {
return [];
}
const pluginFolders = fs.readdirSync(pluginsDir);

const dependencies = new Set();
Expand Down

0 comments on commit a00a6ba

Please sign in to comment.