Skip to content
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

feat: 升级vite5.4 ,sass1.83, 启用sass 现代Api,减少不必要的warnning, 弃用 @import指令,改用@use 和@forward指令 #3239

Open
wants to merge 5 commits into
base: v4
Choose a base branch
from

Conversation

JonathanStrangeHelium
Copy link

@JonathanStrangeHelium JonathanStrangeHelium commented Dec 25, 2024

这个 PR 做了什么? (简要描述所做更改)

  1. refactor(sass): 弃用旧版@import 改用新的@use@forward 解决warning问题
  2. chore(deps): 升级vite5.4升级sass1.83
  3. fix: 修复sites/doc/components/demo-block/tsconfig.json报错找不到include中任何文件问题
  4. feat: 设置api: 'modern', // 启用现代 Sass API,修复additionalData
  5. feat: 生成的scss使用@use@forward ,弃用@import
  6. 修复sass warning

这个 PR 是什么类型? (至少选择一个)

  • feat: 新特性提交 1.feat: 设置api: 'modern', // 启用现代 Sass API,修复additionalData 2.feat: 生成的scss使用@use@forward ,弃用@import
  • fix: bug 修复 1.fix: 修复sites/doc/components/demo-block/tsconfig.json报错找不到include中任何文件问题
  • docs: 文档改进
  • style: 组件样式/交互改进
  • type: 类型定义更新
  • perf: 性能、包体积优化
  • refactor: 代码重构、代码风格优化 1.refactor(sass): 弃用旧版@import 改用新的@use@forward 解决warning问题
  • test: 测试用例
  • chore(deps): 依赖升级 chore(deps): 升级vite5.4升级sass1.83
  • chore(demo): 演示代码改进
  • chore(locale): 国际化改进
  • chore: 其他改动(是关于什么的改动?)

这个 PR 涉及以下平台:

  • NutUI H5 @nutui/nutui
  • NutUI Taro @nutui/nutui-taro

这个 PR 是否已自测:
这些都测试通过

pnpm dev
pnpm dev:h5
pnpm build
pnpm buld:taro
pnpm lint
pnpm test
pnpm test:c

暂时没时间测试下面脚手架,在自己的项目中使用 编译的nutui正常 等效于vite脚手架

@JonathanStrangeHelium JonathanStrangeHelium changed the title 修复一些小问题,升级vite5.4 ,sass1.83, 启用sass 现代Api,减少不必要的warnning, 弃用 @import指令,改用@use 和@forward指令 feat: 升级vite5.4 ,sass1.83, 启用sass 现代Api,减少不必要的warnning, 弃用 @import指令,改用@use 和@forward指令 Dec 25, 2024
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.

1 participant