Skip to content

Conversation

@Ercilan
Copy link
Contributor

@Ercilan Ercilan commented Oct 29, 2025

Added support for common JavaScript/TypeScript extensions:

.js
.cjs
.mjs

.ts
.cts
.mts

.jsx
.tsx

Helps resolve issues with libraries like preline that use .mjs in distribution builds.

References:

(Additional configuration is required to work with Preline, and there may be other issues as well, but the first thing that needs to be addressed is the .mjs files.)

Sourcery 总结

增强功能:

  • 扩展文件扩展名匹配,除了现有的 .js, .jsx, .ts, 和 .tsx 文件之外,还包括 .cjs, .mjs, .cts, .mts
Original summary in English

Summary by Sourcery

Enhancements:

  • Extend file extension matching to include .cjs, .mjs, .cts, .mts alongside existing .js, .jsx, .ts, and .tsx files

@changeset-bot
Copy link

changeset-bot bot commented Oct 29, 2025

🦋 Changeset detected

Latest commit: c22d5c4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@tailwindcss-mangle/config Minor
@tailwindcss-mangle/core Patch
tailwindcss-patch Patch
unplugin-tailwindcss-mangle Patch
postcss7-compat Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Oct 29, 2025

Deploy Preview for tw-mangle canceled.

Name Link
🔨 Latest commit c22d5c4
🔍 Latest deploy log https://app.netlify.com/projects/tw-mangle/deploys/690adc818230da0008ab633e

@sourcery-ai
Copy link

sourcery-ai bot commented Oct 29, 2025

🧙 Sourcery 已完成您的拉取请求审查!


提示和命令

与 Sourcery 互动

  • 触发新的审查: 在拉取请求上评论 @sourcery-ai review
  • 继续讨论: 直接回复 Sourcery 的审查评论。
  • 从审查评论生成 GitHub issue: 通过回复审查评论,要求 Sourcery 从中创建一个 issue。您也可以回复审查评论并带上 @sourcery-ai issue 来从中创建一个 issue。
  • 生成拉取请求标题: 在拉取请求标题的任何位置写入 @sourcery-ai 即可随时生成标题。您也可以在拉取请求上评论 @sourcery-ai title 来随时(重新)生成标题。
  • 生成拉取请求摘要: 在拉取请求正文的任何位置写入 @sourcery-ai summary 即可随时在您想要的位置生成 PR 摘要。您也可以在拉取请求上评论 @sourcery-ai summary 来随时(重新)生成摘要。
  • 生成审查者指南: 在拉取请求上评论 @sourcery-ai guide 即可随时(重新)生成审查者指南。
  • 解决所有 Sourcery 评论: 在拉取请求上评论 @sourcery-ai resolve 以解决所有 Sourcery 评论。如果您已处理完所有评论且不想再看到它们,这会很有用。
  • 驳回所有 Sourcery 审查: 在拉取请求上评论 @sourcery-ai dismiss 以驳回所有现有 Sourcery 审查。如果您想重新开始新的审查,这会特别有用——别忘了评论 @sourcery-ai review 来触发新的审查!

自定义您的体验

访问您的 仪表板 以:

  • 启用或禁用审查功能,例如 Sourcery 生成的拉取请求摘要、审查者指南以及其他功能。
  • 更改审查语言。
  • 添加、删除或编辑自定义审查说明。
  • 调整其他审查设置。

获取帮助

Original review guide in English

🧙 Sourcery has finished reviewing your pull request!


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你好 - 我已经审查了你的更改,它们看起来很棒!


Sourcery 对开源免费 - 如果你喜欢我们的评论,请考虑分享它们 ✨
帮助我更有用!请在每条评论上点击 👍 或 👎,我将利用这些反馈来改进你的评论。
Original comment in English

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@Ercilan
Copy link
Contributor Author

Ercilan commented Oct 30, 2025

@sonofmagic

  1. [Bug]: disabled not working #128 disabled 配置没有被使用,在 UnpluginFactory 直接返回空列表应该没有副作用吧?测试了应该没问题,还是有什么原因一直没有修复吗?
  2. 另外,我发现我目前 nuxt4 + tailwindcss v4 + vite 插件方式使用本插件,在 dev 模式下会正常加载插件,文档说的无法生效是什么问题呢
  3. tw-patch 对于我来说无法生效,只能使用 tailwindcss-patch。pnpm v10.19.0,有可能是我的 pnpm 配置问题,之前经过版本升降、目录更换。想了解下你那边还是正常的吗
  4. 我有一个请求,能否支持自定义 handler,比如用例 .json,我的翻译文本在 json 中,使用 v-html 加载,包含例如 <strong class=\"text-red-600 dark:text-red-400\">xxxx</strong> 文本(虽然不被推荐 v-html 翻译,但我还是疲于为一个红色写一个 i18n-t,这也是一种可能);
    另外偏门点,比如我自己将一些常用的 svg 作为文件放在项目里了,里面使用了 class 设置大小(我使用他们都是 innerHTML)也需要进行替换。你觉得呢?

@sonofmagic
Copy link
Owner

@Ercilan
你改了之后,你可以更新一下 vitest 的 snap 快照,也提交上来,不然Github Action 实际上都是报错的状态

然后你可以加一个 changeset , 这样的话,我可以自动发版本,把你的代码发布了。

至于其他的问题,我仔细回想一下代码再来回答你

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 5, 2025

@sonofmagic sonofmagic merged commit 6799e3b into sonofmagic:main Nov 6, 2025
7 checks passed
@github-actions github-actions bot mentioned this pull request Nov 6, 2025
@sonofmagic
Copy link
Owner

@tailwindcss-mangle/config@6.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants