转换


¥Transpilation

可以使用 load 钩子 将 Node.js 无法理解的格式的源代码转换为 JavaScript。

¥Sources that are in formats Node.js doesn't understand can be converted into JavaScript using the load hook.

这比在运行 Node.js 之前转换源文件的性能要差;转译器钩子只能用于开发和测试目的。

¥This is less performant than transpiling source files before running Node.js; transpiler hooks should only be used for development and testing purposes.