Skip to content

Commit

Permalink
fix: re-export runtime server (#5932)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiveMe-A-Name authored Jul 10, 2024
1 parent 7002e03 commit 283ac69
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .changeset/rich-cows-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/runtime': patch
---

fix: re-export runtime server
fix: 重导出 runtime server
8 changes: 4 additions & 4 deletions packages/runtime/plugin-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
"default": "./dist/esm/core/server/index.js"
},
"./ssr/server": {
"types": "./dist/types/core/server/index.server.d.ts",
"jsnext:source": "./src/core/server/index.server.ts",
"default": "./dist/esm/core/server/index.server.js"
"types": "./dist/types/core/server/server.d.ts",
"jsnext:source": "./src/core/server/server.ts",
"default": "./dist/esm/core/server/server.js"
},
"./document": {
"types": "./dist/types/document/index.d.ts",
Expand Down Expand Up @@ -158,7 +158,7 @@
"./dist/types/core/server/index.d.ts"
],
"ssr/server": [
"./dist/types/core/server/index.server.d.ts"
"./dist/types/core/server/server.d.ts"
],
"model": [
"./types/model.d.ts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
import path from 'path';
import { fs, createLogger } from '@modern-js/utils';
import React from 'react';
import {
renderString,
RenderOptions,
} from '../../src/core/server/index.server';
import { renderString, RenderOptions } from '../../src/core/server/server';
import { getInitialContext } from '../../src/core/context/runtime';
import App from './fixtures/string-ssr/App';

Expand Down

0 comments on commit 283ac69

Please sign in to comment.