blakeembrey / blakeembrey/javascript-stringify

Feature idea: serialize from required CJS modules

未關閉
#25 8 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。