/emp

EMP Micro FE Base on webpack 5 & module federation

Primary LanguageTypeScriptOtherNOASSERTION

EMP ⚡ 2.0

npm node document Netlify Status

基于下一代构建实现微前端解决方案

  • 💡 微前端、微组件、支持ESM的共享模型
  • ⚡️ 结合SWC快速构建重载
  • 🛠️ 多功能模块支持TypeScript、JSX、CSS、Less、Sass 等支持开箱即用。
  • 📦 “多页应用” 或 “库” 模式的预配置 webpack 构建.
  • 🔩 通用的插件、共享 webpack chain 插件接口.
  • 🔑 TS重构项目、提供灵活的api、Plugin以及完整的类型提示.

🛠️ Typescript 工作流

Typescript 项目 dev 或 build 会生成当前项目 exposes 对应的声明

  • 执行 emp devemp build 后,生成的 index.d.ts 会在 dist/types 目录
  • 执行 emp dts 后,会下载 remote 对应的 d.ts 文件到 ./src/empShareTypes
    • -p 参数可以传下载目录,默认 ./src/empShareTypes

📦 Project

Project NPM Info Author
@efox/emp release Treasure chest Ken
@efox/emp-compile-swc release use swc replace babel, react support only Ken
@efox/plugin-vue-2 release EMP Vue v2 plugin Ken
@efox/plugin-vue-3 release EMP Babel for Vue 3 plugin MAXLZ1
@efox/eslint-config-react release ESLint React Config Ken
@efox/eslint-config-vue release ESLint Vue Config Ken

👬 Community

📖 Articles & Demos

[掘金] [知乎] [Antd Demo] [ESM Demo] [多入口 Demo] [vue 2 Demo]

👬 Contributors

EMP's contributors