Skip to content

Commit 351b6ee

Browse files
authored
Merge branch 'master' into feat-ssr
2 parents 06c30b8 + c1722fa commit 351b6ee

File tree

15 files changed

+177
-24
lines changed

15 files changed

+177
-24
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"useWorkspaces": true,
55
"command": {
66
"publish": {
7-
"conventionalCommits": false,
7+
"conventionalCommits": true,
88
"gitTagVersion": false,
99
"gitReset": false,
1010
"allowBranch": ["master"],

packages/module-loader/dev/plugins/module-loader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import VueRouter, { RouteConfig } from 'vue-router';
44
import ModuleLoader, { Modules } from '@vue-async/module-loader';
55
import { root, megreRoutes, lazyLoadView } from '../router/utils';
66

7-
Vue.use(ModuleLoader);
8-
97
// Types
108
import { Plugin } from '@nuxt/types';
119

10+
Vue.use(ModuleLoader);
11+
1212
const plugin: Plugin = async (cxt) => {
1313
const { app, store } = cxt;
1414

packages/module-loader/src/ability/dynamicComponent/storeModule.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { getComponentName, error } from '@vue-async/utils';
2+
3+
// Types
24
import { DynamicComponent } from 'types/module';
35

46
export type State = {

packages/module-loader/src/install.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import dynamicComponent, {
22
namespaces as dynamicComponentPath,
33
storeModule as dynamicComponentStoreModule,
44
} from './ability/dynamicComponent';
5+
56
import createEventBus from './ability/eventBus';
67
import createModuleLoader from './ability/moduleLoader';
78
import createComponentLoader from './ability/componentLoader';

packages/module-loader/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"compilerOptions": {
44
"baseUrl": ".",
55
"outDir": "dist",
6-
"declaration": true,
7-
// "declarationDir": "types",
8-
// "paths": {},
96
"composite": true
107
},
118
"include": ["src", "types"],

packages/resource-manager/src/Suspense.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import Vue, { CreateElement, VNode, VNodeChildren } from 'vue';
22
import { error } from '@vue-async/utils';
33
import { pushSuspenseInstance, popSuspenseInstance, currentSuspenseInstance } from './currentInstance';
4-
import { UseOptions, AsyncFactory } from '../types';
4+
5+
// Types
6+
import { UseOptions, AsyncFactory } from 'types/resource-mananger';
57

68
export const RESOLVED = 'resolved';
79
export const REJECTED = 'rejected';

packages/resource-manager/src/createResource.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { error } from '@vue-async/utils';
33
import { del, add } from './Suspense';
44
import { currentInstance, currentSuspenseInstance, setCurrentInstance } from './currentInstance';
55
import findSuspenseInstance from './findSuspenseInstance';
6-
import { AsyncFactory, ResourceOptions, ResourceResult } from '../types';
6+
7+
// Types
8+
import { AsyncFactory, ResourceOptions, ResourceResult } from 'types/resource-mananger';
79

810
Vue.mixin({
911
created(this: Vue) {

packages/resource-manager/src/extend.vue.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Vue, { VNode } from 'vue';
2-
import { UseOptions, AsyncFactory, SuspenseComponent } from '../types';
2+
import { UseOptions, AsyncFactory, SuspenseComponent } from 'types/resource-mananger';
33

44
declare module 'vue/types/vue' {
55
interface Vue {

packages/resource-manager/src/install.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import { VueConstructor } from 'vue';
21
import Suspense, { COMPONENT_NAME } from './Suspense';
3-
import { UseOptions } from '../types';
2+
3+
// Types
4+
import { VueConstructor } from 'vue';
5+
import { UseOptions } from 'types/resource-mananger';
46

57
export default function install(Vue: VueConstructor, options: UseOptions = {}) {
68
if ((install as any).installed) return;

packages/resource-manager/src/lazy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import { PropsDefinition, DefaultProps } from 'vue/types/options';
44
import { del, add, has } from './Suspense';
55
import { currentSuspenseInstance } from './currentInstance';
66
import findSuspenseInstance from './findSuspenseInstance';
7-
import { AsyncFactory, SuspenseComponent } from '../types';
7+
8+
// Types
9+
import { AsyncFactory, SuspenseComponent } from 'types/resource-mananger';
810

911
export default function Lazy<PropsDef = PropsDefinition<DefaultProps>>(
1012
asyncFactory: AsyncFactory,

0 commit comments

Comments
 (0)