blakeembrey / blakeembrey/javascript-stringify

Feature idea: serialize from required CJS modules

オープン
#25 コメント 8 件 リアクション 0 件 担当者 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 :)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。