magic-string-extra @Antfu7
# 今日句子
# 原文
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) 库的额外扩展工具库;
Last Updated: 3/1/2022, 2:44:32 PM