File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
packages/solutions/app-tools/src Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @modern-js/app-tools ' : patch
3
+ ---
4
+
5
+ fix: support useHonoContext in the loader
6
+ fix: 支持在 loader 中使用 useHonoContext
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import analyzePlugin from './plugins/analyze';
28
28
import deployPlugin from './plugins/deploy' ;
29
29
import initializePlugin from './plugins/initialize' ;
30
30
import serverBuildPlugin from './plugins/serverBuild' ;
31
+ import serverRuntimePlugin from './plugins/serverRuntime' ;
31
32
import type { AppTools , AppToolsOptions , CliPluginFuture } from './types' ;
32
33
import type {
33
34
AddRuntimeExportsFn ,
@@ -56,6 +57,7 @@ export const appTools = (
56
57
) : CliPluginFuture < AppTools < 'shared' > > => ( {
57
58
name : '@modern-js/app-tools' ,
58
59
usePlugins : [
60
+ serverRuntimePlugin ( ) ,
59
61
compatPlugin ( ) ,
60
62
initializePlugin ( {
61
63
bundler :
Original file line number Diff line number Diff line change
1
+ import type { AppTools , CliPluginFuture } from '../types' ;
2
+
3
+ export default ( ) : CliPluginFuture < AppTools < 'shared' > > => ( {
4
+ name : '@modern-js/plugin-server-runtime' ,
5
+ setup ( api ) {
6
+ api . config ( ( ) => ( {
7
+ output : {
8
+ externals : [
9
+ {
10
+ '@modern-js/server-runtime' : '@modern-js/server-runtime' ,
11
+ } ,
12
+ ] ,
13
+ } ,
14
+ } ) ) ;
15
+ } ,
16
+ } ) ;
You can’t perform that action at this time.
0 commit comments