Tagged articles
101 articles
Page 1 of 2
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Dec 2, 2025 · Frontend Development

Why React Introduced a Compiler to Automate Performance Optimization

React Compiler 1.0, released in 2023, automatically eliminates the need for manual useMemo, useCallback, and memo by statically analyzing code to cache computations, generate update conditions, and replace these hooks, offering a safer, more comprehensive performance boost across Vite, Webpack, Next.js, and React Native projects.

Next.jsPerformance OptimizationReact
0 likes · 7 min read
Why React Introduced a Compiler to Automate Performance Optimization
Goodme Frontend Team
Goodme Frontend Team
Apr 21, 2025 · Frontend Development

Fit @galacean/effects into a 2 MB WeChat Mini‑Program with Async Package Splitting

To overcome the 2 MB main‑package limit of WeChat mini‑programs, this guide details a step‑by‑step solution that uses @galacean/effects for stunning homepage animations, applies page and module splitting, Babel and webpack plugins, and Taro configuration to move large code into asynchronous sub‑packages.

ReactTaroWeChat Mini Program
0 likes · 17 min read
Fit @galacean/effects into a 2 MB WeChat Mini‑Program with Async Package Splitting
Sohu Tech Products
Sohu Tech Products
Feb 26, 2025 · Frontend Development

Automatically Adding Optional Chaining Operator via Babel Plugin to Prevent TypeError

An automatically applied Babel plugin scans JavaScript AST nodes and rewrites risky property accesses and logical‑AND chains into optional‑chaining expressions, letting developers prevent TypeError crashes without modifying source code, while offering include/exclude filters, optional short‑circuit optimization, and compatibility with older browsers via downstream transforms.

AST transformationJavaScriptPlugin Development
0 likes · 11 min read
Automatically Adding Optional Chaining Operator via Babel Plugin to Prevent TypeError
vivo Internet Technology
vivo Internet Technology
Jan 22, 2025 · Frontend Development

Developing a Babel Plugin to Automatically Add Optional Chaining (?.) and Prevent TypeError

The article explains how to create a custom Babel plugin that automatically transforms risky member and call expressions into optional‑chaining equivalents during bundling, using configurable include/exclude patterns and short‑circuit optimizations, thereby preventing TypeError in large JavaScript codebases while noting a modest bundle‑size increase.

JavaScriptPlugin DevelopmentTypeError Prevention
0 likes · 14 min read
Developing a Babel Plugin to Automatically Add Optional Chaining (?.) and Prevent TypeError
JavaScript
JavaScript
Nov 22, 2024 · Fundamentals

Why JavaScript Might Split into Core JS0 and JSSugar: A New Proposal

At a recent Emca TC39 meeting, a Google engineer proposed dividing JavaScript into a minimal core language (JS0) and an advanced variant (JSSugar), arguing that new language features often harm security, performance, and stability, and suggesting that higher‑level capabilities be handled by external tools like TypeScript or Babel.

JS0JSSugarJavaScript
0 likes · 2 min read
Why JavaScript Might Split into Core JS0 and JSSugar: A New Proposal
Sohu Tech Products
Sohu Tech Products
Nov 20, 2024 · Frontend Development

JavaScript Pipeline Operator: Concepts, Drawbacks of Traditional Approaches, and Practical Usage

The JavaScript pipeline operator replaces cumbersome temporary variables, nested calls, and limited method chaining by letting developers chain regular, async, or generator functions directly, improving readability and maintainability, while Babel’s proposal‑hack plugin can be installed and configured now to start using it.

JavaScriptbabelcode readability
0 likes · 3 min read
JavaScript Pipeline Operator: Concepts, Drawbacks of Traditional Approaches, and Practical Usage
Bilibili Tech
Bilibili Tech
Oct 15, 2024 · Frontend Development

AST‑Based Visual Programming for Vue SFC: Design, Implementation, and Demo

By binding a Vue single‑file component’s AST to a visual UI, this project parses templates with node‑html‑parser, transforms scripts via Babel, and processes styles with standard loaders, allowing developers to edit component properties visually, automatically regenerate synchronized source code, and preview changes, with a prototype demo and planned drag‑and‑drop, styling, state, AI, and CI/CD extensions.

ASTCode GenerationVisual Programming
0 likes · 10 min read
AST‑Based Visual Programming for Vue SFC: Design, Implementation, and Demo
DeWu Technology
DeWu Technology
Sep 4, 2024 · Frontend Development

An Overview of Babel: Architecture, Transpilation Process, and ECMAScript Standardization

Babel is a micro‑kernel JavaScript transpiler that parses source code into an AST, lets plugins and presets transform it, and generates backward‑compatible code with optional source maps, while its runtime helpers, polyfills, and close alignment with the evolving ECMAScript specification ensure modern syntax works across legacy environments.

ECMAScriptJavaScriptTranspilation
0 likes · 23 min read
An Overview of Babel: Architecture, Transpilation Process, and ECMAScript Standardization
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 24, 2024 · Frontend Development

Using click-to-react-component to Quickly Locate React Component Source Code

This article explains how to efficiently locate and edit React component source files in large projects by using the click-to-react-component tool, covering installation, demo setup, interaction shortcuts, and the underlying mechanism that maps DOM elements to source code via React fiber nodes and VSCode links.

Code navigationReactVSCode
0 likes · 9 min read
Using click-to-react-component to Quickly Locate React Component Source Code
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 16, 2024 · Frontend Development

Rax2Taro: Building a Compiler to Convert Rax Components into Taro

This article walks through the design and implementation of a compiler that automatically transforms Rax components into Taro components, covering the background, Babel‑based AST processing, import rewriting, component attribute mapping, project structure, automated end‑to‑end testing, and future enhancements.

ASTComponent ConversionRax
0 likes · 15 min read
Rax2Taro: Building a Compiler to Convert Rax Components into Taro
Goodme Frontend Team
Goodme Frontend Team
Jan 22, 2024 · Frontend Development

How to Shrink Taro Mini‑Program Bundles Below 2 MB with Smart Splitting

This article explains four practical techniques—page sub‑packaging, shared module sub‑packaging, Babel‑based import path rewriting, and image asset offloading—to reduce a Taro mini‑program’s main bundle below the 2 MB limit, detailing the underlying MiniSplitChunksPlugin implementation, configuration steps, and code snippets.

Code SplittingTarobabel
0 likes · 14 min read
How to Shrink Taro Mini‑Program Bundles Below 2 MB with Smart Splitting
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 23, 2023 · Frontend Development

How Ant Design, Arco Design, and Semi Design Package Their React Component Libraries

This article examines the directory structures, package.json entries, and build scripts of popular React component libraries—Ant Design, Arco Design, and Semi Design—explaining how they generate CommonJS, ES Module, and UMD bundles using tools like tsc, Babel, Webpack, and Gulp, and shows how to apply the same approach when creating your own library.

Component LibraryTypeScriptbabel
0 likes · 8 min read
How Ant Design, Arco Design, and Semi Design Package Their React Component Libraries
ELab Team
ELab Team
Mar 27, 2023 · Frontend Development

How SourceMaps Work: Decoding VLQ and Babel’s Generation Process

This article explains the purpose and format of JavaScript SourceMaps, details the VLQ‑based encoding of the mappings field, and walks through how tools like webpack and Babel generate SourceMaps to map transformed code back to the original source for effective debugging.

JavaScriptSourceMapVLQ
0 likes · 17 min read
How SourceMaps Work: Decoding VLQ and Babel’s Generation Process
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Dec 20, 2022 · Frontend Development

How to Slash Frontend Bundle Size: Babel, Polyfills, Tree‑Shaking & Duplicate Dependency Fixes

This article examines why bundle size matters for front‑end performance and provides a step‑by‑step guide to reducing Webpack output by optimizing Babel polyfills, leveraging @babel/preset‑env, using @babel/runtime, applying tree‑shaking, and eliminating duplicate dependencies.

Frontend OptimizationPolyfillTree Shaking
0 likes · 12 min read
How to Slash Frontend Bundle Size: Babel, Polyfills, Tree‑Shaking & Duplicate Dependency Fixes
ELab Team
ELab Team
Dec 7, 2022 · Frontend Development

Mastering AST: How Frontend Compilers Transform Code with Babel

This article explains the fundamentals of abstract syntax trees (AST) in frontend development, covering their generation, role in code transformation, and practical use of Babel plugins to instrument and modify JavaScript code, with detailed examples and code snippets.

ASTJavaScriptbabel
0 likes · 13 min read
Mastering AST: How Frontend Compilers Transform Code with Babel
Qunar Tech Salon
Qunar Tech Salon
Nov 16, 2022 · Mobile Development

Cross‑Platform Rendering of Qunar Low‑Code Platform on React Native: Architecture, Code Transformation, and Runtime Integration

This article presents a technical case study of Qunar's low‑code platform, detailing the current cross‑platform rendering challenges, the feasibility analysis of replacing H5 with React Native, the design of a Babel‑based code transformer, runtime integration, performance results, and future plans.

React Nativebabelcross-platform
0 likes · 13 min read
Cross‑Platform Rendering of Qunar Low‑Code Platform on React Native: Architecture, Code Transformation, and Runtime Integration
Huolala Tech
Huolala Tech
Nov 10, 2022 · Frontend Development

Seamlessly Migrate Taro 2.x to 3.x with Babel AST Transformations

This article explains how to upgrade Taro 2.x projects to Taro 3.x by converting source code into an AST using Babel, programmatically editing imports, configs, routers, and styles, and then generating the updated code, complete with practical code examples and migration tips.

ASTJavaScriptTaro
0 likes · 14 min read
Seamlessly Migrate Taro 2.x to 3.x with Babel AST Transformations
vivo Internet Technology
vivo Internet Technology
Oct 26, 2022 · Frontend Development

Migrating WePY Mini‑Program to UniApp: Compiler Design and Implementation

The Vivo front‑end team built a custom compiler that automatically transforms WePY mini‑program files—including templates, scripts, components, and pages—into UniApp Vue code, cutting the estimated 25‑person‑day migration to seconds, delivering a bug‑free launch and paving the way for open‑sourcing the tool.

JavaScriptUniappbabel
0 likes · 32 min read
Migrating WePY Mini‑Program to UniApp: Compiler Design and Implementation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 30, 2022 · Frontend Development

Enhanced ES‑Check Implementation with Multi‑File Detection, HTML Support, and SourceMap Parsing

This article examines existing ES‑check tools, compares community and mpx implementations, and presents a comprehensive enhanced version that supports multi‑file detection, HTML parsing, source‑map resolution, and both CLI and library usage, detailing its underlying principles, code examples, and practical advantages for frontend development.

CLICompatibilityJavaScript
0 likes · 20 min read
Enhanced ES‑Check Implementation with Multi‑File Detection, HTML Support, and SourceMap Parsing
ByteFE
ByteFE
Sep 19, 2022 · Frontend Development

Comprehensive Guide to Babel: History, Configuration, Plugins, Presets, Runtime and Webpack Integration

This article provides an in‑depth overview of Babel, covering its origins, core purpose as a JavaScript compiler, configuration file options, plugin and preset usage, runtime optimization, integration with webpack, and the underlying parsing‑transform‑generation pipeline illustrated with a simple compiler example.

JavaScriptPluginsbabel
0 likes · 30 min read
Comprehensive Guide to Babel: History, Configuration, Plugins, Presets, Runtime and Webpack Integration
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 2, 2022 · Frontend Development

How to Build a Standardized Webpack + React + TypeScript Front‑End from Scratch

This tutorial walks you through creating a production‑ready front‑end project from an empty directory using Webpack 5, React 18 and TypeScript, covering project structure, dependencies, Babel and TypeScript setup, resource handling, development environment, performance optimizations, and full configuration files.

ConfigurationESLintReact
0 likes · 26 min read
How to Build a Standardized Webpack + React + TypeScript Front‑End from Scratch
Tencent Cloud Developer
Tencent Cloud Developer
Aug 30, 2022 · Frontend Development

Comprehensive Guide to Webpack: Core Concepts, Configuration, Loaders, and Optimization

This comprehensive, step‑by‑step guide walks developers through Webpack’s core concepts, project setup, configuration files, development server with hot module replacement, essential loaders for CSS, images, Less, and Babel, plus optimization techniques such as JavaScript minification, CSS extraction, and output cleaning.

babeldev serverfrontend
0 likes · 15 min read
Comprehensive Guide to Webpack: Core Concepts, Configuration, Loaders, and Optimization
Yunxuetang Frontend Team
Yunxuetang Frontend Team
Jul 22, 2022 · Frontend Development

Explore Cutting-Edge Frontend Techniques: Babel, Flutter, CSS Animations & More

This article curates a series of front‑end insights, covering Babel fundamentals and plugin development, Flutter widget lifecycle and state management, pure‑CSS transition recreations, user‑experience considerations, practical front‑end best‑practice tips, and a discussion on Vue’s potential move away from virtual DOM, while also inviting readers to join the Cloud Academy front‑end team.

CSSFlutterbabel
0 likes · 4 min read
Explore Cutting-Edge Frontend Techniques: Babel, Flutter, CSS Animations & More
IT Services Circle
IT Services Circle
May 5, 2022 · Fundamentals

Implementing a Super Tiny Compiler: Parsing, Transforming, and Code Generation

This article walks through creating a minimal JavaScript compiler—starting from tokenizing Lisp‑style input, building an abstract syntax tree, traversing and transforming it, and finally generating equivalent C‑style code, illustrating the core parse‑transform‑generate workflow used by tools like Babel.

ASTCode GenerationJavaScript
0 likes · 13 min read
Implementing a Super Tiny Compiler: Parsing, Transforming, and Code Generation
IT Services Circle
IT Services Circle
May 1, 2022 · Frontend Development

A Comprehensive Guide to AST and Babel for JavaScript Code Transformation

This article provides an in‑depth tutorial on Abstract Syntax Trees (AST) and the Babel toolchain, covering AST fundamentals, its role in compilation, and practical examples of parsing, traversing, modifying, and generating JavaScript code using @babel/core, @babel/parser, @babel/traverse, @babel/generator, and @babel/types.

ASTJavaScriptTraversal
0 likes · 24 min read
A Comprehensive Guide to AST and Babel for JavaScript Code Transformation
ByteDance ADFE Team
ByteDance ADFE Team
Apr 14, 2022 · Frontend Development

Babel Basics: Definition, Workflow, Plugins, Presets, and Practical Usage

This article provides a comprehensive beginner-friendly guide to Babel, covering its definition as a JavaScript compiler, the parse‑transform‑generate workflow, AST concepts, core packages, plugin and preset classifications, configuration details, and step‑by‑step usage examples with code snippets.

ASTJavaScriptPlugins
0 likes · 16 min read
Babel Basics: Definition, Workflow, Plugins, Presets, and Practical Usage
Yunxuetang Frontend Team
Yunxuetang Frontend Team
Apr 8, 2022 · Frontend Development

Essential Front-End Tech Insights: SSR, Monitoring, Babel, CSS 2022 & More

This article collection explores key front‑end topics—including Vue server‑side rendering, comprehensive monitoring strategies, Babel compilation fundamentals, the latest CSS 2022 features, and decorator design patterns, and tile‑layout techniques for BI reporting—while also introducing the Cloud Classroom front‑end team.

CSSSSRbabel
0 likes · 4 min read
Essential Front-End Tech Insights: SSR, Monitoring, Babel, CSS 2022 & More
ELab Team
ELab Team
Mar 31, 2022 · Frontend Development

How Babel Transforms Modern JavaScript: A Deep Dive into Frontend Compilation

This article explains the fundamentals of compilation, compares compiled and interpreted languages, outlines the full compiler pipeline, and uses Babel as a concrete example to show how JavaScript code is parsed, transformed, and generated for broader browser compatibility.

ASTCompilationJavaScript
0 likes · 27 min read
How Babel Transforms Modern JavaScript: A Deep Dive into Frontend Compilation
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Mar 24, 2022 · Fundamentals

Unlocking JavaScript Power: A Deep Dive into AST and Babel

This article explains what an Abstract Syntax Tree (AST) is, how the ESTree specification standardizes JavaScript syntax, and how Babel parses, traverses, and transforms code using AST nodes, providing practical examples, core packages, plugin creation, and real‑world application scenarios for developers.

ASTJavaScriptbabel
0 likes · 13 min read
Unlocking JavaScript Power: A Deep Dive into AST and Babel
政采云技术
政采云技术
Mar 8, 2022 · Frontend Development

Understanding and Using Decorators in JavaScript (Frontend Development)

This article introduces JavaScript decorators, explains their relation to the decorator design pattern, shows how to configure Babel for decorator support, demonstrates class and method decorator syntax with detailed code examples, and discusses practical usage scenarios and execution order in modern front‑end projects.

ClassDecoratorbabel
0 likes · 13 min read
Understanding and Using Decorators in JavaScript (Frontend Development)
Dada Group Technology
Dada Group Technology
Jan 14, 2022 · Frontend Development

Optimizing Build and Dependency Installation for Dada's Large-Scale Frontend System

This article analyzes the slow build process of Dada's massive frontend platform, identifies bottlenecks in dependency installation and webpack compilation, and presents practical optimizations such as node_modules caching, cp command adjustments, Babel loader caching, and other webpack tweaks that reduced average build time from 600 seconds to around 100 seconds.

Build OptimizationYARNbabel
0 likes · 8 min read
Optimizing Build and Dependency Installation for Dada's Large-Scale Frontend System
Taobao Frontend Technology
Taobao Frontend Technology
Jan 6, 2022 · Frontend Development

Should You Still Transpile ES6? A Deep Dive into Browser Compatibility and Performance

This article examines how modern browsers now support most ES6 features, compares the bytecode size of native ES6 syntax versus Babel‑transpiled ES5 code across a range of language features, and explains when skipping transpilation can improve performance while still handling polyfills and runtime requirements.

Transpilationbabelbrowser compatibility
0 likes · 26 min read
Should You Still Transpile ES6? A Deep Dive into Browser Compatibility and Performance
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Dec 30, 2021 · Frontend Development

Mastering Plugin Architecture: Build Extensible Babel and Webpack Plugins

This article explains the core‑plugin architecture, outlines the roles of Core, PluginApi and Plugin, and demonstrates how to create and integrate custom plugins for Babel and Webpack, covering AST transformation, visitor merging, Tapable hooks, and practical code examples to improve extensibility and maintainability.

Plugin SystemTapablebabel
0 likes · 13 min read
Mastering Plugin Architecture: Build Extensible Babel and Webpack Plugins
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 16, 2021 · Mobile Development

Building a React Native Component Library with Lerna, Yarn Workspaces, and Automated Tooling

This tutorial walks through creating a production‑ready React Native UI component library named vant‑react‑native, covering monorepo setup with Lerna, package naming, Yarn workspaces, commit and code standards, icon generation, on‑demand loading, debugging, documentation with Dumi, CI/CD deployment, and unit testing.

Component LibraryDocumentationLerna
0 likes · 24 min read
Building a React Native Component Library with Lerna, Yarn Workspaces, and Automated Tooling
ByteDance Web Infra
ByteDance Web Infra
May 22, 2021 · Frontend Development

Understanding JSX in Vue 3: Concepts, Benefits, and Performance

This article presents a comprehensive overview of using JSX in Vue 3, covering its basic concepts, why Vue supports JSX, the changes introduced in Vue 3, practical scenarios, implementation details, and performance comparisons with the traditional template syntax.

ComponentJSXVue
0 likes · 13 min read
Understanding JSX in Vue 3: Concepts, Benefits, and Performance
ByteFE
ByteFE
May 6, 2021 · Frontend Development

Creating a Babel Macro to Import Remote Modules (importURL)

This article explains how to write a Babel macro that fetches JavaScript libraries from a URL at compile time, covering macro concepts, limitations of JavaScript macros, preparation steps, a full importURL macro implementation, AST handling, synchronous requests, and post‑processing details.

Macrosbabelnodejs
0 likes · 11 min read
Creating a Babel Macro to Import Remote Modules (importURL)
ELab Team
ELab Team
Apr 22, 2021 · Frontend Development

Unlocking JavaScript Power: How AST Drives Modern Front‑End Tools

This article explains what an Abstract Syntax Tree (AST) is, how it’s generated during lexical and syntax analysis, outlines its core structure, and demonstrates practical applications such as code transformation, linting, formatting, and custom Babel plugins with detailed code examples.

ASTJavaScriptbabel
0 likes · 16 min read
Unlocking JavaScript Power: How AST Drives Modern Front‑End Tools
Ctrip Technology
Ctrip Technology
Apr 15, 2021 · Mobile Development

Optimizing React Native Bundle Size with the CRN Bundle Analysis Platform

This article explains how to analyze and reduce React Native bundle size using tools like react-native-bundle-visualizer and the custom CRN bundle analysis platform, covering library replacements, import optimizations, code splitting, static asset handling, and reporting a typical 50% size reduction.

Code SplittingESLintMobile Development
0 likes · 19 min read
Optimizing React Native Bundle Size with the CRN Bundle Analysis Platform
Alibaba Terminal Technology
Alibaba Terminal Technology
Apr 9, 2021 · Frontend Development

Master Babel 7: Resolve Common Runtime Errors and Optimize Polyfills

This article explains why Babel 6 and Babel 7 produce typical errors such as "regeneratorRuntime is not defined" and "Cannot find module 'core-js/library/fn/**'", then walks through the roles of @babel/preset‑env, @babel/plugin‑transform‑runtime, core‑js versions, useBuiltIns options, and provides concrete configuration examples for both application and library projects.

PolyfillRuntimebabel
0 likes · 14 min read
Master Babel 7: Resolve Common Runtime Errors and Optimize Polyfills
Aotu Lab
Aotu Lab
Jan 15, 2021 · Frontend Development

How Taro Unified Multi‑Platform Development with React, Vue, and Webpack

This article chronicles the evolution of the Taro framework from its inception as a React‑based mini‑program solution to a fully open, plugin‑driven multi‑platform architecture, highlighting technical challenges, Babel‑driven JSX compilation, component model redesign, and community‑driven growth.

Multi‑Platform DevelopmentReactTaro
0 likes · 19 min read
How Taro Unified Multi‑Platform Development with React, Vue, and Webpack
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
vivo Internet Technology
vivo Internet Technology
Jul 15, 2020 · Frontend Development

Babel: JavaScript Compiler – History, Usage, and Advanced Configuration

Babel, originally 6to5, is a JavaScript compiler that transforms modern ES6+ code into browser‑compatible JavaScript using a parser, plugins, and presets like @babel/preset‑env, with configurable polyfill strategies and runtime helpers, enabling developers to target older environments via a simple CLI workflow.

CLIPolyfillTranspilation
0 likes · 21 min read
Babel: JavaScript Compiler – History, Usage, and Advanced Configuration
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
WecTeam
WecTeam
Dec 3, 2019 · Frontend Development

How to Cure Your JavaScript Hangover: Practical Front‑End Performance Fixes

This article explains why a newly rebuilt site can suffer a “JavaScript hangover,” then walks through concrete front‑end performance techniques—including tree shaking, code splitting, externalizing third‑party scripts, smaller library choices, differential serving, and reducing Babel‑generated bloat—to restore speed and improve user experience.

Code SplittingFrontend OptimizationJavaScript
0 likes · 17 min read
How to Cure Your JavaScript Hangover: Practical Front‑End Performance Fixes
Tencent Cloud Developer
Tencent Cloud Developer
Nov 29, 2019 · Frontend Development

How to Adapt a JavaScript SDK for IE9, IE8, and IE7 Compatibility

The guide shows how to modify a Webpack‑4 JavaScript SDK—adding Babel symbol handling, using transform‑runtime, employing Flash for IE9 cross‑domain requests, converting ES5 to ES3 with es3ify‑loader, configuring UglifyJs for IE8, polyfilling missing APIs, building a tiny selector engine, and testing on virtual IE7‑IE9 machines.

IE compatibilityJavaScriptPolyfill
0 likes · 21 min read
How to Adapt a JavaScript SDK for IE9, IE8, and IE7 Compatibility
Youzan Coder
Youzan Coder
Sep 25, 2019 · Frontend Development

Design and Implementation of a Front-End Integration Test Coverage Tool

The project implements a front‑end integration test coverage tool that instruments client code with a Babel plugin and server code with istanbul‑middleware, collects real‑time line/branch data via a Chrome extension and timed uploads, stores versioned results on a coverage server, and visualizes incremental coverage dashboards, providing an objective quality gate and achieving over 80 % incremental line coverage in production.

InstrumentationIstanbulNode.js
0 likes · 10 min read
Design and Implementation of a Front-End Integration Test Coverage Tool
政采云技术
政采云技术
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
GF Securities FinTech
GF Securities FinTech
Jul 5, 2019 · Frontend Development

Cut Frontend Bundle Size Using Webpack Analyzer and Babel

This article explains how to identify oversized JavaScript bundles with webpack‑bundle‑analyzer, split protobuf‑generated code into business‑specific modules, and apply Babel’s parser, traverse, types, and generator tools to automatically remove redundant commons code and restructure module patterns, dramatically reducing bundle size and improving frontend performance.

Protobufbabelbundle optimization
0 likes · 9 min read
Cut Frontend Bundle Size Using Webpack Analyzer and Babel
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
JD Retail Technology
JD Retail Technology
Mar 27, 2019 · Frontend Development

Front‑End Optimization Strategies for JD PLUS Membership Project

This article details the front‑end performance improvements applied to JD's PLUS membership platform, covering architecture migration to Gaea 4.0, on‑demand Babel polyfill loading, PWA caching, request sequencing, skeleton screens, and modern image formats such as WebP and DPG.

PWAbabelfrontend
0 likes · 19 min read
Front‑End Optimization Strategies for JD PLUS Membership Project
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 Tech
JD Tech
Feb 20, 2019 · Frontend Development

Performance Optimization Strategies for JD PLUS Membership Frontend: Architecture Upgrade, PWA, Babel Polyfill, Caching, and Image Formats

This article details the comprehensive front‑end performance improvements applied to the JD PLUS membership project, covering the migration to the Gaea4.0 webpack‑based scaffold, PWA offline caching, Babel 7 polyfill on‑demand loading, request and image optimizations, skeleton screens, and build‑time caching techniques to accelerate first‑screen rendering on mobile H5.

PWAbabelcaching
0 likes · 15 min read
Performance Optimization Strategies for JD PLUS Membership Frontend: Architecture Upgrade, PWA, Babel Polyfill, Caching, and Image Formats
UC Tech Team
UC Tech Team
Dec 21, 2018 · Frontend Development

HTM: A Zero‑Compiler JSX‑Like Syntax for JavaScript

HTM is a pure‑JavaScript library that implements a JSX‑like syntax without a compiler, offering sub‑kilobyte bundle sizes, seamless integration with React/Preact, ergonomic syntax enhancements, and a new Babel plugin that dramatically improves performance and flexibility for frontend developers.

HTMJSXJavaScript
0 likes · 4 min read
HTM: A Zero‑Compiler JSX‑Like Syntax for JavaScript
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
UC Tech Team
UC Tech Team
Oct 5, 2018 · Frontend Development

Why Create React App Should Not Compile Non‑Standard Syntax in node_modules

The article explains that compiling experimental JavaScript features like JSX or class properties inside node_modules tightly couples libraries to build tools, leading to breaking changes, coordination overhead, and prolonged upgrade pain, which is why Create React App avoids such compilation.

JavaScriptReactbabel
0 likes · 4 min read
Why Create React App Should Not Compile Non‑Standard Syntax in node_modules
UC Tech Team
UC Tech Team
Oct 3, 2018 · Frontend Development

Create React App 2.0 Released: New Features and Upgrade Guide

Create React App 2.0, launched on October 1, updates core tools like Babel, Webpack, and Jest, adds Sass, CSS Modules, SVG components, optional Service Workers, and provides a clear migration path for both new and existing projects, while supporting modern browsers and optional polyfills.

JestReactbabel
0 likes · 6 min read
Create React App 2.0 Released: New Features and Upgrade Guide
AutoHome Frontend
AutoHome Frontend
Jul 19, 2018 · Frontend Development

Why Use ECMAScript Decorators Instead of JavaScript Decorators? A Deep Dive

This article explains the distinction between ECMAScript and JavaScript decorators, walks through the TC39 proposal stages, demonstrates how to work with property descriptors, Object.defineProperty, Object.defineProperties, Object.create, and shows practical examples of method, class‑field, and class decorators using Babel.

Class FieldsECMAScriptJavaScript
0 likes · 16 min read
Why Use ECMAScript Decorators Instead of JavaScript Decorators? A Deep Dive
Qunar Tech Salon
Qunar Tech Salon
Jul 18, 2018 · Frontend Development

Converting React Class Components to Miniapp Component Calls Using Babel Plugins

This article explains how to transform React class components into WeChat Mini‑Program Component({}) calls by building a custom Babel plugin that extracts class inheritance, methods, state handling, and replaces import/export statements, while also mapping React lifecycle patterns to Mini‑App equivalents.

JavaScriptMiniappReact
0 likes · 9 min read
Converting React Class Components to Miniapp Component Calls Using Babel Plugins
Hujiang Technology
Hujiang Technology
Mar 6, 2018 · Frontend Development

The Evolution and Implementation of React Hot Loader

An in‑depth exploration of React Hot Loader’s origins, underlying HMR principles, challenges with state and DOM preservation, the development of proxy‑based solutions, React Transform, and the progression to newer versions, providing practical code examples and insights for frontend developers.

Hot LoaderJavaScriptReact
0 likes · 21 min read
The Evolution and Implementation of React Hot Loader
Architecture Digest
Architecture Digest
Aug 14, 2017 · Frontend Development

An Overview of Modern Front-End Development Workflow and Tools

This article provides a comprehensive overview of the front‑end development workflow, explaining core concepts like HTML, CSS, JavaScript, and detailing essential tools such as npm, Babel, Gulp, Webpack, and popular frameworks like React and Vue, while addressing their roles and interactions.

JavaScriptReactVue
0 likes · 8 min read
An Overview of Modern Front-End Development Workflow and Tools
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
Hujiang Technology
Hujiang Technology
Jul 5, 2017 · Frontend Development

Getting Started with TypeScript and React

This tutorial walks through setting up a TypeScript project with React, covering installation, tsconfig configuration, Webpack and Babel integration, creating a simple component, adding type declarations for third‑party modules, testing with Jest and ts‑jest, and enforcing code style with TSLint.

JestReactTSLint
0 likes · 16 min read
Getting Started with TypeScript and React
Dada Group Technology
Dada Group Technology
Apr 14, 2017 · Frontend Development

Babel Optimization: Solving Bundle Size and Performance Issues

This article explores how to optimize Babel usage to reduce bundle size and improve performance by addressing helper duplication, third-party module handling, and import optimization through transform-runtime, include patterns, and import transformation plugins.

JavaScriptTranspilationbabel
0 likes · 9 min read
Babel Optimization: Solving Bundle Size and Performance Issues
Hujiang Technology
Hujiang Technology
Apr 13, 2017 · Frontend Development

A Detailed Introduction to Webpack: Installation, Configuration, Loaders, Plugins, Lazy Loading and Vendor Chunks

This tutorial provides a comprehensive, step‑by‑step guide to Webpack, covering its purpose as a JavaScript module bundler, installation, command‑line usage, configuration files, Babel and Handlebars loaders, plugins such as html‑webpack‑plugin, lazy‑loading, vendor chunk creation, and best practices for modern front‑end development.

JavaScriptModule BundlingPlugins
0 likes · 26 min read
A Detailed Introduction to Webpack: Installation, Configuration, Loaders, Plugins, Lazy Loading and Vendor Chunks
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
Java High-Performance Architecture
Java High-Performance Architecture
Mar 23, 2016 · Frontend Development

Boost Your JavaScript with ES6: Templates, Multiline Strings, Defaults, and Destructuring

This article introduces practical ES6 features such as template literals, multiline strings, default parameters, and destructuring assignment, demonstrates how they simplify code compared to ES5, and provides a step‑by‑step guide to using Babel with Gulp for seamless ES6‑to‑ES5 conversion.

JavaScriptTemplate literalsbabel
0 likes · 4 min read
Boost Your JavaScript with ES6: Templates, Multiline Strings, Defaults, and Destructuring
CSS Magic
CSS Magic
Feb 4, 2016 · Frontend Development

How to Build a JavaScript Library with Webpack and ES6

This tutorial explains how to define a JavaScript library, set up a clean project structure, use Babel to transpile ES6, configure Webpack for development and production builds (including UMD output), add npm scripts, run Mocha/Chai tests, and manage related configuration files.

babeles6javascript library
0 likes · 11 min read
How to Build a JavaScript Library with Webpack and ES6