-
Notifications
You must be signed in to change notification settings - Fork 392
unocss升级 esm-only #1963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
unocss升级 esm-only #1963
Conversation
compilation.fileDependencies.add(item) | ||
// fix jiti require cache for watch | ||
delete require.cache[item] | ||
// delete require.cache[item] |
There was a problem hiding this comment.
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`,并额外提供小程序原子类的预设样式,安装示例如下: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有啥区别
There was a problem hiding this comment.
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
packages/unocss-plugin/lib/source.js
Outdated
@@ -1,5 +1,5 @@ | |||
const { ReplaceSource, RawSource, ConcatSource, Source } = require('webpack').sources | |||
|
|||
import pkg from 'webpack' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkg -> webpack
eslint问题修复 |
@mpxjs/vue-cli-plugin-mpx-utility-first-css 里使用了 @mpxjs/unocss-plugin |
unocss 从 0.52.7 升级至最新版 66.0.0
期间受影响Breaking Changes: