This article mainly summarizes how to solve some practical development problems in the actual development project of VUE. You may think it is simple, but...
A decorator is a class-related syntax used to annotate or modify classes and class methods. Since the print function returns undefined, Foo is still Foo...
This week's close look at some of the webpack4.0 changes and what typescript should do to take advantage of all of webpack4.0's features. Parcel has...
Webpack4 has been out for a while, and in my practice, I've found that many project configurations that work well under WebPack3 crash when upgraded...
This article from the overall introduction of Babel plug-in writing process, easy to have an overall understanding of Babel, by providing sample code for you...
Convert es6 syntax to a lower version file, easy for browser access 1: First create a workspace, the following build two example files,home and search...
This article mainly introduces the Babel compilation problem encountered by the author when debugging the local package with NPM Link, and the related cause analysis.
What's a Babel? In the official Babel document, the syntax transformation of Babel is described as follows. JS source transformation adds missing features to the...
Speaking of AST grammar, many front-end friends are not unfamiliar, but the real use is very few, this article simply summarizes my own learning and...
Babel's process: parse - transform - generate. For example, when we are reading a sentence, we also do participles, for example, "It's a beautiful day,"...
The difference between compilation and translation, why the front-end needs translators, and what translators are available. Babel, typescript, terser, prettier, postCSS, SWC, etc. A comprehensive...
Tree -shaking WebPack2 release, announced support for tree-shaking, Webpack 3 release, support for scope improvement, generated smaller bundle files. Before we upgrade WebPack, we are...
In the actual development process, for various reasons, there are often some variables that are not really used after they are declared, resulting in some...
The content of the super-tiny-compiler/super-tiny compiler is extracted from the super-tiny-compiler-cn. The meaning of the compiler is to read the super-tiny-compiler-cn first. Parsing converts the...
React projects often encounter entire pages that suddenly go blank. This problem is most likely caused by an exception thrown by the component render method...
Thanks to Babel's powerful translation capabilities, we no longer have to worry about project compatibility. But Babel isn't just a tool to help us deal...
The most comprehensive and detailed introductory Babel cheat sheet ever. Babel7 provides a step-by-step introduction to optimal configuration, package resolution under Packages, and finally a...