Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: window test error #4031

Merged
merged 2 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ Modern.js is a web engineering system, including multiple solutions:

## Ecosystem

The following solutions are available within the Modern.js ecosystem:
The following solutions and libraries are available within the Modern.js ecosystem:

- 🦀 [Rspack](https://github.com/web-infra-dev/rspack): A fast Rust-based web bundler.
- 🐟 [Garfish](https://github.com/web-infra-dev/garfish): A powerful micro front-end framework.
- 🦆 [Reduck](https://github.com/web-infra-dev/reduck): A redux-based state management library.
- 🐴 [SWC Plugins](https://github.com/web-infra-dev/swc-plugins):Built-in SWC plugins for Modern.js.

## Benchmark

Expand Down
29 changes: 15 additions & 14 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

Modern.js 是一个 Web 工程体系,包含以下解决方案:

- 🦄 [Modern.js Framework](https://modernjs.dev/): 基于 React 的渐进式 Web 开发框架。
- 🐧 [Modern.js Module](https://modernjs.dev/module-tools): 简单、高性能的 npm 包开发方案。
- 🐹 [Modern.js Doc](https://modernjs.dev/doc-tools/zh/): 现代文档站解决方案。
- 🐈 [Modern.js Builder](https://modernjs.dev/builder/): 面向 Web 开发场景的构建引擎。
- 🦄 [Modern.js Framework](https://modernjs.dev/)基于 React 的渐进式 Web 开发框架。
- 🐧 [Modern.js Module](https://modernjs.dev/module-tools)简单、高性能的 npm 包开发方案。
- 🐹 [Modern.js Doc](https://modernjs.dev/doc-tools/zh/)现代文档站解决方案。
- 🐈 [Modern.js Builder](https://modernjs.dev/builder/)面向 Web 开发场景的构建引擎。

## 快速上手

Expand All @@ -34,11 +34,12 @@ Modern.js 是一个 Web 工程体系,包含以下解决方案:

## 生态

Modern.js 生态提供了以下解决方案
Modern.js 生态提供了以下解决方案和底层库

- 🦀 [Rspack](https://github.com/web-infra-dev/rspack): 基于 Rust 的高性能模块打包工具。
- 🐟 [Garfish](https://github.com/web-infra-dev/garfish): 一站式微前端解决方案。
- 🦆 [Reduck](https://github.com/web-infra-dev/reduck): 基于 Redux 的状态管理库。
- 🦀 [Rspack](https://github.com/web-infra-dev/rspack):基于 Rust 的高性能模块打包工具。
- 🐟 [Garfish](https://github.com/web-infra-dev/garfish):一站式微前端解决方案。
- 🦆 [Reduck](https://github.com/web-infra-dev/reduck):基于 Redux 的状态管理库。
- 🐴 [SWC Plugins](https://github.com/web-infra-dev/swc-plugins):Modern.js 的 SWC 插件。

## Benchmark

Expand Down Expand Up @@ -66,12 +67,12 @@ Modern.js 生态提供了以下解决方案:

Modern.js 中的部分代码是参考社区中的其他项目实现的,比如 [create-react-app](https://github.com/facebook/create-react-app),[vitepress](https://github.com/vuejs/vitepress),[remix](https://github.com/vuejs/remix),[jest](https://github.com/facebook/jest) 和 [bundle-require](https://github.com/egoist/bundle-require) 等,感谢这些项目:

- `@modern-js/bundle-require`: 修改自 [bundle-require](https://github.com/egoist/bundle-require)。
- `@modern-js/plugin`: hook API 的实现参考了 [farrow-pipeline](https://github.com/farrow-js/farrow/tree/master/packages/farrow-pipeline)。
- `@modern-js/builder`: moduleScope 和 fileSize 插件参考了 [create-react-app](https://github.com/facebook/create-react-app),TsConfigPathsPlugin 参考了 [tsconfig-paths-webpack-plugin](https://github.com/dividab/tsconfig-paths-webpack-plugin),generateMetaTags 函数参考了 [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin)
- `@modern-js/plugin-testing`: jest runner 参考了 [jest-cli](https://github.com/facebook/jest/blob/fdc74af37235354e077edeeee8aa2d1a4a863032/packages/jest-cli/src/cli/index.ts#L21)。
- `@modern-js/doc-tools`: 部分样式参考了 [vitepress](https://github.com/vuejs/vitepress)。
- `@modern-js/plugin-data-loader`: 部分实现参考了 [remix](https://github.com/remix-run/remix)。
- `@modern-js/bundle-require`修改自 [bundle-require](https://github.com/egoist/bundle-require)。
- `@modern-js/plugin`hook API 的实现参考了 [farrow-pipeline](https://github.com/farrow-js/farrow/tree/master/packages/farrow-pipeline)。
- `@modern-js/builder`moduleScope 和 fileSize 插件参考了 [create-react-app](https://github.com/facebook/create-react-app),TsConfigPathsPlugin 参考了 [tsconfig-paths-webpack-plugin](https://github.com/dividab/tsconfig-paths-webpack-plugin),generateMetaTags 函数参考了 [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin)
- `@modern-js/plugin-testing`jest runner 参考了 [jest-cli](https://github.com/facebook/jest/blob/fdc74af37235354e077edeeee8aa2d1a4a863032/packages/jest-cli/src/cli/index.ts#L21)。
- `@modern-js/doc-tools`部分样式参考了 [vitepress](https://github.com/vuejs/vitepress)。
- `@modern-js/plugin-data-loader`部分实现参考了 [remix](https://github.com/remix-run/remix)。

## License

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/doc-core/modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {
externals: ['@modern-js/mdx-rs-binding'],
esbuildOptions: options => {
options.banner = {
js: 'import { createRequire } from "module"; const require = createRequire(import.meta.url);',
js: 'import { createRequire } from "module";\nconst { url } = import.meta;\nconst require = createRequire(url);',
};
return options;
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/doc-core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"./modern.config.ts",
"./tailwind.config.ts"
],
"exclude": ["runtime.ts", "theme.ts"]
"exclude": ["runtime.ts", "theme.ts", "node_modules"]
}
10 changes: 10 additions & 0 deletions packages/document/main-doc/docs/zh/community/blog/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ sidebar_position: 1

---

## AIGC 如何影响下一代文档搜索方案?

> 发表于 2023.05.11

对于一个文档站点来说,搜索是一个很重要的功能,它可以帮助用户在繁杂的文档中快速找到自己想要的内容。而随着 AIGC(人工智能生成内容)技术的发展,文档搜索领域也正在悄然发生变化。借助 AI 强大的自然语言处理能力和上下文理解能力,我们可以把文档搜索做得更加智能化。本文将会介绍 AIGC 在文档中应用的技术原理,并分析一些业界已有的 AI 搜索产品。

[了解更多 →](https://mp.weixin.qq.com/s/OGuixAbvbIYr2viQrOrPXg)

---

## Modern.js v2 发布:支持 Rspack 构建

> 发表于 2023.03.16
Expand Down