6 个仓库
Tools that programmatically transform JavaScript source code through AST manipulation or compilation pipelines.
Distinct from JavaScript Source Parsers: Focuses on the transformation of JavaScript code, whereas the parent is for general parsing of JS into structured data.
Explore 6 awesome GitHub repositories matching programming languages & runtimes · JavaScript Source Transformers. Refine with filters or upvote what's useful.
Metro is a JavaScript bundler designed for React Native environments. It functions as a system for resolving dependencies, transforming source code, and packaging JavaScript and assets into bundles for execution. The project includes a development bundler server that hosts assets via HTTP and provides hot module replacement. It features a module resolver that handles platform-specific file extensions and a source code transformer that converts code into tree structures for optimization and minification. The toolset covers programmatic bundle generation, source map creation, and file system c
Provides a transformation pipeline that converts source code into tree structures for optimization and minification.
browserify-handbook 是一份关于 Browserify 的综合文档指南,Browserify 是一个 CommonJS 模块打包器和 JavaScript 构建工具。它解释了如何将 Node.js 风格的模块编译为单个 JavaScript 文件,以便在 Web 浏览器中执行。 该指南涵盖了通用模块定义(UMD)包的生成,这些包可在 Node、AMD 和浏览器环境中运行。它还详细介绍了如何使用与浏览器兼容的 Polyfill 来处理 Node.js 内置模块,以确保跨平台兼容性。 该手册描述了源代码转换、前端构建自动化和 Web 应用调试的功能。它还涵盖了包大小优化、入口点拆分以及 Source Map 的生成。
Transforms JavaScript source code through compilation pipelines to support custom syntax or languages.
Sweet-core 是一个 JavaScript 源码到源码(source-to-source)的编译器和 Lisp 风格的宏系统。它作为一个语法转换器,通过允许在编译过程中定义自定义语法和运算符来扩展 JavaScript。 该系统提供了一个框架,用于通过卫生的(hygienic)、递归的宏展开和创建新的语言结构来构建领域特定语言(DSL)。它的独特之处在于支持具有可配置结合性和优先级的自定义运算符定义,以控制表达式的求值。 该编译器包含一个专门的模块系统,用于管理编译时依赖项和运行时辅助工具的集成。其内部架构涵盖了抽象语法树(AST)转换、语法生成匹配和语法对象生成,以确保词法卫生。 提供了一个命令行接口,用于将源文件转换为标准的 JavaScript 输出文件或目录。
Acts as a JavaScript source transformer that creates new language constructs and operators via macros.
这是一个抽象语法树(AST)转换工具套件,旨在自动化将源代码迁移到较新版本 React 的过程。它提供了一组脚本,以编程方式修改代码结构,用现代等效项替换已弃用的 API 和组件模式。 该工具包专门用于使用箭头函数和属性解构将类组件转换为函数组件。它还包括用于现代化 JSX 语法、将已弃用的生命周期方法更新为稳定版本以及将遗留的基于字符串的引用迁移到回调引用的实用程序。 其他功能涵盖了导入模式的优化、冗余导入的删除以及包引用和模块路径的更新。该项目使用规则驱动的源代码迁移和模式匹配语法分析,以确保转换在大型代码库中保持一致。
Provides tools for programmatically transforming JavaScript source code through AST manipulation pipelines.
Koala 是一个用于管理 Web 资源预处理器编译、转译和后台监控的图形用户界面。它作为一个构建工具,将 Less、Sass 和 CoffeeScript 文件转换为浏览器兼容的 CSS 和 JavaScript。 该应用程序具有用于控制转换过程的可视化界面,无需命令行交互。它集成了一个后台文件监视器,当检测到本地文件系统发生更改时,会自动实时重新编译源文件。 该工具提供了用于管理全局和项目特定编译设置的实用程序,包括用于压缩编译代码的后处理压缩功能。它还包含一个捕获编译器输出以检测并报告语法错误的通知系统。
Transforming CoffeeScript into executable JavaScript while detecting syntax errors and managing output configurations.
Regenerator is a JavaScript transpiler and source code processor designed to enable the use of modern ECMAScript generator functions and asynchronous iteration syntax in environments that lack native support. It functions as a build-time tool that converts advanced language features into standard ES5 code, ensuring that complex asynchronous control flow patterns execute reliably across diverse browser versions and legacy runtimes. The tool operates by performing structural transformations on source code, specifically rewriting generator syntax into a flat switch-case state machine. To maintai
Performs structural transformations on code to enable advanced language features in environments lacking native support.