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";
3
3
import { build } from "vite" ;
4
4
import { writeFileSync , existsSync , readFileSync , readdirSync } from "fs" ;
5
5
import { resolve } from "path" ;
6
+ import { pathToFileURL } from "url" ;
6
7
import paths from "../config/paths.js" ;
7
8
import "../util/log.js" ;
8
9
import chalk from "chalk" ;
@@ -80,7 +81,9 @@ export default async function buildAction(options) {
80
81
console . log ( "" ) ;
81
82
console . cyan ( "Building..." ) ;
82
83
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 ) ;
84
87
await build ( viteConfig ) ;
85
88
86
89
// write package.json
You can’t perform that action at this time.
0 commit comments