How to use with vm.runInContext ()?
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 20/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- node.js, typescript
- 领域
- devtools
调研方向
首先找到 repository 中关于 source-map-support 初始化的文档或测试,然后将其与此处展示的 TypeScript 转译输出以及 Node 的 vm.runInContext/createContext 用法进行比较。对于这一组合,存在有文档说明且可正常工作的使用路径即表示完成,但 issue 没有指出需要更新的文件或现有测试。
由索引模型根据 Issue 内容生成。
描述
import {transpile} from 'typescript';
const jsCode = transpile(<TS-CODE>, {inlineSourceMap: true}, <path/to/source.ts>);
const sandbox = {exports: {}};
runInContext(jsCode , createContext(sandbox), {filename: <path/to/source.ts>});
How to use with vm.runInContext ()?
- 主要语言
- JavaScript
- 星标
- 2.2k
- 派生
- 221
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
evanw/node-source-map-support 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
evanw/node-source-map-support#344 ·
-
难度 1/5 1 小时以内 新手友好度 78/100
evanw/node-source-map-support#343 ·
-
难度 3/5 1-2 天 新手友好度 35/100
evanw/node-source-map-support#337 ·
-
难度 4/5 3-5 天 新手友好度 20/100
evanw/node-source-map-support#333 ·
-
难度 4/5 3-5 天 新手友好度 28/100
evanw/node-source-map-support#330 · 2 条评论 · 9 个 reaction ·
查看 evanw/node-source-map-support 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
apache/rocketmq-dashboard#6610 ·
维护者通常 3 天内回复
-
ACK_WAITING HELP_WANTED UPDATE_CS
难度 2/5 1-3 小时 新手友好度 78/100
OWASP/CheatSheetSeries#2781 ·
维护者通常 1 天内回复
-
Hermes: /ponytail off never reaches the model, the ruleset stays active可能已有人在做 @szsunyuan 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
DietrichGebert/ponytail#1121 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
integrations plugin
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复