[社区投票] 推进 uni-helper 工具链全面支持 ESM 规范 #10
FliPPeDround
started this conversation in
Polls
Replies: 3 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
-
全面落实ESM科学发展观 |
Beta Was this translation helpful? Give feedback.
0 replies
-
都5202年了,还有不支持ESM的生态,我大为震惊。👀 WE NEED ESM!!! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ESM 支持的必要性与 Uni 生态演进方案
背景:Vite 生态的 ESM 转型趋势
随着 Vite 架构演进,其最新版本已全面采用 ESM(ECMAScript Modules) 规范。当前 Vite 生态中除 uni 相关插件外,所有核心工具链均已实现 ESM 原生支持。在此技术演进背景下,为兼容 uni 插件的 CommonJS (CJS) 格式而放弃 ESM 优势,将导致显著的开发成本与生态割裂。
ESM 环境中引入 Uni-app CJS 插件的方式
当前方案存在的核心问题:
解决方案
由uni-helper社区维护ESM的uni插件
标准化解决方案:@uni-helper 的 ESM 生态体系
核心优势:
@uni-helper
的 ESM 兼容工具链为构建完整的 ESM 开发体验,社区同步推进以下核心工具:
@uni-helper/plugin-uni
vite-plugin-uni-pages
vite-plugin-uni-platform
6 votes ·
Beta Was this translation helpful? Give feedback.
All reactions