Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 22, 2025

Updated all vite-plugin-inspect references in plugin-rsc examples to use a more concise one-liner format.

Changes

Replaced the two-line commented pattern:

// import inspect from 'vite-plugin-inspect'
...
plugins: [
  // inspect(),
]

With a single-line comment:

plugins: [
  // import("vite-plugin-inspect").then(m => m.default()),
]

This change:

  • Reduces clutter by eliminating the unused import statement
  • Maintains the same functionality when uncommented (dynamic import that returns the plugin)
  • Makes the pattern more self-contained and easier to uncomment for debugging

Files Updated

  • packages/plugin-rsc/examples/starter/vite.config.ts
  • packages/plugin-rsc/examples/ssg/vite.config.ts
  • packages/plugin-rsc/examples/basic/vite.config.ts
  • packages/plugin-rsc/examples/react-router/cf/vite.config.ts
  • packages/plugin-rsc/examples/react-router/vite.config.ts
  • packages/plugin-rsc/examples/browser-mode/vite.config.ts
Original prompt

use one liner // import("vite-plugin-inspect").then(m => m.default()) for
packages/plugin-rsc/examples/starter/vite.config.ts
there are some more in examples. fix all of them


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix import statements in Vite config for examples refactor: use one-liner for vite-plugin-inspect in examples Oct 22, 2025
Copilot AI requested a review from hi-ogawa October 22, 2025 12:01
Copilot finished work on behalf of hi-ogawa October 22, 2025 12:01
@hi-ogawa hi-ogawa changed the title refactor: use one-liner for vite-plugin-inspect in examples chore(rsc): use one-liner for vite-plugin-inspect in examples Oct 22, 2025
@hi-ogawa hi-ogawa marked this pull request as ready for review October 22, 2025 13:47
@hi-ogawa hi-ogawa merged commit b2c00ed into main Oct 22, 2025
25 of 40 checks passed
@hi-ogawa hi-ogawa deleted the copilot/fix-import-statements-in-examples branch October 22, 2025 23:43
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.

2 participants