-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat: vite plugin (5.x) #2935
base: 5.x
Are you sure you want to change the base?
feat: vite plugin (5.x) #2935
Conversation
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.
there are several upgrades and fixes the rollup integration has had since this was copied, it might be worth it to migrate these changes
clearScreen: false, | ||
}; | ||
|
||
async function viteBuildAndPreview() { |
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.
would be nice to extract to a basic test-kit to share between the 2 specs
"!*/tsconfig.{json,tsbuildinfo}" | ||
], | ||
"engines": { | ||
"node": ">=16" |
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.
"node": ">=16" | |
"node": ">=18.12.0" |
Plugin['transform'] extends ObjectHook<infer T, {}> ? NonNullable<T> : false | ||
>; | ||
|
||
export function generateStylableModuleCode( |
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.
notice that on master this was refactored to a common place between integrations
* string - it will use the provided string as the "stcConfig" file path. | ||
*/ | ||
stcConfig?: boolean | string; | ||
projectRoot?: string; |
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.
the rollup integration this was copied from now supports a better default for handling side-effects: includeGlobalSideEffects
A Stylable integration plugin for vite.
Currently does not include a CSA template.