File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
client/packages/lowcoder-cli/actions Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import fsExtra from "fs-extra";
33import { build } from "vite" ;
44import { writeFileSync , existsSync , readFileSync , readdirSync } from "fs" ;
55import { resolve } from "path" ;
6+ import { pathToFileURL } from "url" ;
67import paths from "../config/paths.js" ;
78import "../util/log.js" ;
89import chalk from "chalk" ;
@@ -80,7 +81,9 @@ export default async function buildAction(options) {
8081 console . log ( "" ) ;
8182 console . cyan ( "Building..." ) ;
8283
83- const viteConfig = await import ( paths . appViteConfigJs ) . default ;
84+ const viteConfigURL = pathToFileURL ( paths . appViteConfigJs ) ;
85+ const viteConfig = await import ( viteConfigURL ) . default ;
86+ console . log ( paths . appViteConfigJs ) ;
8487 await build ( viteConfig ) ;
8588
8689 // write package.json
You can’t perform that action at this time.
0 commit comments