Commit 0cfd245
authored
Use
* Use `pathToFileURL(configFilePath).href` when importing the config to ensure cross-platform compatibility (Windows _(windows filepath)_, macOS _(posix)_, Linux _(posix)_) and correct handling of special characters. The `windows` option is left `undefined`, so the platform system default is used.
* See docs here: https://nodejs.org/api/url.html#urlpathtofileurlpath-optionspathToFileURL for dynamic import of config file (#3233)1 parent a09c792 commit 0cfd245
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments