Allen Yu Allen Yu
Home
  • 前端文章

    • JavaScript
  • 学习笔记

    • 《TypeScript入门教程》
GitHub (opens new window)
Home
  • 前端文章

    • JavaScript
  • 学习笔记

    • 《TypeScript入门教程》
GitHub (opens new window)
  • Statement

  • Github

  • Twitter

    • Unocss VSCode extension @wheatjs
    • Unocss soo composable @Antfu7
    • sponsor-kit @Antfu7
    • vite-plugin-inspect @Antfu7
    • parallel asynchronous @SimonHoiberg
    • magic-string-extra @Antfu7
      • 今日句子
      • 原文
      • 翻译
      • 单词
      • 技术 - magic-string-extra
    • new-mdn @MozDevNet
    • podcasts-list @antfu7
    • test-in-javascript @antfu7
    • Widthout screen MacBook Pro @duanrui1205
    • File Nesting Config For VSCode @antfu7
    • VueUse Released V8 @VueUse
    • TypeScript Tip Record @SimonHoiberg
    • Handle Time Traveling
    • Google 搜索小技巧
  • English
  • Twitter
2022-03-01
目录

magic-string-extra @Antfu7

# 今日句子

今日Twitter

# 原文

Every time I rewrite transformers to get the source map support, it would be quite a painful experience as you can't use RegExp with `.replace` on magic-string.
Well, not anymore 😃
> 查看原文 (opens new window)

# 翻译

为了支持 source map,每次写转换器的时候,都是相当痛苦的经历,因为你不能在模板字符串,也就是 `` 包裹的字符串中使用 `.replace` 正则。
但是,现在这种痛苦不会再有了,因为有了 magic-string-extra (opens new window)

# 单词

  • transformers: n.促使变化的人或物
  • painful:adj.疼痛的;引起疼痛的;令人痛苦的;困难的;
  • experience:
    • n.经历,往事;经验,阅历;传统;
    • v.经历,遭遇;体会到,感受到;
  • extra:
    • adj.额外的;另外收费的;
    • n.另收费的事物;临时演员;附加分;号外;
    • adv.额外;特别;格外;

# 技术 - magic-string-extra

magic-string-extra (opens new window) 是 magic-string (opens new window) 库的额外扩展工具库;

#Twitter
Last Updated: 3/1/2022, 2:44:32 PM
parallel asynchronous @SimonHoiberg
new-mdn @MozDevNet

← parallel asynchronous @SimonHoiberg new-mdn @MozDevNet→

最近更新
01
4 月第 2 周总结
04-17
02
工具类型
04-01
03
Google 搜索小技巧
03-28
更多文章>
Theme by Vdoing | Copyright © 2018-2022 Allen Yu
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式