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