mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix jiti issue
should be fixed on jiti later on to support syntax
This commit is contained in:
parent
fc0934dd0c
commit
a2413dc5fd
@ -78,7 +78,7 @@ export function getoptions (nuxt: SLSNuxt): SLSOptions {
|
|||||||
generateIgnore: []
|
generateIgnore: []
|
||||||
}
|
}
|
||||||
|
|
||||||
const target = process.env.NUXT_SLS_TARGET || nuxt.options.serverless?.target || detectTarget()
|
const target = process.env.NUXT_SLS_TARGET || (nuxt.options.serverless || {}).target || detectTarget()
|
||||||
let targetDefaults = TARGETS[target] || tryImport(nuxt.options.rootDir, target)
|
let targetDefaults = TARGETS[target] || tryImport(nuxt.options.rootDir, target)
|
||||||
if (!targetDefaults) {
|
if (!targetDefaults) {
|
||||||
throw new Error('Cannot resolve target: ' + target)
|
throw new Error('Cannot resolve target: ' + target)
|
||||||
|
Loading…
Reference in New Issue
Block a user