feat(runtime-core): async component support

This commit is contained in:
Evan You
2020-03-21 16:01:08 -04:00
parent d425818901
commit c3bb3169f4
5 changed files with 629 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ export const enum ErrorCodes {
APP_ERROR_HANDLER,
APP_WARN_HANDLER,
FUNCTION_REF,
ASYNC_COMPONENT_LOADER,
SCHEDULER
}
@@ -49,6 +50,7 @@ export const ErrorTypeStrings: Record<number | string, string> = {
[ErrorCodes.APP_ERROR_HANDLER]: 'app errorHandler',
[ErrorCodes.APP_WARN_HANDLER]: 'app warnHandler',
[ErrorCodes.FUNCTION_REF]: 'ref function',
[ErrorCodes.ASYNC_COMPONENT_LOADER]: 'async component loader',
[ErrorCodes.SCHEDULER]:
'scheduler flush. This is likely a Vue internals bug. ' +
'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next'