@modern-js/app-tools 3.10.4 → 3.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,8 +48,8 @@ class BottomTemplatePlugin {
48
48
  this.name = 'bottom-template';
49
49
  }
50
50
  }
51
- __webpack_require__.d(__webpack_exports__, {
52
- BottomTemplatePlugin: ()=>BottomTemplatePlugin
51
+ __webpack_require__.d(__webpack_exports__, {}, {
52
+ BottomTemplatePlugin: BottomTemplatePlugin
53
53
  });
54
54
  exports.BottomTemplatePlugin = __webpack_exports__.BottomTemplatePlugin;
55
55
  for(var __rspack_i in __webpack_exports__)if (-1 === [
@@ -7,7 +7,7 @@ const info = (file)=>({
7
7
  function createPublicPattern(appContext, config, chain) {
8
8
  const { publicDir } = createCopyInfo(appContext, config);
9
9
  return {
10
- info: info,
10
+ info,
11
11
  from: '**/*',
12
12
  to: 'public',
13
13
  context: publicDir,
@@ -8,7 +8,7 @@ const info = (file)=>({
8
8
  function createPublicPattern(appContext, config, chain) {
9
9
  const { publicDir } = createCopyInfo(appContext, config);
10
10
  return {
11
- info: info,
11
+ info,
12
12
  from: '**/*',
13
13
  to: 'public',
14
14
  context: publicDir,
@@ -35,3 +35,40 @@ If the value of `supportHtml5History` is `true`, `BrowserRouter` would be used,
35
35
  When SSR is enabled, `supportHtml5History` is not supported.
36
36
 
37
37
  :::
38
+
39
+ ## useTransitions
40
+
41
+ - **Type:** `boolean`
42
+ - **Default:** `undefined`, which follows React Router's default behavior (enabled)
43
+
44
+ Whether to wrap router state updates in [`React.startTransition`](https://react.dev/reference/react/startTransition). The value is passed to React Router's [`<RouterProvider useTransitions>`](https://reactrouter.com/api/data-routers/RouterProvider).
45
+
46
+ When enabled, the page mount after the initial Data Loader finishes and every navigation are rendered concurrently. Benefits:
47
+
48
+ - During navigation, the current page stays on screen until the next page is ready, instead of showing a loading state first.
49
+ - Rendering can yield to the main thread, so the page keeps responding to user input while switching pages.
50
+
51
+ It also introduces two behaviors that differ from synchronous rendering:
52
+
53
+ - A render may be discarded and run again. Component bodies, `useMemo` and `useState` initializers, and class component constructors may run more than once, so code in them that changes external state (such as creating an instance and assigning it to a global variable, registering event listeners, or sending analytics) also runs more than once.
54
+ - There may be a gap between render and commit. External state read during render may have changed by the time it is subscribed to in `useLayoutEffect`, and updates that happen in the gap are lost.
55
+
56
+ If your application contains such code and cannot be refactored yet, set it to `false` to render router state updates synchronously:
57
+
58
+ ```ts title="src/modern.runtime.ts"
59
+ import { defineRuntimeConfig } from '@modern-js/runtime';
60
+
61
+ export default defineRuntimeConfig({
62
+ router: {
63
+ useTransitions: false,
64
+ },
65
+ });
66
+ ```
67
+
68
+ :::tip
69
+
70
+ - This option only affects router state updates. Updates triggered by `startTransition` or `useTransition` in your own code are not affected.
71
+ - See the [React Router documentation](https://reactrouter.com/explanation/react-transitions) for how to make your code transition-safe.
72
+ - `future.v7_startTransition` is deprecated. When `useTransitions` is not set, the value of `future.v7_startTransition` is used.
73
+
74
+ :::
@@ -0,0 +1,159 @@
1
+ > For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.
2
+
3
+ # MCP Apps
4
+
5
+ Modern.js builds React cards for MCP hosts. UI builds and servers exchange only `ui-manifest.json`. Servers use the official MCP SDK directly.
6
+
7
+ ## Create a project
8
+
9
+ ```bash
10
+ npx @modern-js/create@latest my-mcp --template mcp-apps
11
+ npx @modern-js/create@latest my-mf-mcp --template mcp-apps --mf
12
+ ```
13
+
14
+ Choose a release containing MCP Apps support. Run `pnpm dev`. The explicit BFF route is `/api/mcp`.
15
+
16
+ `@modern-js/mcp-apps` provides the build plugin, server plugin, server adapters and card runtime through `./cli`, `./server-plugin`, `./server` and `./react`. The application must install the peers `react`, `react-dom`, `@modelcontextprotocol/server` and `@modelcontextprotocol/ext-apps`, so cards use the application's React and tools, resources and HTTP handling use the application's SDK versions. `@modern-js/server-runtime` and `@module-federation/enhanced` are optional peers that provide the default request context for BFF handlers and the default MF shell runtime. The project templates already declare these dependencies.
17
+
18
+ ## Build cards
19
+
20
+ Declare local default-export React components or this project's MF exposes in `mcp-views.json`:
21
+
22
+ ```json
23
+ {
24
+ "views": {
25
+ "todos": "./src/components/Todos.tsx",
26
+ "stats": { "expose": "./Stats" }
27
+ },
28
+ "csp": { "resourceDomains": [], "connectDomains": [] },
29
+ "prefersBorder": true
30
+ }
31
+ ```
32
+
33
+ Import `mcpAppsPlugin` from `@modern-js/mcp-apps/cli` and add `mcpAppsPlugin({ views: './mcp-views.json' })` to your Modern.js plugins. Paths resolve relative to the JSON file. MF cards require the Modern.js MF plugin with manifest output enabled. The UI plugin validates exposes against the actual emitted MF manifest and builds the shell with the application's React dependencies.
34
+
35
+ The plugin finds the MF manifest in the web build output by filename, `mf-manifest.json` by default, and requires exactly one match. The shell imports `createInstance` from `@module-federation/enhanced/runtime` by default. Other MF implementations can replace both through the `mf` option:
36
+
37
+ ```ts
38
+ mcpAppsPlugin({
39
+ views: './mcp-views.json',
40
+ mf: {
41
+ // MF manifest filename in the build output
42
+ manifestFile: 'vmok-manifest.json',
43
+ // Resolved from the application. Must export a compatible createInstance
44
+ runtime: '@vmok/kit/runtime',
45
+ },
46
+ });
47
+ ```
48
+
49
+ Local cards build as separate entries without the framework page runtime. With `source.enableAsyncEntry`, each entry adds a dynamic import boundary so MF shared dependencies can initialize. The MF plugin enables this option automatically. Otherwise cards mount directly without an extra request.
50
+
51
+
52
+ ```tsx
53
+ import type { McpViewProps } from '@modern-js/mcp-apps/react'
54
+
55
+ export default function Todos({
56
+ todos = [],
57
+ mcpApp,
58
+ }: McpViewProps<{ todos: string[] }>) {
59
+ return (
60
+ <section>
61
+ <ul>
62
+ {todos.map(todo => (
63
+ <li key={todo}>{todo}</li>
64
+ ))}
65
+ </ul>
66
+ <button
67
+ onClick={() =>
68
+ mcpApp.callServerTool({ name: 'refresh', arguments: {} })
69
+ }
70
+ >
71
+ Refresh
72
+ </button>
73
+ </section>
74
+ )
75
+ }
76
+ ```
77
+
78
+ Props come from successful `structuredContent`. The reserved `mcpApp` prop is injected by the wrapper. Input arguments are not merged into props. New input, cancellation and teardown clear previous output. The wrapper manages connection, host styling and loading/error states. Results from tools called inside a card must be handled by the component itself.
79
+
80
+ ## Write the server
81
+
82
+ Enable `bffPlugin()` and create `api/lambda/mcp.ts`. The UI plugin does not register any HTTP route.
83
+
84
+
85
+ ```ts
86
+ import { McpServer } from '@modelcontextprotocol/server'
87
+ import { registerAppTool } from '@modelcontextprotocol/ext-apps/server'
88
+ import {
89
+ createBffHandlers,
90
+ registerUiResources,
91
+ } from '@modern-js/mcp-apps/server'
92
+ import { z } from 'zod'
93
+
94
+ async function createServer(request: Request) {
95
+ const server = new McpServer({ name: 'todos', version: '1.0.0' })
96
+ const ui = await registerUiResources(server, { request })
97
+ registerAppTool(
98
+ server,
99
+ 'list_todos',
100
+ {
101
+ inputSchema: z.object({}),
102
+ _meta: { ui: { resourceUri: ui.todos } },
103
+ },
104
+ async () => ({
105
+ content: [{ type: 'text', text: 'Todo list' }],
106
+ structuredContent: { todos: ['Read the MCP Apps guide'] },
107
+ }),
108
+ )
109
+ return server
110
+ }
111
+
112
+ export const { POST, GET, DELETE } = createBffHandlers(createServer)
113
+ ```
114
+
115
+ The adapter reconstructs BFF's consumed JSON body and returns the SDK Response. It reads the raw request through `useHonoContext` from `@modern-js/server-runtime`. Frameworks built on Modern.js can pass their own implementation with `createBffHandlers(createServer, { useContext })`. The official SDK owns protocol serving and tool validation. Serving is stateless, so unsupported session operations such as GET and DELETE are rejected by the SDK. Return a fresh server per request. Put authentication and authorization in surrounding middleware or the factory, and persist business data in an external store.
116
+
117
+ For independent Hono servers, create `handle = createFetchHandler(createServer)` and mount `app.all('/mcp', c => handle(c.req.raw))`. Foreign browser origins are rejected unless listed in `allowedOrigins` in the adapter's second argument.
118
+
119
+ ## Manifest and deployment
120
+
121
+ Builds emit `dist/mcp-apps/ui-manifest.json` and `dist/mcp-apps/ui/*.html`. Static JavaScript, CSS and MF files remain in the application's standard output. MF-only projects also emit a UI manifest. Local HTML filenames use a stable hash of the view name. MF cards share `mcp-shell.html`.
122
+
123
+ The version 1 manifest contains `assetBase`, `remotes` and `views`. A local view has `{ html, ui }`. An MF view has `{ remote, expose, ui }`, with its remote declaring `{ entry, shell }`.
124
+
125
+ - HTML and shell paths resolve relative to the manifest location
126
+ - MF entry paths resolve relative to `assetBase`
127
+ - Absolute HTTP(S) sources are supported for independent deployments
128
+ - `ui` preserves CSP, permissions, domain and border preferences
129
+ - Resource URIs are generated as `ui://app/<encoded-view-name>` by the server, and multiple tools can share a card
130
+ - MF configuration is injected into resource HTML instead of tool results
131
+
132
+ `createBffHandlers()` associates the server plugin’s manifest path and runtime mode with the current request. Call `registerUiResources(server, { request })` to resolve them automatically. Development uses the framework internal directory and production uses the runtime output directory. Explicit options override injected configuration. Independent services must provide a `manifest` file path or HTTP(S) URL. The `mode` option defaults to `production`. Relative HTML resolves against the manifest location.
133
+
134
+ Manifests are cached by source URL and environment. Production caches successful loads for the process lifetime, so updating the same location requires a process restart. Development detects local file changes and caches remote manifests for 60 seconds. Concurrent loads are coalesced and failures can be retried. HTML is read per resource request, and request-specific URLs and metadata remain isolated.
135
+
136
+ An absolute `output.assetPrefix` becomes `assetBase`. Otherwise request-origin resolution is used. Override `assetBase` in `registerUiResources` for a separate static origin or deployment path prefix. Request mode honors sanitized `x-forwarded-proto` headers. Reverse proxies must preserve the public host and sanitize forwarded headers.
137
+
138
+ Required asset, connection and base URI origins are added to CSP. MF entry origins are also added to connection permissions. The origin of an absolute or protocol-relative `output.assetPrefix` is added at build time, with `//cdn.example/` treated as `https://cdn.example`. Declare any other API, chunk/CDN or iframe origins in `mcp-views.json`, or pass domains computed in the config through `mcpAppsPlugin({ csp })`. Both are merged into every view. Deploy the manifest and HTML together with the application static assets and MF output.
139
+
140
+ Platforms may rewrite file and MF addresses to absolute URLs and combine cards into another manifest of the same version. Unknown versions are rejected.
141
+
142
+ ## Card capabilities
143
+
144
+ Cards advertise `inline` and `fullscreen` by default. Both local component modules and MF exposes can export `mcpCapabilities` to declare additional capabilities or override the display modes.
145
+
146
+
147
+ ```tsx
148
+ import type { McpCapabilities } from '@modern-js/mcp-apps/react'
149
+
150
+ export const mcpCapabilities = {
151
+ availableDisplayModes: ['inline'],
152
+ } satisfies McpCapabilities
153
+
154
+ export default function Card() {
155
+ return <div>My card</div>
156
+ }
157
+ ```
158
+
159
+ You can also pass capabilities as the third argument to `createMcpView`. Explicit display mode arrays replace the defaults. MF modules are loaded before initialization so the handshake includes their capabilities. Declaring fullscreen support does not add a fullscreen button or switch modes automatically.
@@ -41,3 +41,5 @@ If running normally, you can see the following output in the console:
41
41
  error SSR Error - App Prerender, error = ReferenceError: a is not defined
42
42
  at Index (/somepath/page.tsx:3:1)
43
43
  ```
44
+
45
+ To configure the built-in production server logger with `MODERN_SERVER_LOG_LEVEL`, see [Production server logs](/guides/basic-features/deploy.md#production-server-logs).
@@ -109,6 +109,12 @@ export const action = async ({ request }: ActionFunctionArgs) => {
109
109
 
110
110
  The return value of the `action` function can be any serializable content or a [Fetch Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) instance. You can access the content via [`useActionData`](https://reactrouter.com/en/main/hooks/use-action-data).
111
111
 
112
+ ### Redirects
113
+
114
+ An action can return or throw `redirect('/dashboard')` imported from `@modern-js/runtime/router` to navigate after a submission. This also applies to submissions made with `useFetcher`.
115
+
116
+ Actions run when a form or `submit` triggers a mutation request. Visiting a route alone does not run its action. To redirect when loading a route, use `redirect` in its loader.
117
+
112
118
  ## useSubmit and useFetcher
113
119
 
114
120
  ### Difference
@@ -83,6 +83,37 @@ If you use Rush as your Monorepo management tool, you can add the following comm
83
83
 
84
84
  After the build is completed, Modern.js will generate all dependencies in the `.output/node_modules` directory of the project. Similarly, you can run the Modern.js server using `node .output/index`.
85
85
 
86
+ ### Production server logs
87
+
88
+ The built-in Node.js production server defaults to the `info` log level. It prints informational messages, warnings and errors, without logging every page or static asset request.
89
+
90
+ Set `MODERN_SERVER_LOG_LEVEL` when starting the server to change its log level:
91
+
92
+ ```bash
93
+ MODERN_SERVER_LOG_LEVEL=warn node .output/index
94
+ ```
95
+
96
+ The supported values are the [rslog](https://github.com/rstackjs/rslog) log levels:
97
+
98
+ | Value | Output |
99
+ | --------- | ------------------------------------------------------------------- |
100
+ | `silent` | No logs |
101
+ | `error` | Errors only |
102
+ | `warn` | Warnings and errors |
103
+ | `info` | Informational messages, warnings and errors (default) |
104
+ | `log` | Everything at `info`, plus messages written with `logger.log()` |
105
+ | `verbose` | All logs, including debug messages, request logs and timing details |
106
+
107
+ To enable per-request logs, including static asset requests:
108
+
109
+ ```bash
110
+ MODERN_SERVER_LOG_LEVEL=verbose node .output/index
111
+ ```
112
+
113
+ Setting `DEBUG` to a non-empty value also enables `verbose` logging, unless `MODERN_SERVER_LOG_LEVEL` explicitly selects another level.
114
+
115
+ This environment variable controls the built-in server logger. It does not override a custom logger or enable logging when `server.logger` is `false`.
116
+
86
117
  ## Netlify
87
118
 
88
119
  Netlify is a popular Web development platform designed for building, deploying, and maintaining modern web projects. Deploying on Netlify mainly requires configuring the `netlify.toml` file.
@@ -177,6 +177,64 @@ export default defineConfig({
177
177
  });
178
178
  ```
179
179
 
180
+ ## SSG Matching for Parent and Child Routes
181
+
182
+ For a blog, `src/routes/blog/page.tsx` renders the list and `src/routes/blog/[slug]/page.tsx` renders an article. After enabling SSG, you can prerender both the list and selected articles:
183
+
184
+
185
+ ```ts title="modern.config.ts"
186
+ export default defineConfig({
187
+ output: {
188
+ ssg: {
189
+ routes: ['/blog', '/blog/hello'],
190
+ },
191
+ },
192
+ })
193
+ ```
194
+
195
+ Each path generates its own static HTML. The built-in production server matches SSG pages by their exact paths:
196
+
197
+ | Request path | Behavior |
198
+ | ---------------------- | --------------------------------------------------------------- |
199
+ | `/blog` | Returns the static HTML for the blog list |
200
+ | `/blog/hello` | Returns the static HTML for the article |
201
+ | `/blog/does-not-exist` | Does not match an SSG page and falls back to an available entry |
202
+
203
+ Requests to a trailing-slash URL such as `/blog/` receive an HTTP 308 redirect to `/blog`, preserving the query string. For example, `/blog/?preview=1` redirects to `/blog?preview=1`.
204
+
205
+ The SSG page at `/blog` does not act as a fallback for `/blog/*`. Defining a `[slug]` route does not automatically generate static HTML for every slug. List the concrete paths in `routes`.
206
+
207
+ This example does not enable SSR or prerender the root entry `/`. An unmatched path therefore receives the root entry's CSR shell, and routing continues in the browser. The initial HTML response is typically HTTP 200. An unknown slug alone does not cause the server to return 404.
208
+
209
+ If a matching SSR entry exists, SSR determines the response content and status. If no entry matches, the server returns 404. If you also configure the root entry `/` for SSG, it only matches its own path and no longer provides a wildcard fallback.
210
+
211
+ ## Handling 404 Responses During Prerendering
212
+
213
+ Continuing the example, suppose you add `/blog/scheduled` to `output.ssg.routes`, but the article has not been published yet. Its loader can throw a 404 during the build. Here, `getPost` is your application's article lookup function, and `publishedAt` is the publication timestamp in milliseconds:
214
+
215
+
216
+ ```ts title="src/routes/blog/[slug]/page.data.ts"
217
+ import { getPost } from '@/data/posts'
218
+
219
+ export const loader = async ({ params }: { params: { slug: string } }) => {
220
+ const post = await getPost(params.slug)
221
+ if (!post || post.publishedAt > Date.now()) {
222
+ throw new Response('Not Found', { status: 404 })
223
+ }
224
+ return post
225
+ }
226
+ ```
227
+
228
+ When prerendering returns 404 or another non-2xx response, the build:
229
+
230
+ - Logs a warning containing the path and status code.
231
+ - Skips the page's static HTML file and SSG route registration.
232
+ - Continues generating pages with successful responses.
233
+
234
+ The error page is therefore not saved as static HTML that would later be served with HTTP 200. Requests to `/blog/scheduled` follow the entry fallback rules above. The build-time 404 is not stored as the path's runtime response status.
235
+
236
+ SSG only generates pages during a build. Reaching the publication time does not automatically generate the missing static HTML. Rebuild and redeploy to generate the article's SSG page.
237
+
180
238
  ## Multi-entry
181
239
 
182
240
  For multi-entry apps, configure per entry via `output.ssgByEntries`:
@@ -89,6 +89,24 @@ Modern.js 3.0 uses React Router v7 as the default routing library. React Router
89
89
 
90
90
  If you need to use React Router v5 or React Router v6, you need to use **self-controlled routing** mode. Self-controlled routing allows you to fully control routing configuration without being limited by Modern.js convention-based routing.
91
91
 
92
+ ### Router updates use transitions by default
93
+
94
+ React Router v7 wraps router state updates in `React.startTransition` by default. In v6 this behavior required enabling `future.v7_startTransition`. After upgrading, the page mount after the initial Data Loader finishes and every navigation switch from synchronous rendering to concurrent rendering. A render may be discarded and run again, and there may be a gap between render and commit.
95
+
96
+ If your project changes external state during render, you may see the following issues after upgrading:
97
+
98
+ - An instance is created in `useMemo` and assigned to a global variable. After it runs again, multiple instances exist and logic that relies on a singleton throws.
99
+ - A React Router v6 `RouterProvider` is nested inside a page. It reads the router state during render but only subscribes in `useLayoutEffect`, so it may miss the initialization notification and the page stays blank. See [React Router issue #14356](https://github.com/remix-run/react-router/issues/14356).
100
+
101
+ Keep render free of side effects as React requires:
102
+
103
+ - Create instances, register listeners, send analytics, and modify global variables in `useEffect`.
104
+ - Read external state with [`useSyncExternalStore`](https://react.dev/reference/react/useSyncExternalStore).
105
+ - Create objects such as routers and stores outside components.
106
+ - Enable `StrictMode` in development to surface code that breaks when run twice.
107
+
108
+ If your code cannot be refactored yet, set [`router.useTransitions`](/configure/app/runtime/router.md#usetransitions) to `false` to restore synchronous rendering.
109
+
92
110
  ## Using @modern-js/create to Create Monorepo and Modern.js Module
93
111
 
94
112
  Modern.js 3.0 no longer supports creating Monorepo projects and Modern.js Module projects through `@modern-js/create`.
package/docs/llms.txt CHANGED
@@ -52,6 +52,7 @@
52
52
  - [Extend Request SDK](/guides/advanced-features/bff/sdk.md): The unified invocation of BFF functions is isomorphic in both CSR and SSR. The request SDK encapsulated by Modern.js relies on the Fetch API on the browser side, and on node-fetch on the server side. However, in actual business scenarios, additional processing may be required for requests or responses, such as: Writing authentication information in the request headersUniform handling of response data or errorsUsing other methods to send requests when the native fetch function is unavailable on specific platforms To address these scenarios, Modern.js provides the configure function, which offers a series of extension capabilities. You can use it to configure SSR passthrough request headers, add interceptors, or customize the request SDK.
53
53
  - [File Upload](/guides/advanced-features/bff/upload.md): BFF combined with runtime framework provides file upload capabilities, supporting integrated calls and pure function manual calls. BFF Function First, create the api/lambda/upload.ts file: Integrated Calling Next, directly import and call the function in src/routes/upload/page.tsx: Manual Calling You can manually upload files using the fetch API, when calling fetch, set the body as FormData type and submit a post request.
54
54
  - [Cross-Project Invocation](/guides/advanced-features/bff/cross-project.md): Based on the BFF architecture, Modern.js provides cross-project invocation capabilities, allowing BFF functions created in one project to be invoked by other projects through integrated calls, enabling function sharing and feature reuse across projects. Cross-project invocation consists of producer and consumer sides. The producer is responsible for creating and providing BFF services while generating integrated invocation SDK, and the consumer initiates requests through these SDK.
55
+ - [MCP Apps](/guides/advanced-features/mcp-apps.md): Modern.js builds React cards for MCP hosts. UI builds and servers exchange only ui-manifest.json. Servers use the official MCP SDK directly.
55
56
  - [Code Splitting](/guides/advanced-features/page-performance/code-split.md): Code splitting is a common way to optimize frontend resource loading. This article will introduce the three types of code splitting supported by Modern.js: dynamic importReact.lazyloadable
56
57
  - [Inline Static Assets](/guides/advanced-features/page-performance/inline-assets.md): Inline static assets refer to the practice of including the content of a static asset directly in a HTML or JS file, instead of linking to an external file. This can improve the performance of a website by reducing the number of HTTP requests that the browser has to make to load the page. However, static assets inlining also has some disadvantages, such as increasing the size of a single file, which may lead to slower loading. Therefore, in the actual scenario, it is necessary to decide whether to use static assets inlining according to the specific situation. Modern.js will automatically inline static assets that are less than 10KB, but sometimes you may need to manually control assets to force them to be inlined or not, and this document explains how to precisely control the inlining behavior of static assets.
57
58
  - [Bundle Size Optimization](/guides/advanced-features/page-performance/optimize-bundle.md): Bundle size optimization is an important part of optimizing your production environment because it directly affects the user experience. In this document, we will introduce some common bundle size optimization methods in Modern.js.
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.10.4",
18
+ "version": "3.11.1",
19
19
  "types": "./dist/types/index.d.ts",
20
20
  "main": "./dist/cjs/index.js",
21
21
  "exports": {
@@ -113,11 +113,11 @@
113
113
  }
114
114
  },
115
115
  "dependencies": {
116
- "@babel/parser": "^7.29.11",
117
- "@babel/traverse": "^7.29.10",
116
+ "@babel/parser": "^7.29.12",
117
+ "@babel/traverse": "^7.29.12",
118
118
  "@babel/types": "^7.29.11",
119
- "@rsbuild/core": "2.2.13",
120
- "@swc/core": "1.16.20",
119
+ "@rsbuild/core": "2.3.1",
120
+ "@swc/core": "1.16.21",
121
121
  "@swc/helpers": "^0.5.17",
122
122
  "es-module-lexer": "^1.7.0",
123
123
  "flatted": "^3.4.4",
@@ -126,16 +126,16 @@
126
126
  "ndepe": "^0.1.13",
127
127
  "pkg-types": "^1.3.1",
128
128
  "std-env": "^3.10.0",
129
- "@modern-js/builder": "3.10.4",
130
- "@modern-js/i18n-utils": "3.10.4",
131
- "@modern-js/plugin": "3.10.4",
132
- "@modern-js/plugin-data-loader": "3.10.4",
133
- "@modern-js/prod-server": "3.10.4",
134
- "@modern-js/server": "3.10.4",
135
- "@modern-js/server-core": "3.10.4",
136
- "@modern-js/server-utils": "3.10.4",
137
- "@modern-js/types": "3.10.4",
138
- "@modern-js/utils": "3.10.4"
129
+ "@modern-js/builder": "3.11.1",
130
+ "@modern-js/plugin": "3.11.1",
131
+ "@modern-js/plugin-data-loader": "3.11.1",
132
+ "@modern-js/i18n-utils": "3.11.1",
133
+ "@modern-js/prod-server": "3.11.1",
134
+ "@modern-js/server": "3.11.1",
135
+ "@modern-js/server-core": "3.11.1",
136
+ "@modern-js/types": "3.11.1",
137
+ "@modern-js/server-utils": "3.11.1",
138
+ "@modern-js/utils": "3.11.1"
139
139
  },
140
140
  "devDependencies": {
141
141
  "@types/babel__traverse": "7.28.0",
@@ -143,8 +143,8 @@
143
143
  "ts-node": "^10.9.2",
144
144
  "tsconfig-paths": "^4.2.0",
145
145
  "typescript": "^5",
146
- "@modern-js/rslib": "3.10.4",
147
- "@scripts/rstest-config": "2.66.3"
146
+ "@modern-js/rslib": "3.11.1",
147
+ "@scripts/rstest-config": "2.66.5"
148
148
  },
149
149
  "peerDependencies": {
150
150
  "ts-node": "^10.9.2",