Skip to content

Conversation

cwyyue
Copy link
Collaborator

@cwyyue cwyyue commented Apr 18, 2025

unocss 从 0.52.7 升级至最新版 66.0.0
期间受影响Breaking Changes:

  1. Move to ESM-only and fix package exports。
  • 不再支持commonjs了,本次我们也改成ESM-only
  1. Introduce @unocss/preset-wind3, deprecate preset-uno and preset-wind。
  • 各种reset、preset 更新,包含 伪类生成顺序、rgb 默认空格写法,oklch 等方位新特性(小程序不支持)。
  • 因此还需补全测试case,全面回归。

compilation.fileDependencies.add(item)
// fix jiti require cache for watch
delete require.cache[item]
// delete require.cache[item]
Copy link
Collaborator

Choose a reason for hiding this comment

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

测试watch状态下配置变更是否能够生效

## MpxUnocssBase

Mpx 内置的 unocss preset,继承自 `@unocss/preset-uno`,并额外提供小程序原子类的预设样式,安装示例如下:
Mpx 内置的 unocss preset,继承自 `@unocss/preset-wind3`,并额外提供小程序原子类的预设样式,安装示例如下:
Copy link
Collaborator

Choose a reason for hiding this comment

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

有啥区别

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@unocss/preset wind和@unocss/preset uno已被弃用,并重命名为@unocss/preset-wind3

@@ -1,5 +1,5 @@
const { ReplaceSource, RawSource, ConcatSource, Source } = require('webpack').sources

import pkg from 'webpack'
Copy link
Collaborator

Choose a reason for hiding this comment

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

pkg -> webpack

@hiyuki
Copy link
Collaborator

hiyuki commented Apr 23, 2025

eslint问题修复

@lp0124
Copy link
Contributor

lp0124 commented May 6, 2025

@mpxjs/vue-cli-plugin-mpx-utility-first-css 里使用了 @mpxjs/unocss-plugin
image
image
@cwyyue

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.

3 participants