developit / developit/microbundle

Support for multiple "entries"

未关闭
#50 30 条评论 15 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
8.1k
派生
358
PR 合并指标
30 天内没有已合并 PR

描述

Having this implemented would resolve [this issue](https://github.com/developit/unistore/issues/62).

The idea is that we need to output private `package.json` files to support appropriate es/cjs resolving, I believe that @kentcdodds got it "right" [here](https://github.com/kentcdodds/kcd-scripts/blob/d30389cf1c9805556fda59cc4d413763db92808e/src/scripts/build/rollup.js#L68-L85). Although you might prefer having some convention for creating additional "entries" over additional config flag.

I will work on implementing this, hopefully some time soon~

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先阅读链接的 unistore issue,以及所引用路径中的 kcd-scripts Rollup 配置。明确额外条目应使用约定还是配置标志,然后将完成标准定义为输出支持适当 ES 和 CommonJS 解析的私有 package.json 文件。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, rollup
领域
build-system, tooling
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。