GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - xlintime/babel-plugin-exercize: 小册《babel插件通关秘籍》实战案例代码

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

36 Commits
36 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
exercize-acorn-plugin-guang-keyword
exercize-acorn-plugin-guang-keyword
 
 
exercize-auto-document
exercize-auto-document
 
 
exercize-auto-i18n
exercize-auto-i18n
 
 
exercize-auto-track
exercize-auto-track
 
 
exercize-babel-macro
exercize-babel-macro
 
 
exercize-babel
exercize-babel
 
 
exercize-js-interpreter
exercize-js-interpreter
 
 
exercize-linter
exercize-linter
 
 
exercize-mangle-compress
exercize-mangle-compress
 
 
exercize-module-iterator
exercize-module-iterator
 
 
exercize-parameters-insert
exercize-parameters-insert
 
 
exercize-type-checker
exercize-type-checker
 
 
.DS_Store
.DS_Store
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
qrcode.jpg
qrcode.jpg
 
 

Repository files navigation

babel-plugin-exercize

掘金小册《babel 插件通关秘籍》的案例代码:

  • 插入函数调用参数
  • 自动埋点
  • acorn 插件
  • default import 转 named import
  • 自动国际化
  • 自动生成 api 文档
  • linter
  • type checker
  • 压缩混淆
  • js 解释器
  • 模块遍历器
  • 手写简易的 babel

下载和运行

git clone https://github.com/QuarkGluonPlasma/babel-plugin-exercize

node ./exercize-linter/src/eq-lint-entry.js (或其他路径)

debug

编辑 .vscode/launch.json 配置

添加一个配置如下:

{
    "name": "exercize-auto-track/src/index.js",
    "program": "${workspaceFolder}/exercize-auto-track/src/index.js",
    "request": "launch",
    "type": "node"
}

然后点击 debug 面板的运行按钮,打断点调试

About

小册《babel插件通关秘籍》实战案例代码

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.