build: 拥抱esm新规范和tailwind新版本#202
Merged
lucienshawls merged 27 commits intoMaaAssistantArknights:devfrom Nov 5, 2025
Merged
Conversation
Member
|
最支持的一集 |
Member
|
我看看能不能写个ci跑跑看 |
This comment was marked as outdated.
This comment was marked as outdated.
Removed the latest version specification for pnpm.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Contributor
Author
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades the project to use Tailwind CSS v4 with its new compilation tooling and migrates the codebase to ES modules. Key changes include:
- Upgrade Tailwind CSS from v3 to v4, replacing
autoprefixerwith@tailwindcss/postcssand@tailwindcss/vite - Migrate from CommonJS to ES modules across configuration files
- Update dependencies (React 19.2, TypeScript 5.9.3, various build tools)
- Add missing dependency arrays to React hooks for proper effect re-execution
- Modernize Tailwind utility classes to align with v4 conventions
Reviewed Changes
Copilot reviewed 28 out of 30 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
pnpm-workspace.yaml |
Added onlyBuiltDependencies configuration for esbuild |
pnpm-lock.yaml |
Updated lockfile reflecting all dependency upgrades |
package.json |
Added ES module type, updated turbo version, renamed bundler script |
bundler.js |
Changed to default import for ES module compatibility |
apps/web/vite.config.ts |
Added Tailwind CSS Vite plugin |
apps/web/tsconfig.json |
Updated for ES modules, added build cache path and types |
apps/web/tailwind.config.js |
Removed legacy Tailwind v3 configuration file |
apps/web/postcss.config.js |
Migrated to ES module and updated for Tailwind v4 |
apps/web/package.json |
Upgraded dependencies and added ES module type |
apps/web/eslint.config.js |
Complete rewrite for ES modules with flat config structure |
apps/web/src/index.css |
Updated to Tailwind v4 import syntax and custom variant |
apps/web/src/vite-env.d.ts |
Removed redundant type reference (moved to tsconfig) |
| Component files | Fixed missing dependency arrays and updated class names to v4 conventions |
.pre-commit.prettierrc.js |
Rewritten as ES module with async plugin loading |
.pre-commit.prettierrc.cjs |
Removed CommonJS version |
.github/workflows/deploy.yml |
Added lint check step and improved checkout configuration |
.devcontainer/* |
Simplified setup by removing custom Dockerfile |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
AnnAngela
approved these changes
Nov 4, 2025
Contributor
Author
|
你们说要不要也加个 https://github.com/apps/pre-commit-ci/installations/select_target 不过可能得有更高权限才能配置 |
Member
|
你可以先写,写好后摇人加上就行 |
Contributor
Author
已经写好,在自己的仓库测试过了,没有问题 @MistEO 可以在这个仓库装 pre-commit.ci 应用了: https://github.com/apps/pre-commit-ci/installations/select_target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tailwind.config.js作为配置文件,已删除