We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e80381b + 33623e5 commit 1ceed99Copy full SHA for 1ceed99
.changeset/sixty-goats-carry.md
@@ -0,0 +1,5 @@
1
+---
2
+"@bluecadet/launchpad-utils": patch
3
4
+
5
+fix loading js configs on windows
packages/utils/lib/config.js
@@ -119,7 +119,10 @@ export async function loadConfigFromFile(configPath) {
119
return config;
120
} else {
121
// otherwise, parse as js
122
- return (await import(configPath)).default;
123
+ // need to use fileURLToPath here for windows support (prefixes with file://)
124
+ const fileUrl = url.pathToFileURL(configPath);
125
+ return (await import(fileUrl.toString())).default;
126
}
127
} catch (err) {
128
throw new Error(`Unable to load config file '${chalk.white(configPath)}'`, { cause: err });
0 commit comments