|
|
|
@ -150,6 +150,7 @@ export const loadWorkspacePreset = async (template: workspaceTemplate = 'remixDe |
|
|
|
|
break |
|
|
|
|
|
|
|
|
|
default: |
|
|
|
|
try { |
|
|
|
|
const templateWithContent = await import('../templates') |
|
|
|
|
const templateList = Object.keys(templateWithContent) |
|
|
|
|
if (!templateList.includes(template)) break |
|
|
|
@ -161,6 +162,9 @@ export const loadWorkspacePreset = async (template: workspaceTemplate = 'remixDe |
|
|
|
|
console.error(error) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} catch (e) { |
|
|
|
|
console.error(e) |
|
|
|
|
} |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|