Skip to content

Commit f83f31a

Browse files
committed
fix: fix local preset inference on Windows
1 parent d96a794 commit f83f31a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli/lib/Creator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ module.exports = class Creator extends EventEmitter {
273273

274274
if (name in savedPresets) {
275275
preset = savedPresets[name]
276-
} else if (name.endsWith('.json') || /^[./\\]/.test(name)) {
276+
} else if (name.endsWith('.json') || /^\./.test(name) || path.isAbsolute(name)) {
277277
preset = await loadLocalPreset(path.resolve(name))
278278
} else if (name.includes('/')) {
279279
logWithSpinner(`Fetching remote preset ${chalk.cyan(name)}...`)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy