blakeembrey / blakeembrey/javascript-stringify
Feature idea: serialize from required CJS modules
- 主要语言
- TypeScript
- 星标
- 146
- 派生
- 16
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi Blake,
I have a feature idea: serializing cross-file. Even with the `references` option enabled, requires/imports evaluate to their references (not the fully-serialized data).
Worse comes to worse, one could just bundle their code and then execute this lib's `stringify` fn. Although, ideally, this build step could go away.
[Here's a simple example](https://github.com/harrysolovay/javascript-stringify-issue-repro) of where this might come in handy.
Identifying the difference between node & browser environments seems to be a reason not to implement this... although I'm sure there're good workarounds.
Anyways, please let me know your thoughts on this. Would love to discuss implementations & work on a PR :)
贡献指南
这个仓库没有索引到贡献指南
调研方向
从链接的复现开始,检查库的 stringify 函数以及针对所需 CommonJS 模块的 references 选项。比较 Node 和浏览器环境中的行为,然后在实现之前就预期的跨文件序列化行为达成一致;该 issue 未指明任何文件或测试,因此完成标准仍未确定。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, node.js, typescript
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100