Skip to content

Commit

Permalink
change: windows support nodejs/node#34765
Browse files Browse the repository at this point in the history
  • Loading branch information
saibotsivad committed Jun 29, 2023
1 parent 614ca25 commit 9daae7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { pathToFileURL } from 'node:url'
import { mkdir, writeFile } from 'node:fs/promises'
import { dirname, resolve, isAbsolute } from 'node:path'
import CheapWatch from 'cheap-watch'
Expand Down Expand Up @@ -27,7 +28,7 @@ const build = async ({ cwd, indent, opts, outputFilepath, verbose }) => {
}

const run = async ({ config, cwd, delay, indent, serve, verbose, watch }) => new Promise(
(resolvePromise, rejectPromise) => import(config)
(resolvePromise, rejectPromise) => import(pathToFileURL(config).href)
.then(({ default: opts }) => {
const port = typeof serve === 'number' ? serve : 9001
let { output: outputFilepath } = opts
Expand Down

0 comments on commit 9daae7a

Please sign in to comment.