Skip to content

Conversation

@edison1105
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 23, 2025 13:46
@coderabbitai
Copy link

coderabbitai bot commented Dec 23, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch edison/feat/useOxfmt

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 85.5 kB 30 kB 26.4 kB
runtime-dom.global.prod.js 108 kB 40.7 kB 36.6 kB
vue.global.prod.js 167 kB 60.7 kB 54 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 48.3 kB 18.9 kB 17.3 kB
createApp 57.3 kB 22.1 kB 20.1 kB
createApp + vaporInteropPlugin 97.2 kB 35.8 kB 32.3 kB
createVaporApp 42.6 kB 15.6 kB 14.3 kB
createSSRApp 61.7 kB 23.9 kB 21.7 kB
defineCustomElement 63.4 kB 23.9 kB 21.8 kB
overall 72.1 kB 27.3 kB 24.9 kB

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 23, 2025

Open in StackBlitz

@vue/compiler-core

pnpm add https://pkg.pr.new/@vue/compiler-core@14238
npm i https://pkg.pr.new/@vue/compiler-core@14238
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/compiler-dom

pnpm add https://pkg.pr.new/@vue/compiler-dom@14238
npm i https://pkg.pr.new/@vue/compiler-dom@14238
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/compiler-sfc

pnpm add https://pkg.pr.new/@vue/compiler-sfc@14238
npm i https://pkg.pr.new/@vue/compiler-sfc@14238
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/compiler-ssr

pnpm add https://pkg.pr.new/@vue/compiler-ssr@14238
npm i https://pkg.pr.new/@vue/compiler-ssr@14238
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/compiler-vapor

pnpm add https://pkg.pr.new/@vue/compiler-vapor@14238
npm i https://pkg.pr.new/@vue/compiler-vapor@14238
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/reactivity

pnpm add https://pkg.pr.new/@vue/reactivity@14238
npm i https://pkg.pr.new/@vue/reactivity@14238
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/runtime-core

pnpm add https://pkg.pr.new/@vue/runtime-core@14238
npm i https://pkg.pr.new/@vue/runtime-core@14238
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/runtime-dom

pnpm add https://pkg.pr.new/@vue/runtime-dom@14238
npm i https://pkg.pr.new/@vue/runtime-dom@14238
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/runtime-vapor

pnpm add https://pkg.pr.new/@vue/runtime-vapor@14238
npm i https://pkg.pr.new/@vue/runtime-vapor@14238
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/server-renderer

pnpm add https://pkg.pr.new/@vue/server-renderer@14238
npm i https://pkg.pr.new/@vue/server-renderer@14238
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/shared

pnpm add https://pkg.pr.new/@vue/shared@14238
npm i https://pkg.pr.new/@vue/shared@14238
yarn add https://pkg.pr.new/@vue/[email protected]

vue

pnpm add https://pkg.pr.new/vue@14238
npm i https://pkg.pr.new/vue@14238
yarn add https://pkg.pr.new/[email protected]

@vue/compat

pnpm add https://pkg.pr.new/@vue/compat@14238
npm i https://pkg.pr.new/@vue/compat@14238
yarn add https://pkg.pr.new/@vue/[email protected]

commit: a5e247b

@edison1105 edison1105 marked this pull request as draft December 23, 2025 13:48
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the code formatter from Prettier to oxfmt, a faster alternative built on the Oxc toolchain. The migration involves updating configuration files, build scripts, CI workflows, and documentation to reflect the new formatter.

Key changes include:

  • Replaced Prettier with oxfmt as the project's code formatter
  • Updated formatting commands in package.json and lint-staged configuration
  • Migrated formatting configuration from .prettierrc to .oxfmtrc.jsonc with equivalent settings

Reviewed changes

Copilot reviewed 9 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
pnpm-lock.yaml Removed Prettier dependencies and added oxfmt with its native binary dependencies for multiple platforms (darwin, linux, win32)
package.json Updated format scripts to use oxfmt commands, replaced prettier dependency with oxfmt ^0.20.0, and updated lint-staged hooks
.oxfmtrc.jsonc Created new oxfmt configuration file with equivalent settings (semi: false, singleQuote: true, arrowParens: avoid) plus ignore patterns
.prettierrc Removed Prettier configuration file
.prettierignore Removed Prettier ignore file
.vscode/settings.json Changed default formatter from prettier-vscode to oxc-vscode extension for TypeScript, JavaScript, and JSON files
.github/workflows/test.yml Updated workflow comment from "Run prettier" to "Run oxfmt"
.github/workflows/autofix.yml Updated workflow comment from "Run prettier" to "Run oxfmt"
.github/renovate.json5 Changed package matching pattern from prettier to oxfmt for dependency updates
.github/contributing.md Updated documentation references from Prettier to oxfmt throughout contributor guide
packages/vue/examples/transition/modal.html Applied oxfmt formatting to CSS indentation
netlify.toml Applied oxfmt formatting to TOML file structure
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"singleQuote": true,
"arrowParens": "avoid",
"printWidth": 80,
"ignorePatterns": ["dist", "pnpm-lock.yaml", "CHANGELOG*.md", "package.json"],
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

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

The package.json file is listed in ignorePatterns but appears to have been formatted anyway, as evidenced by the reordering of fields (e.g., "private" and "version" swapped positions, "packageManager" moved to the end, devDependencies reordered). This suggests the ignore pattern may not be working as intended. Consider verifying that oxfmt correctly respects the ignorePatterns configuration or manually revert the formatting changes to package.json if it should remain unchanged.

Suggested change
"ignorePatterns": ["dist", "pnpm-lock.yaml", "CHANGELOG*.md", "package.json"],
"ignorePatterns": ["dist", "pnpm-lock.yaml", "CHANGELOG*.md"],

Copilot uses AI. Check for mistakes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't know why package.json was formatted, but just letting you know pnpm-lock.yaml is ignored by default.

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably wanted experimentalSortPackageJson: false

Comment on lines +2 to +3
NODE_VERSION = "22"
NPM_FLAGS = "--version" # prevent Netlify npm install
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

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

The formatting of this TOML file removes the indentation for properties within the [build.environment] section, which may not follow TOML formatting conventions. While valid TOML syntax allows both indented and non-indented properties, the indented style is more commonly used for readability. Consider verifying that oxfmt's TOML formatting behavior aligns with project preferences for configuration files.

Suggested change
NODE_VERSION = "22"
NPM_FLAGS = "--version" # prevent Netlify npm install
NODE_VERSION = "22"
NPM_FLAGS = "--version" # prevent Netlify npm install

Copilot uses AI. Check for mistakes.

```js
import { h } from '@vue/runtime-core'
import { h } from "@vue/runtime-core";
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

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

The code example was changed from single quotes to double quotes, but the oxfmt configuration specifies "singleQuote": true. This inconsistency suggests either the formatter wasn't applied to this file, or this was a manual change. For consistency with the configured formatting rules, the example should use single quotes to match the project's style guide.

Suggested change
import { h } from "@vue/runtime-core";
import { h } from '@vue/runtime-core';

Copilot uses AI. Check for mistakes.
]
},
"engines": {
"node": ">=18.12.0"
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

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

The Node.js engine requirement in package.json (>=18.12.0) is incompatible with oxfmt's engine requirement (^20.19.0 || >=22.12.0). The engines field should be updated to match oxfmt's minimum Node.js version requirement of 20.19.0 to ensure developers and CI environments running on Node.js 18 or 19 don't encounter installation or runtime issues with the new formatter.

Suggested change
"node": ">=18.12.0"
"node": ">=20.19.0"

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants