mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
hotfix(common): prevent converting globalName to nuxt-edge
This commit is contained in:
parent
d13d0ff3a6
commit
39a31a8627
@ -44,7 +44,7 @@ Options.from = function (_options) {
|
|||||||
|
|
||||||
options.globalName = (_.isString(options.globalName) && /^[a-zA-Z]+$/.test(options.globalName))
|
options.globalName = (_.isString(options.globalName) && /^[a-zA-Z]+$/.test(options.globalName))
|
||||||
? options.globalName.toLowerCase()
|
? options.globalName.toLowerCase()
|
||||||
: 'nuxt'
|
: `nuxt`
|
||||||
|
|
||||||
// Resolve rootDir
|
// Resolve rootDir
|
||||||
options.rootDir = hasValue(options.rootDir) ? path.resolve(options.rootDir) : process.cwd()
|
options.rootDir = hasValue(options.rootDir) ? path.resolve(options.rootDir) : process.cwd()
|
||||||
|
Loading…
Reference in New Issue
Block a user