![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@bytedance/mona
Advanced tools
对外暴露提供构建时API
创建项目配置,mona.config.ts
中使用
// mona.config.ts
import { createProjectConfig } from '@bytedance/mona';
export default createProjectConfig({
projectName: 'demo',
input: './src/app.tsx',
output: 'dist'
})
参数 | 说明 | 是否必填 | 类型 | 默认值 |
---|---|---|---|---|
projectName | 应用/插件名称 | 是 | string | - |
input | 入口文件路径 | 否 | string | - |
output | 打包后的文件目录路径 | 否 | string | - |
raw | 定义函数来修改webpack配置 | 否 | (options: any) => any | - |
dev | 用来修改本地服务配置 | 否 | string | { port: 9999 } |
创建应用配置,app.config.ts
中使用
// app.config.ts
import { createAppConfig } from '@bytedance/mona';
export default createAppConfig({
pages: [
'pages/Home/index',
'pages/Info/index',
'pages/List/index'
]
})
参数 | 说明 | 是否必填 | 类型 | 默认值 |
---|---|---|---|---|
pages | 页面路径 | 是 | string[] | - |
默认pages
的第一项为首页
创建页面配置,需在每个页面目录的page.config.ts
中使用
// page.config.ts
import { createPageConfig } from '@bytedance/mona';
export default createPageConfig({
navigationBarTitleText: 'page title'
})
参数 | 说明 | 是否必填 | 类型 | 默认值 |
---|---|---|---|---|
navigationBarTitleText | 当前页面标题 | 否 | string | - |
FAQs
Merchant app's developing and building tools
We found that @bytedance/mona demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.