hotfix(common): prevent converting globalName to nuxt-edge

This commit is contained in:
Pooya Parsa 2018-10-18 02:05:43 +03:30
parent d13d0ff3a6
commit 39a31a8627

View File

@ -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()