Skip to content

Conversation

@alexgrozav
Copy link
Contributor

Adds unplugin instance with dedicated Vite support.

@alexgrozav alexgrozav requested a review from Copilot October 28, 2025 09:37
@alexgrozav alexgrozav self-assigned this Oct 28, 2025
@changeset-bot
Copy link

changeset-bot bot commented Oct 28, 2025

🦋 Changeset detected

Latest commit: 1a21c79

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
styleframe-dev-production Ready Ready Preview Comment Oct 29, 2025 9:19am

Copy link
Contributor

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 adds an unplugin instance with dedicated Vite support, creating a build tooling plugin for Styleframe that supports multiple bundlers (Vite, Webpack, Rollup, esbuild, Rspack, Farm) through the unplugin framework. The changes include a complete plugin implementation with virtual module support, HMR capabilities, and a playground for testing.

Key changes:

  • New unplugin-based build plugin with virtual module support for CSS and TypeScript output
  • Refactored transpiler to support separate CSS and TypeScript output modes
  • Updated CLI and loader packages to use the new loadConfigurationFromPath helper
  • Enhanced documentation with improved code examples and corrected installation instructions

Reviewed Changes

Copilot reviewed 78 out of 94 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tooling/plugin/src/index.ts Core unplugin factory with virtual module resolution and HMR support
tooling/plugin/src/vite.ts Vite-specific plugin export
tooling/plugin/src/webpack.ts Webpack-specific plugin export
tooling/plugin/src/constants.ts Plugin configuration constants and virtual module IDs
tooling/plugin/src/types.ts TypeScript type definitions for plugin options
tooling/plugin/playground/* Development playground with Vite configuration
engine/transpiler/src/transpile.ts Enhanced transpiler supporting CSS/TS/all output modes
engine/transpiler/src/consume/consume.ts Refactored consume functions with separate CSS and TS consumers
engine/loader/src/config.ts New loadConfigurationFromPath helper function
tooling/cli/src/commands/build.ts Updated to use loadConfigurationFromPath
docs/content/docs/**/*.md Documentation improvements with code block labels

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

Initial release includes Vite support and custom transpile functions. Added support for loading configuration from a path.
@alexgrozav alexgrozav merged commit 68cd004 into main Oct 29, 2025
7 of 8 checks passed
@alexgrozav alexgrozav deleted the vite-plugin branch October 29, 2025 09:21
This was referenced Oct 29, 2025
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