8000
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.
1 parent a3ccc3d commit dded73aCopy full SHA for dded73a
packages/@vue/cli-service/lib/util/loadFileConfig.js
@@ -1,6 +1,6 @@
1
const fs = require('fs')
2
const path = require('path')
3
-
+const { pathToFileURL } = require('url')
4
const isFileEsm = require('is-file-esm')
5
const { loadModule } = require('@vue/cli-shared-utils')
6
@@ -25,7 +25,7 @@ module.exports = function loadFileConfig (context) {
25
const { esm } = isFileEsm.sync(fileConfigPath)
26
27
if (esm) {
28
- fileConfig = import(fileConfigPath)
+ fileConfig = import(pathToFileURL(fileConfigPath))
29
} else {
30
fileConfig = loadModule(fileConfigPath, context)
31
}
0 commit comments