Tagged articles
152 articles
Page 2 of 2
ByteFE
ByteFE
Mar 30, 2021 · Frontend Development

Understanding Babel: Core Functions, AST, Polyfills, and Presets

This article explains Babel's role as a fundamental JavaScript compiler, detailing its parsing‑transform‑printing pipeline, AST structure, core‑js polyfills, preset‑env configuration, and runtime helpers, providing frontend developers with a comprehensive guide to mastering Babel's ecosystem and optimizing bundle size.

ASTJavaScriptPolyfill
0 likes · 13 min read
Understanding Babel: Core Functions, AST, Polyfills, and Presets
Sohu Tech Products
Sohu Tech Products
Mar 10, 2021 · Frontend Development

Applying jscodeshift Codemods for Large‑Scale Frontend Refactoring

This article explains how to use codemod tools, especially jscodeshift, to automatically refactor a growing frontend codebase by replacing a monolithic constants package with per‑constant imports, covering the underlying AST concepts, step‑by‑step script creation, and practical CLI usage.

ASTcodemodfrontend
0 likes · 11 min read
Applying jscodeshift Codemods for Large‑Scale Frontend Refactoring
ByteFE
ByteFE
Mar 2, 2021 · Frontend Development

Using jscodeshift Codemod to Refactor Large‑Scale Frontend Projects

This article explains how to create and run a jscodeshift codemod that transforms imports of a bulky constants package into per‑constant imports, reducing bundle size in large frontend codebases by leveraging AST parsing, AST Explorer, and automated code modifications.

ASTcodemodjscodeshift
0 likes · 16 min read
Using jscodeshift Codemod to Refactor Large‑Scale Frontend Projects
Aotu Lab
Aotu Lab
Feb 2, 2021 · Frontend Development

How EOS-JS Revolutionizes Frontend Code Quality with AST‑Based Scanning

This article examines the challenges of enforcing JavaScript coding standards in large‑scale frontend projects and presents EOS-JS, an AST‑driven static analysis tool that offers modular scanning, automatic fixes, multi‑scenario rule sets, seamless CI integration, and visualized data reporting to improve code quality and maintainability.

ASTEOS-JSJavaScript
0 likes · 12 min read
How EOS-JS Revolutionizes Frontend Code Quality with AST‑Based Scanning
JD Cloud Developers
JD Cloud Developers
Feb 1, 2021 · Frontend Development

How EOS-JS Revolutionizes JavaScript Code Quality with AST‑Based Scanning

This article explains how EOS‑JS, a plugin‑based static analysis tool, uses AST pattern matching to enforce JavaScript coding standards across large front‑end teams, offering automatic fixes, multi‑scenario rule sets, seamless integration, and visualized data statistics to improve code quality and maintenance efficiency.

ASTEOS-JSJavaScript
0 likes · 11 min read
How EOS-JS Revolutionizes JavaScript Code Quality with AST‑Based Scanning
JD Retail Technology
JD Retail Technology
Jan 27, 2021 · Frontend Development

EOS-JS: A Plugin‑Based JavaScript Static Analysis Engine for Frontend Code Standardization

The article introduces EOS‑JS, a plugin‑driven JavaScript static analysis platform that leverages AST pattern matching to detect, suggest fixes, and automatically repair code‑style violations across large‑scale frontend projects, detailing its architecture, core modules, dynamic configuration, automation, and data‑visualization capabilities.

ASTEOS-JSTooling
0 likes · 12 min read
EOS-JS: A Plugin‑Based JavaScript Static Analysis Engine for Frontend Code Standardization
Beike Product & Technology
Beike Product & Technology
Jan 21, 2021 · Mobile Development

JAYE 2.0: An AST‑Based Dynamic Loading Framework for Flutter

This article describes how the JAYE 2.0 project at Beike leverages abstract syntax tree (AST) generation, a custom runtime interpreter, and Dart VM execution to achieve high‑performance, hot‑fixable dynamic updates for Flutter applications, addressing packaging, hot‑reload, and scalability challenges.

ASTDynamic LoadingFlutter
0 likes · 13 min read
JAYE 2.0: An AST‑Based Dynamic Loading Framework for Flutter
phodal
phodal
Jan 11, 2021 · Cloud Native

Can Cloud‑Native Development Redefine Code Architecture? Introducing Water

The article explores Tencent's Nocalhost cloud‑native development tool and proposes a new "Water" code architecture that stores programs as language‑agnostic intermediate representations like AST, enabling real‑time, language‑independent development environments and finer‑grained permission control.

ASTDevelopment EnvironmentPermissions
0 likes · 13 min read
Can Cloud‑Native Development Redefine Code Architecture? Introducing Water
Xianyu Technology
Xianyu Technology
Jan 5, 2021 · Frontend Development

React JSX to Svelte AST Conversion Overview

The article outlines a tool that converts React JSX into a Svelte abstract syntax tree by stripping framework‑specific features, mapping elements, attributes, mustache templates and function JSX, translating control structures, providing a compatibility “svelte‑hooks” layer, handling ECMA‑AST differences and CSS, noting larger bundle size but potential for further static compilation and optimization.

ASTJSXSvelte
0 likes · 8 min read
React JSX to Svelte AST Conversion Overview
JD Tech Talk
JD Tech Talk
Dec 16, 2020 · Databases

Understanding SQL Parser and Its Implementation in Apache ShardingSphere

This article explains the fundamentals of SQL parsing, covering lexer and parser mechanisms, context‑free grammar concepts, LL(1) and LR(1) parsing techniques, and demonstrates how Apache ShardingSphere implements a flexible, multi‑dialect SQL parser with features such as formatting, parameterization, and extensibility.

ASTParserShardingSphere
0 likes · 11 min read
Understanding SQL Parser and Its Implementation in Apache ShardingSphere
phodal
phodal
Dec 7, 2020 · Frontend Development

How to Build an Automated Front‑End Refactoring Tool for Vue Projects

This article outlines a step‑by‑step approach to creating a front‑end automated refactoring tool, covering AST parsing, defining code smells, detection, suggested fixes, implementation of codemods, and practical examples for Vue, JavaScript, TypeScript, CSS, and framework‑specific utilities.

ASTVueautomation
0 likes · 6 min read
How to Build an Automated Front‑End Refactoring Tool for Vue Projects
Taobao Frontend Technology
Taobao Frontend Technology
Nov 23, 2020 · Frontend Development

How Frontend Teams Tame Financial Loss Risks with Static Scans and UI Test Automation

This article details the evolution of front‑end asset‑loss (资损) prevention at Alibaba, from manual pre‑play rehearsals to productized solutions such as front‑back reconciliation, AST‑based static code scanning with Babel, and record‑playback UI test scanning, highlighting challenges, implementations, and future directions.

ASTUI testingbabel
0 likes · 21 min read
How Frontend Teams Tame Financial Loss Risks with Static Scans and UI Test Automation
Beike Product & Technology
Beike Product & Technology
Oct 14, 2020 · Mobile Development

Implementing Aspect‑Oriented Programming in Flutter with AspectD

This article explains how the open‑source AspectD library enables Aspect‑Oriented Programming in Flutter by modifying the app.dill intermediate file, covering Flutter's compilation process, AST manipulation, point‑cut designs, code conversion flow, and practical use cases such as performance monitoring and page‑view tracking.

ASTAspectDCode Injection
0 likes · 11 min read
Implementing Aspect‑Oriented Programming in Flutter with AspectD
WecTeam
WecTeam
Aug 27, 2020 · Frontend Development

How to Reconstruct Vue Templates from Compiled JavaScript

This article explains how Vue single‑file components are compiled into render functions and staticRenderFns, and provides a step‑by‑step method to reverse‑engineer the compiled JavaScript back into the original template, style, and script sections using AST parsing, transformation, and code generation techniques.

ASTVuefrontend
0 likes · 29 min read
How to Reconstruct Vue Templates from Compiled JavaScript
WecTeam
WecTeam
Jul 10, 2020 · Frontend Development

Boost Development with Flutter Dynamics, ES11 Features, and AST Code Scanning

This week’s WecTeam frontend roundup covers Meituan’s Flutter dynamic system (Flap) that unifies DSL and runtime for faster releases, the official launch of ES2020 (ES11) adding ten new JavaScript features, and a low‑cost AST‑based code‑scanning technique for detecting financial‑loss risks in source code.

ASTCode ScanningES2020
0 likes · 3 min read
Boost Development with Flutter Dynamics, ES11 Features, and AST Code Scanning
JD Retail Technology
JD Retail Technology
Jul 8, 2020 · Frontend Development

Logical Visualization: From Visual Programming to Automated Code Generation

This article explains how visualizing logical processes accelerates information comprehension, describes visual programming concepts, contrasts classic and visual development models, outlines the advantages of logic visualization, and details the implementation steps—including node operations, AST generation, and code synthesis—supported by illustrative code snippets.

ASTVisual Programmingfrontend development
0 likes · 10 min read
Logical Visualization: From Visual Programming to Automated Code Generation
Taobao Frontend Technology
Taobao Frontend Technology
Jul 3, 2020 · Frontend Development

Using AST Code Scanning to Stop Financial Losses in Frontend 618 Events

This article explains how the Taobao front‑end team leveraged Abstract Syntax Tree (AST) analysis with Babel to automatically detect risky code patterns—such as default price assignments, improper calculations, and hard‑coded promotional messages—during the 618 promotion, thereby preventing financial loss and public backlash.

ASTCode Scanningbabel
0 likes · 16 min read
Using AST Code Scanning to Stop Financial Losses in Frontend 618 Events
Sohu Tech Products
Sohu Tech Products
Jun 24, 2020 · Frontend Development

Understanding Abstract Syntax Trees (AST) and Their Applications in JavaScript Tooling

This article explains what an Abstract Syntax Tree (AST) is, how JavaScript code is parsed into ASTs, the processes of lexical and syntactic analysis, and demonstrates practical AST manipulation using tools like Esprima, Estraverse, Escodegen, and Babel to transform code such as renaming functions, converting arrow functions, and implementing on‑demand imports.

ASTbabelcode transformation
0 likes · 31 min read
Understanding Abstract Syntax Trees (AST) and Their Applications in JavaScript Tooling
58 Tech
58 Tech
May 18, 2020 · Frontend Development

Automating React 15 to React 16 Upgrade Using Abstract Syntax Tree (AST)

This article presents a practical solution for automatically upgrading legacy React 15 projects to React 16 by generating, modifying, and re‑generating code through Abstract Syntax Tree (AST) transformations, detailing the required steps, common pitfalls, and broader applications of AST in frontend engineering.

ASTbabelcode transformation
0 likes · 10 min read
Automating React 15 to React 16 Upgrade Using Abstract Syntax Tree (AST)
政采云技术
政采云技术
Mar 1, 2020 · Frontend Development

Understanding Babel: Core Principles, Configuration, Plugins, and Polyfills for Frontend Development

This comprehensive guide explores the core principles and practical applications of Babel, a JavaScript compiler essential for modern frontend development, detailing its AST-based transformation process, configuration methods, plugin and preset ecosystems, polyfill strategies, and runtime optimization techniques to ensure cross-browser compatibility and efficient code compilation.

ASTFrontend toolingJavaScript Compiler
0 likes · 17 min read
Understanding Babel: Core Principles, Configuration, Plugins, and Polyfills for Frontend Development
Qunar Tech Salon
Qunar Tech Salon
Jan 14, 2020 · Frontend Development

Design, Implementation, and Testing of a Babel Console‑Transform Plugin

This article explains how to create a Babel plugin that removes console calls in production builds while extending console methods with styled output and source location information in development, covering installation, configuration, AST manipulation, option validation, and comprehensive testing using TypeScript, ts‑mocha, and chai.

ASTJavaScriptTypeScript
0 likes · 11 min read
Design, Implementation, and Testing of a Babel Console‑Transform Plugin
Amap Tech
Amap Tech
Dec 6, 2019 · Backend Development

Full-Chain Dependency Analysis System for Gaode App: Architecture, Implementation, and Use Cases

The Gaode App full‑chain dependency analysis system parses source code across JS, C++, Android and iOS into ASTs, extracts forward and reverse dependencies, stores them for GraphQL queries, and uses the data to guide regression testing, API deprecation, migration trends, and package‑size optimization, improving codebase governance.

ASTDependency AnalysisGraphQL
0 likes · 12 min read
Full-Chain Dependency Analysis System for Gaode App: Architecture, Implementation, and Use Cases
Amap Tech
Amap Tech
Nov 29, 2019 · Frontend Development

JavaScript Bundle Dependency Analysis and Graph Construction

The article describes how to enforce architectural rules and assess change impact in a modularized JavaScript application by extracting import statements via AST, building a file‑map, constructing a cycle‑aware dependency graph with indexed nodes, and traversing it with a visited‑stack to support forward and reverse analysis across business and public bundles.

ASTJavaScriptTypeScript
0 likes · 12 min read
JavaScript Bundle Dependency Analysis and Graph Construction
WecTeam
WecTeam
Oct 29, 2019 · Fundamentals

How to Build a Custom Arithmetic Parser with AST and Vector Extensions in JavaScript

This tutorial walks through constructing a JavaScript arithmetic parser using a finite‑state lexer, a stack‑based parser that builds an abstract syntax tree (AST), and an evaluator that supports numbers, operators, parentheses, vectors, and custom symbols like @rot and @dot, complete with visual demos.

ASTJavaScriptParser
0 likes · 23 min read
How to Build a Custom Arithmetic Parser with AST and Vector Extensions in JavaScript
WecTeam
WecTeam
Oct 24, 2019 · Fundamentals

How to Build a JavaScript Lexer for Arithmetic Expressions Using a Finite State Machine

This article explains how to implement a lexical analyzer in JavaScript that tokenizes simple arithmetic expressions by using a finite state machine, covering the conversion from infix notation to an abstract syntax tree, token definitions, state transitions, and complete source code examples.

ASTFinite State MachineJavaScript
0 likes · 9 min read
How to Build a JavaScript Lexer for Arithmetic Expressions Using a Finite State Machine
WecTeam
WecTeam
Oct 17, 2019 · Fundamentals

How to Build a Simple HTML AST Parser in JavaScript

This article explains how to transform raw HTML strings into a structured abstract syntax tree (AST) using JavaScript regular expressions and a step‑by‑step parsing algorithm, covering tag, attribute, and text node handling, with a complete example implementation of a lightweight AST parser.

ASTJavaScriptcompiler fundamentals
0 likes · 16 min read
How to Build a Simple HTML AST Parser in JavaScript
政采云技术
政采云技术
Sep 15, 2019 · Frontend Development

Understanding Babel: How It Works and How to Write a Babel Plugin

This article explains the inner workings of Babel, the JavaScript compiler, outlines what syntax it transpiles versus what requires polyfills, describes its three compilation stages, demonstrates AST generation and tokenization, and provides step‑by‑step examples of creating simple Babel plugins for code transformation.

ASTJavaScriptPlugin Development
0 likes · 13 min read
Understanding Babel: How It Works and How to Write a Babel Plugin
WecTeam
WecTeam
Sep 6, 2019 · Frontend Development

Mastering AST: Transform JavaScript Code with Babel and Esprima

This article explains how to use AST in JavaScript by introducing three essential components—a parser, a traverser, and a code generator—showcasing practical examples with esprima and Babel to parse, modify, and regenerate code, and exploring advanced use cases such as removing console statements, variable obfuscation, arrow‑function conversion, tree‑shaking, and generating SVG flowcharts, while also highlighting AST applications in other languages.

ASTAST TraversalEsprima
0 likes · 11 min read
Mastering AST: Transform JavaScript Code with Babel and Esprima
WecTeam
WecTeam
Sep 3, 2019 · Frontend Development

Why Understanding JavaScript ASTs Is Essential for Modern Frontend Development

Understanding JavaScript's Abstract Syntax Tree (AST) is crucial for modern code analysis, enabling tools like Babel, ESLint, and Webpack to parse, transform, and generate code beyond regex, with a clear process from lexical analysis to syntax analysis and standardized specifications such as ESTree.

ASTJavaScriptcode analysis
0 likes · 9 min read
Why Understanding JavaScript ASTs Is Essential for Modern Frontend Development
Xianyu Technology
Xianyu Technology
Aug 22, 2019 · Fundamentals

Metaprogramming in Dart: AST Manipulation with Dill

Metaprogramming in Dart leverages the Dill intermediate representation and its abstract syntax tree to programmatically generate, transform, or inject code at compile time, enabling features such as custom serialization, AOP hooks, and reflection‑like capabilities without runtime overhead.

ASTDARTcode-generation
0 likes · 8 min read
Metaprogramming in Dart: AST Manipulation with Dill
MaoDou Frontend Team
MaoDou Frontend Team
Apr 28, 2019 · Frontend Development

How JavaScript ASTs Power Babel, UglifyJS, and Code Transformations

This article explains what an Abstract Syntax Tree (AST) is, its role in JavaScript tooling such as Babel, UglifyJS, and type checking, details the lexical and syntactic analysis stages of AST generation, and demonstrates a practical Babel plugin example that modifies console output using visitors.

ASTJavaScriptVisitor Pattern
0 likes · 6 min read
How JavaScript ASTs Power Babel, UglifyJS, and Code Transformations
Xianyu Technology
Xianyu Technology
Mar 20, 2019 · Frontend Development

Vue to React Component Conversion Using Babel AST

The article describes a pipeline that converts a Vue component into a React component by parsing the template, script and style with vue‑template‑compiler and Babel, traversing the AST to map Vue data, props, computed, methods and lifecycle hooks to React state, defaultProps and lifecycle methods, and generating JSX from directives such as v‑if, v‑for and event bindings, thereby reducing rewrite effort and supporting targets.

ASTComponent ConversionReact
0 likes · 12 min read
Vue to React Component Conversion Using Babel AST
JD Retail Technology
JD Retail Technology
Dec 24, 2018 · Mobile Development

Introducing ARES Cross‑Platform Mobile Development Solution and JDReact‑to‑WeChat Mini‑Program Conversion Tool

The article presents JD.com's ARES cross‑platform mobile development suite, its five product modules, and the ARES Mini‑Program Conversion Tool that uses AST manipulation and a custom mini‑React runtime to transform React Native code into WeChat Mini‑Program code, covering installation, usage, component alignment, third‑party integration, routing, animation, and conversion constraints.

ASTMobilereact-native
0 likes · 11 min read
Introducing ARES Cross‑Platform Mobile Development Solution and JDReact‑to‑WeChat Mini‑Program Conversion Tool
JD Tech
JD Tech
Dec 24, 2018 · Mobile Development

Introducing ARES Cross‑Platform Mobile Development Solution and Mini‑Program Conversion Tool

The article presents ARES, JD.com's cross‑platform mobile application framework comprising Engines, Websites, Studio, Store, and Console, and details its mini‑program conversion tool that bridges ARES Engines with WeChat mini‑programs through command‑line usage, AST manipulation, runtime integration, component alignment, third‑party library support, routing, animation, and conversion constraints.

ASTJavaScriptReact Native
0 likes · 13 min read
Introducing ARES Cross‑Platform Mobile Development Solution and Mini‑Program Conversion Tool
Qunar Tech Salon
Qunar Tech Salon
Dec 13, 2018 · Frontend Development

Understanding Babel: History, Usage, and Custom Plugin Development

This article introduces Babel as a popular JavaScript compiler, explains its origin, demonstrates basic installation and configuration, shows how arrow functions are transformed, and guides readers through creating a simple custom Babel plugin using visitors and AST manipulation.

ASTJavaScriptbabel
0 likes · 10 min read
Understanding Babel: History, Usage, and Custom Plugin Development
Meituan Technology Team
Meituan Technology Team
Nov 22, 2018 · Mobile Development

Hades: A Mobile Static Analysis Framework for Large-Scale iOS Projects

Hades is a self‑developed static‑analysis framework for Meituan‑Dianping’s large‑scale iOS codebases that leverages Clang/LLVM to build a high‑level semantic model, enabling global, incremental checks, custom lint tools, CI integration, and efficient code‑quality maintenance across massive projects.

ASTClangFramework
0 likes · 19 min read
Hades: A Mobile Static Analysis Framework for Large-Scale iOS Projects
JD Tech
JD Tech
Jul 12, 2018 · Frontend Development

JDReact Multi‑Platform Framework and Its Mini‑Program Bidirectional Conversion Engine

This article introduces JDReact, a multi‑end integration framework used by JD.com, and details the design, principles, and usage of its bidirectional mini‑program conversion tool that enables low‑cost migration between WeChat mini‑programs and JDReact applications across various development scenarios.

ASTCodeConversionCrossPlatform
0 likes · 16 min read
JDReact Multi‑Platform Framework and Its Mini‑Program Bidirectional Conversion Engine
Node Underground
Node Underground
Nov 30, 2017 · Frontend Development

How JavaScript Parsers Boost Performance: Eager vs Lazy Parsing Explained

Understanding JavaScript parsers—such as Esprima, Acorn, and Babylon—reveals how they generate ASTs, validate syntax, prioritize operators, and more, while distinguishing eager from lazy parsing modes in V8, enabling developers to optimize code performance through tools like optimize-js.

ASTParserfrontend development
0 likes · 4 min read
How JavaScript Parsers Boost Performance: Eager vs Lazy Parsing Explained
Baidu Waimai Technology Team
Baidu Waimai Technology Team
Aug 1, 2017 · Frontend Development

Comprehensive Guide to Babel: Basics, Configuration, and Plugin Development

This article provides a thorough overview of Babel, covering its core concepts, installation and configuration methods (including Webpack, fis3, command‑line, and programmatic usage), preset and plugin options, the compilation pipeline, AST fundamentals, and step‑by‑step instructions for creating and testing custom Babel plugins.

ASTPlugin Developmentbabel
0 likes · 13 min read
Comprehensive Guide to Babel: Basics, Configuration, and Plugin Development
MaGe Linux Operations
MaGe Linux Operations
Jul 21, 2017 · Information Security

Detecting Python Injection Vulnerabilities with AST Analysis

This article explains how Python injection flaws—such as OS command, code, SQL, and arbitrary file download attacks—can be identified by analyzing abstract syntax trees, tracking controllable parameters, and implementing static checks to flag dangerous function calls.

ASTPythoninjection
0 likes · 10 min read
Detecting Python Injection Vulnerabilities with AST Analysis
Meituan Technology Team
Meituan Technology Team
Mar 9, 2017 · Mobile Development

Enhancing Android Lint: HashMap Detection with JDK 7 Generics and Fixing Retrolambda Toast False Positives

This article explains how Meituan’s Android Lint was extended to reliably detect HashMap usage under JDK 7 generics—even when declarations and assignments are separated—by leveraging JavaContext.getType, and how a false‑positive Toast‑in‑lambda bug caused by Retrolambda was eliminated through explicit LambdaExpression checks and reflective issue‑registry replacement.

ASTAndroid LintHashMap detection
0 likes · 13 min read
Enhancing Android Lint: HashMap Detection with JDK 7 Generics and Fixing Retrolambda Toast False Positives
Taobao Frontend Technology
Taobao Frontend Technology
Sep 29, 2016 · Frontend Development

Mastering Babel Plugins: From AST Basics to Custom Transformations

This article explains how Babel parses ES6 code into an AST, traverses and modifies nodes using visitors and paths, and demonstrates a practical plugin that replaces a custom abs function with Math.abs, providing a solid foundation for building advanced JavaScript transformations.

ASTJavaScriptPlugin Development
0 likes · 9 min read
Mastering Babel Plugins: From AST Basics to Custom Transformations
21CTO
21CTO
Apr 19, 2016 · Backend Development

Build Your Own Template Engine in Python and JavaScript – A Step‑by‑Step Guide

This article walks through the fundamentals of creating a tiny template engine, explaining how templates are split into text, variables and blocks, how delimiters are parsed, how an abstract syntax tree is built, and how both Python and JavaScript can render the template using eval or Function constructors.

ASTJavaScriptPython
0 likes · 8 min read
Build Your Own Template Engine in Python and JavaScript – A Step‑by‑Step Guide
21CTO
21CTO
Feb 19, 2016 · Fundamentals

How to Build a Simple Perl Compiler: Parsing, AST, and Code Generation

This article explains how to create a small language compiler in Perl by using Parse::RecDescent or Parse::Yapp for parsing, representing code with Moose‑based AST nodes, and generating output with Perl or Template Toolkit, while discussing performance trade‑offs and Perl 6 prospects.

ASTCompiler ConstructionMoose
0 likes · 5 min read
How to Build a Simple Perl Compiler: Parsing, AST, and Code Generation