diff --git a/package.json b/package.json index 5c246e0..cbfb539 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "umi-plugin-ssr-routes", "author": "xXAvoraXx", - "version": "1.0.17", + "version": "1.0.18", "main": "dist/cjs/index.js", "types": "dist/cjs/index.d.ts", "scripts": { diff --git a/src/index.ts b/src/index.ts index 0414c90..5ca924b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -89,7 +89,7 @@ export default (api: IApi) => { api.writeTmpFile({ path: RUNTIME_TYPE_FILE_NAME, content: ` -import { RouteRaw } from './types'; +import { RouteRaw } from './typing'; export interface IRuntimeConfig { getServerSideRoutes?: () => Promise } diff --git a/src/utils/getSessionContent.ts b/src/utils/getSessionContent.ts index 569b2dd..2e17b43 100644 --- a/src/utils/getSessionContent.ts +++ b/src/utils/getSessionContent.ts @@ -4,7 +4,7 @@ import LazyLoadable from './LazyLoadable'; import { createIcon } from './utils'; import { Navigate } from '@umijs/max'; import React, { lazy } from 'react'; -import { Route, RouteRaw } from './types'; +import { Route, RouteRaw } from './typing'; let remoteMenu: RouteRaw[] = []; export function getRemoteMenu() {