V2EX  ›  英汉词典
Enqueued related words: Transcompile, Minify, Polyfill, Babel

Transpile

释义 Definition

(计算机)转译:把一种编程语言的源代码转换成另一种语言(通常是同一抽象层级的语言)的等价源代码,以便兼容不同环境或获得特定特性。常见如把 TypeScript/ES6+ 转成可在旧浏览器运行的 JavaScript。

发音 Pronunciation

/ˌtrænˈspaɪl/

例句 Examples

I transpiled the TypeScript code to JavaScript.
我把 TypeScript 代码转译成了 JavaScript。

After we transpile the project, the output can run on older browsers without changing the original source.
在我们转译整个项目之后,输出代码无需修改原始源码就能在较旧的浏览器上运行。

词源 Etymology

transpile 是较新的技术词,常被解释为由 **trans-**(“跨越、转换”)和 compile(“编译”)类比构成,用来强调“在语言之间转换源码”的编译式处理;与传统“编译到机器码(compile)”相对,转译通常仍输出可读的源代码(例如 JavaScript→JavaScript)。

相关词 Related Words

文学与作品 Literary Works

  • Eloquent JavaScript(技术书籍,讨论现代 JavaScript 生态与构建流程时常涉及转译概念)
  • *You Don’t Know JS (Yet)*(技术书系,在谈到语法演进、工具链与兼容性时常提及转译/编译工具)
  • Babel 官方文档(Babel Handbook / 官方指南,频繁使用并定义 “transpile” 的实际用法)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2678 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 04:21 · PVG 12:21 · LAX 20:21 · JFK 23:21
♥ Do have faith in what you're doing.