Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node-linker=hoisted
# vite-plus preview build registry bridge (auto-added by vp)
registry=https://registry-bridge.viteplus.dev/
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@
"@changesets/changelog-git": "^0.2.0",
"@changesets/cli": "^2.30.0",
"sherif": "^1.2.0",
"vite-plus": "latest"
"vite": "catalog:",
"vite-plus": "catalog:"
},
"packageManager": "pnpm@10.12.1",
"pnpm": {
"overrides": {
"react": "^19.2.4",
"react-dom": "^19.2.4"
}
}
"packageManager": "pnpm@10.12.1"
}
3 changes: 2 additions & 1 deletion packages/bippy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@
"react-refresh": "^0.16.0",
"terser": "^5.36.0",
"tsx": "^4.21.0",
"vite-plus": "latest"
"vite": "catalog:",
"vite-plus": "catalog:"
},
"peerDependencies": {
"react": ">=17.0.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/did-fiber-commit.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "../index.js"; // KEEP THIS LINE ON TOP

import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";
import React from "react";

import { didFiberCommit, Fiber, instrument } from "../index.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/did-fiber-render.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "../index.js"; // KEEP THIS LINE ON TOP

import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";
import React from "react";

import { didFiberRender, Fiber, instrument } from "../index.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/get-display-name.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "../index.js"; // KEEP THIS LINE ON TOP

import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";
import React, { forwardRef, memo, Component } from "react";

import { getDisplayName } from "../index.js";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "../index.js"; // KEEP THIS LINE ON TOP

import { render, screen } from "@testing-library/react";
import React from "react";
import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";
import { getFiberFromHostInstance } from "../index.js";

it("should return the fiber from the host instance", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/get-fiber-stack.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "../index.js"; // KEEP THIS LINE ON TOP

import { render } from "@testing-library/react";
import React from "react";
import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";
import { Fiber, getFiberStack, instrument } from "../index.js";

export const Example = () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/get-mutated-host-fibers.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "../index.js"; // KEEP THIS LINE ON TOP

import { render } from "@testing-library/react";
import React from "react";
import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";
import { getMutatedHostFibers, instrument } from "../index.js";
import type { Fiber } from "../types.js";

Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/get-nearest-host-fiber.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "../index.js"; // KEEP THIS LINE ON TOP

import { render } from "@testing-library/react";
import React from "react";
import { describe, expect, it } from "vitest";
import { describe, expect, it } from "vite-plus/test";
import { Fiber, getNearestHostFiber, getNearestHostFibers, instrument } from "../index.js";

export const Example = () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/get-timings.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "../index.js"; // KEEP THIS LINE ON TOP

import { render } from "@testing-library/react";
import React from "react";
import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";
import { getTimings, instrument } from "../index.js";
import type { Fiber } from "../types.js";

Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/get-type.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "../index.js"; // KEEP THIS LINE ON TOP

import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";

import { getType } from "../index.js";
import React, { Component, forwardRef, memo } from "react";
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/inspect-hooks.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "../index.js"; // KEEP THIS LINE ON TOP

import { describe, expect, it } from "vitest";
import { describe, expect, it } from "vite-plus/test";
import type { Fiber } from "../types.js";
import { instrument } from "../index.js";
import { getFiberHooks, type HooksNode } from "../source/inspect-hooks.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/instrument.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "../index.js"; // KEEP THIS LINE ON TOP

import { expect, it, vi } from "vitest";
import { expect, it, vi } from "vite-plus/test";
import type { FiberRoot } from "../types.js";
import { getRDTHook, instrument, isInstrumentationActive, secure } from "../index.js";
import React from "react";
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/is-composite-fiber.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "../index.js"; // KEEP THIS LINE ON TOP

import { render } from "@testing-library/react";
import React from "react";
import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";
import { instrument, isCompositeFiber } from "../index.js";
import type { Fiber } from "../types.js";

Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/is-fiber.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "../index.js"; // KEEP THIS LINE ON TOP

import { render } from "@testing-library/react";
import React from "react";
import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";
import { isHostFiber, getFiberFromHostInstance, isFiber } from "../index.js";
import type { Fiber } from "../types.js";

Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/is-host-fiber.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "../index.js"; // KEEP THIS LINE ON TOP

import { render } from "@testing-library/react";
import React from "react";
import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";
import { isHostFiber, getFiberFromHostInstance, instrument } from "../index.js";
import type { Fiber } from "../types.js";

Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/is-valid-fiber.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "../index.js"; // KEEP THIS LINE ON TOP

import React from "react";
import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";
import { instrument, isValidFiber } from "../index.js";
import type { Fiber } from "../types.js";
import { render } from "@testing-library/react";
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/no-hook-init.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "../index.js"; // KEEP THIS LINE ON TOP

import { render } from "@testing-library/react";
import React from "react";
import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";
import {
isRealReactDevtools,
isReactRefresh,
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/on-active.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect, it, vi } from "vitest";
import { expect, it, vi } from "vite-plus/test";

import { instrument } from "../index.js";
import React from "react";
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/parse-hook-names.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "../index.js"; // KEEP THIS LINE ON TOP

import { describe, expect, it } from "vitest";
import { describe, expect, it } from "vite-plus/test";
import {
getHookSourceLocationKey,
extractHookVariableName,
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/portal.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "../index.js"; // KEEP THIS LINE ON TOP

import { describe, expect, it, vi } from "vitest";
import { describe, expect, it, vi } from "vite-plus/test";

Check warning on line 3 in packages/bippy/src/test/portal.test.tsx

View workflow job for this annotation

GitHub Actions / ci

eslint(no-unused-vars)

Identifier 'vi' is imported but never used.

Check warning on line 3 in packages/bippy/src/test/portal.test.tsx

View workflow job for this annotation

GitHub Actions / ci

eslint(no-unused-vars)

Identifier 'vi' is imported but never used.

Check warning on line 3 in packages/bippy/src/test/portal.test.tsx

View workflow job for this annotation

GitHub Actions / build

eslint(no-unused-vars)

Identifier 'vi' is imported but never used.
import type { Fiber } from "../types.js";
import {
HostPortalTag,
Expand All @@ -8,7 +8,7 @@
getNearestHostFibers,
instrument,
isCompositeFiber,
isHostFiber,

Check warning on line 11 in packages/bippy/src/test/portal.test.tsx

View workflow job for this annotation

GitHub Actions / ci

eslint(no-unused-vars)

Identifier 'isHostFiber' is imported but never used.

Check warning on line 11 in packages/bippy/src/test/portal.test.tsx

View workflow job for this annotation

GitHub Actions / ci

eslint(no-unused-vars)

Identifier 'isHostFiber' is imported but never used.

Check warning on line 11 in packages/bippy/src/test/portal.test.tsx

View workflow job for this annotation

GitHub Actions / build

eslint(no-unused-vars)

Identifier 'isHostFiber' is imported but never used.
traverseFiber,
traverseRenderedFibers,
} from "../index.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/post-react-devtools.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// import bippy, then react devtools
/* eslint-disable @typescript-eslint/no-unsafe-call */

import { expect, it, vi } from "vitest";
import { expect, it, vi } from "vite-plus/test";
const { instrument } = await import("../index.js");

// @ts-expect-error - react-devtools-inline types not available
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/post-react-refresh.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-require-imports */

import { expect, it, vi } from "vitest";
import { expect, it, vi } from "vite-plus/test";

import { instrument } from "../index.js";

Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/post-react.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// import bippy, then react

import { instrument } from "../index.js";
import { expect, it, vi } from "vitest";
import { expect, it, vi } from "vite-plus/test";

import React from "react";
import { render } from "@testing-library/react";
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/pre-react-devtools.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { activate, initialize } from "react-devtools-inline/backend";
// @ts-expect-error - react-devtools-inline types not available
import { initialize as initializeFrontend } from "react-devtools-inline/frontend";
import { expect, it, vi } from "vitest";
import { expect, it, vi } from "vite-plus/test";

initialize(window);

Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/pre-react-refresh.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-require-imports */

import { expect, it, vi } from "vitest";
import { expect, it, vi } from "vite-plus/test";

declare global {
interface Window {
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/pre-react.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// import react, then bippy

import React from "react";
import { expect, it, vi } from "vitest";
import { expect, it, vi } from "vite-plus/test";
const { instrument } = await import("../index.js"); // delay it
import { render } from "@testing-library/react";

Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/source.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "../index.js"; // KEEP THIS LINE ON TOP

import { render } from "@testing-library/react";
import React, { useState } from "react";
import { expect, it } from "vitest";
import { expect, it } from "vite-plus/test";
import type { Fiber } from "../types.js";
import { instrument } from "../index.js";
import { getSource, getOwnerStack, getSourceMap, sourceMapCache } from "../source/index.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/bippy/src/test/traverse.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "../index.js"; // KEEP THIS LINE ON TOP

import { describe, expect, it, vi } from "vitest";
import { describe, expect, it, vi } from "vite-plus/test";
import type { ContextDependency, Fiber } from "../types.js";
import {
instrument,
Expand Down
8 changes: 4 additions & 4 deletions packages/e2e/fixtures/vite-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"dev": "vp dev",
"build": "vp build",
"preview": "vp preview"
},
"dependencies": {
"bippy": "workspace:*",
Expand All @@ -17,6 +17,6 @@
"@types/react-dom": "^19",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "^5",
"vite": "^6"
"vite": "catalog:"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The package 'vite-plus' is used in the scripts ('vp dev', 'vp build', 'vp preview') and imported in 'vite.config.ts', but it is not declared as a dependency in 'package.json'. Please add 'vite-plus': 'catalog:' to the dependencies/devDependencies.

    "vite": "catalog:",
    "vite-plus": "catalog:"

}
}
2 changes: 1 addition & 1 deletion packages/e2e/fixtures/vite-app/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import { defineConfig } from "vite-plus";

export default defineConfig({
plugins: [react()],
Expand Down
3 changes: 2 additions & 1 deletion packages/vite-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@vitejs/plugin-react": "^4.3.4",
"tailwindcss": "4.0.0-beta.8",
"typescript": "^5.7.3",
"vite-plus": "latest"
"vite": "catalog:",
"vite-plus": "catalog:"
}
}
3 changes: 2 additions & 1 deletion packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"tailwindcss": "^4",
"tw-animate-css": "^1.4.0",
"typescript": "^5",
"vite-plus": "latest"
"vite": "catalog:",
"vite-plus": "catalog:"
}
}
Loading
Loading