Tag

tapable

0 views collected around this technical thread.

Tencent Cloud Developer
Tencent Cloud Developer
Feb 9, 2022 · Frontend Development

Webpack Build Process, Tapable Plugin System, and a Simple Bundler Implementation

The article walks through Webpack’s bundling workflow, explains Tapable’s hook system—including sync, async, and interceptor mechanisms—and demonstrates a minimal hand‑written bundler that parses an entry file, builds a dependency graph, transforms code, and emits a self‑executing bundle, illustrating core concepts.

Bundlerbuild processjavascript
0 likes · 19 min read
Webpack Build Process, Tapable Plugin System, and a Simple Bundler Implementation
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.

BabelFrontend Developmentbuild-tools
0 likes · 13 min read
Mastering Plugin Architecture: Build Extensible Babel and Webpack Plugins
ByteDance Dali Intelligent Technology Team
ByteDance Dali Intelligent Technology Team
Jun 7, 2021 · Frontend Development

Understanding Webpack 5 Compilation Process and Tapable Plugin System

This article explains the internal compilation mechanism of webpack 5.11.0, covering Tapable’s event system, the Compiler and Compilation lifecycle, module creation, parsing, resolving, rule compilation, generators, and tree‑shaking, with practical code examples illustrating how plugins and hooks operate.

CompilationCompilermodule-factory
0 likes · 13 min read
Understanding Webpack 5 Compilation Process and Tapable Plugin System
政采云技术
政采云技术
Jun 1, 2021 · Frontend Development

Hands‑On Introduction to Writing a Webpack Plugin

This article provides a step‑by‑step guide to understanding Webpack fundamentals, the role of plugins, hook mechanisms, and a complete example of creating a custom plugin that merges route files into a unified router configuration for a large React project.

Pluginbuild-toolfrontend
0 likes · 18 min read
Hands‑On Introduction to Writing a Webpack Plugin
Beike Product & Technology
Beike Product & Technology
Mar 24, 2021 · Frontend Development

Understanding Tapable: Hooks and Flow Control in Webpack

Tapable is a flow‑control library used by webpack that implements synchronous and asynchronous hook mechanisms, enabling plugins to subscribe and publish events through a standardized interface, as demonstrated by source code analysis and generated function examples.

Flow Controlhooksjavascript
0 likes · 11 min read
Understanding Tapable: Hooks and Flow Control in Webpack
vivo Internet Technology
vivo Internet Technology
Mar 3, 2021 · Frontend Development

Understanding Tapable: Architecture, Hook Types, and Practical Applications

Tapable powers Webpack’s extensible workflow by providing a dynamic function generator and a suite of over ten hook classes—such as SyncHook, AsyncSeriesWaterfallHook, and AsyncParallelHook—that let developers compose synchronous, asynchronous, bail‑out, waterfall, and looping pipelines, illustrated by a jQuery.ajax‑style service where each request phase is modularly plugged in.

hooksjavascriptplugin-architecture
0 likes · 18 min read
Understanding Tapable: Architecture, Hook Types, and Practical Applications