ballercat/walt

CLI 'wrap' command needs to build smaller files.

開放

#164 建立於 2018年10月14日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (119 個分叉)batch import
good first issuehelp wanted

倉庫指標

星標
 (4,631 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Problem

walt-cli package when linking multiple .walt files together can "wrap" the modules in a stand-alone JS module. The resulting module is too large because it serialized the dependency tree with the AST information encoded directly into the output, resulting in a massive amount of js.

Encoding the dependencies into the file is done to ensure the module can be used stand-alone in browser or node. Only the opcodes objects should be necessary for each module.

Goal

Patch the cli wrap function to result in a stripped down version of the modules (without AST information) which can still build but only include the bare minimum buffers in the resulting JS module.

Notes

貢獻者指南