[Utoo Pack] Support `config.optimization.minify.extractComments`

Open
#2,009 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, rust

Research direction

Start by locating Utoo Pack's implementation of config.optimization.minify and compare its comment handling with the referenced rspack_plugin_swc_js_minimizer/src/lib.rs. Trace how antd UMD builds are processed, then verify that license-related comments are extracted into a txt file as requested.

Written by the indexing model from the issue text.

Description

A-Pack S-Feature
Problem

ref isssue: #2004

Image

antd umd 有版权注释提取的需求,需要把 license 相关的注释提取到一个 txt 文件里面去。

Solution

参考 https://github.com/web-infra-dev/rspack/blob/main/crates/rspack_plugin_swc_js_minimizer/src/lib.rs#L241 使用 swc parser 收集一下 comments 最后输出出去就好。

Alternatives

No response

Importance

nice to have

Additional Information

No response

Dominant language
Rust
Stars
2.5k
Forks
128
Avg merge
21h 39m
Merged PRs (30d)
32

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from utooland/utoo

All issues in utooland/utoo

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.