Skip to content

Commit

Permalink
feat: import all from alita (ssr)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni committed Aug 25, 2021
1 parent 7ab13ad commit 8cf6463
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 51 deletions.
6 changes: 0 additions & 6 deletions packages/alita/index.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/alita/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "alita",
"version": "2.8.15",
"description": "alita",
"main": "index.js",
"main": "lib/index.js",
"module": "dist/index.esm.js",
"types": "types.d.ts",
"bin": {
Expand Down Expand Up @@ -33,6 +33,6 @@
},
"dependencies": {
"@alitajs/umi-presets-alita": "2.8.15",
"umi": "3.4.15"
"umi": "3.5.17"
}
}
7 changes: 0 additions & 7 deletions packages/alita/src/cjs.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/alita/src/defineConfig.ts

This file was deleted.

27 changes: 1 addition & 26 deletions packages/alita/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
export * from 'umi';
// @ts-ignore
export * from '@@/core/umiExports';
export {
ApplyPluginsType,
createBrowserHistory,
createHashHistory,
createMemoryHistory,
dynamic,
isBrowser,
Link,
matchPath,
MemoryRouter,
NavLink,
Plugin,
Prompt,
Redirect,
Route,
Router,
StaticRouter,
Switch,
useHistory,
useLocation,
useParams,
useRouteMatch,
withRouter,
__RouterContext,
} from '@umijs/runtime';
export type { MemoryHistory } from '@umijs/runtime';

0 comments on commit 8cf6463

Please sign in to comment.