blakeembrey / blakeembrey/javascript-stringify
Feature idea: serialize from required CJS modules
- Linguagem predominante
- TypeScript
- Estrelas
- 146
- Forks
- 16
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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 :)
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Start with the linked reproduction and inspect the library's stringify function and references option for required CommonJS modules. Compare the behavior in Node and browser environments, then agree on the intended cross-file serialization behavior before implementation; the issue names no files or tests, so the completion criteria remain open.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript, node.js, typescript
- Domínio
- tooling
- Tipo de issue
- Funcionalidade
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100