feat: upgrade vite to v8, plugin-react to v6, vite-node to v6#1150
feat: upgrade vite to v8, plugin-react to v6, vite-node to v6#1150stipsan wants to merge 11 commits into
Conversation
|
Claude finished @stipsan's task in 3m 20s —— View job Review
Issues that need fixing1. Failing test —
expect(config.build).toMatchObject({
…
minify: 'esbuild',
…
})This will fail CI for the - minify: 'esbuild',
+ minify: 'oxc',2. This looks unintentional. Next.js apps almost always set If the goal was just to pick up new - "jsx": "react-jsx",
+ "jsx": "preserve",3. The bulk of the diff is an auto-formatter expanding every array/object to one-element-per-line (e.g. Notes (not blockers)
|
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2c96444 to
0d6218a
Compare
…port - Added support for exposing named exports from CommonJS modules in the vendor build process. - Introduced `getCjsNamedExports` utility to extract named exports without executing the module. - Implemented `injectNamedExports` to append named exports to the output of CommonJS-derived chunks. - Created a Vite plugin, `createVendorNamedExportsPlugin`, to integrate the named exports functionality into the build process. - Updated tests to verify the correct extraction and injection of named exports for various modules, including `react` and `styled-components`. - Added new dependencies: `cjs-module-lexer` and `magic-string` for handling CommonJS exports and string manipulation.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
0d6218a to
8ed1449
Compare
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
📦 Bundle Stats —
|
| Metric | Value | vs main (52a0c78) |
|---|---|---|
| Internal (raw) | 2.1 KB | - |
| Internal (gzip) | 799 B | - |
| Bundled (raw) | 11.13 MB | - |
| Bundled (gzip) | 2.09 MB | - |
| Import time | 908ms | -5ms, -0.6% |
bin:sanity
| Metric | Value | vs main (52a0c78) |
|---|---|---|
| Internal (raw) | 1023 B | - |
| Internal (gzip) | 486 B | - |
| Bundled (raw) | 9.87 MB | - |
| Bundled (gzip) | 1.77 MB | - |
| Import time | 2.03s | -25ms, -1.2% |
🗺️ View treemap · Artifacts
Details
- Import time regressions over 10% are flagged with
⚠️ - Sizes shown as raw / gzip 🗜️. Internal bytes = own code only. Total bytes = with all dependencies. Import time = Node.js cold-start median.
📦 Bundle Stats — @sanity/cli-core
Compared against main (52a0c789)
| Metric | Value | vs main (52a0c78) |
|---|---|---|
| Internal (raw) | 97.1 KB | +819 B, +0.8% |
| Internal (gzip) | 23.0 KB | +302 B, +1.3% |
| Bundled (raw) | 21.69 MB | +819 B, +0.0% |
| Bundled (gzip) | 3.44 MB | +222 B, +0.0% |
| Import time | 818ms | +6ms, +0.7% |
🗺️ View treemap · Artifacts
Details
- Import time regressions over 10% are flagged with
⚠️ - Sizes shown as raw / gzip 🗜️. Internal bytes = own code only. Total bytes = with all dependencies. Import time = Node.js cold-start median.
📦 Bundle Stats — create-sanity
Compared against main (52a0c789)
| Metric | Value | vs main (52a0c78) |
|---|---|---|
| Internal (raw) | 908 B | - |
| Internal (gzip) | 483 B | - |
| Bundled (raw) | 931 B | - |
| Bundled (gzip) | 491 B | - |
| Import time | ❌ ChildProcess denied: node | - |
Details
- Import time regressions over 10% are flagged with
⚠️ - Sizes shown as raw / gzip 🗜️. Internal bytes = own code only. Total bytes = with all dependencies. Import time = Node.js cold-start median.
Preview this PR with pkg.pr.newRun the Sanity CLInpx https://pkg.pr.new/sanity-io/cli/@sanity/cli@478995d <command>...Or upgrade project dependencies📦
|
1e206f5 to
ea75c49
Compare
Description
Builds upon #698
FIXES SDK-1254
FIXES SAPP-3887
What to review
Testing