File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 33This project adheres to the
44[ Semantic Versioning 2.0 Specification] ( https://semver.org ) .
55
6+ ## Unreleased
7+
8+ ### 🔧 Fixes
9+
10+ - Fix failing to load config on Windows.
11+
612## 1.0.0 - September 16, 2025
713
814### ⚠️ Breaking
Original file line number Diff line number Diff line change 11import fs from "node:fs/promises" ;
22import nodePath from "node:path" ;
3+ import url from "node:url" ;
34
45import chokidar from "chokidar" ;
56import { Liquid } from "liquidjs" ;
@@ -184,7 +185,7 @@ async function tryToImportConfig(path) {
184185 /* eslint-disable @typescript-eslint/no-unsafe-member-access */
185186 /* eslint-disable @typescript-eslint/no-unsafe-return */
186187
187- const mod = await import ( path ) ;
188+ const mod = await import ( url . pathToFileURL ( path ) . toString ( ) ) ;
188189
189190 if ( Object . prototype . toString . call ( mod ?. default ) !== "[object Object]" ) {
190191 throw new TypeError ( "config's default export must be an object" ) ;
You can’t perform that action at this time.
0 commit comments