-
-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Add unplugin instance with dedicated Vite support
#30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest 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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this 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
loadConfigurationFromPathhelper - 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.
…ame into vite-plugin
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Adds
unplugininstance with dedicated Vite support.