Replies: 2 comments
-
|
The things listed should be available, so I guess there's other requirements:
These can be a virtual module, or an external module served by a custom handler. Virtual modules will be managed in the Vite's HMR life-cycle, while an external module won't.
While handleHotUpdate hook is not supported yet, full bundle mode supports HMR events so that should work. |
Beta Was this translation helpful? Give feedback.
-
I see both plugins use the So is the workaround to implemeted HMR events instead? https://github.com/facebook/stylex/blob/ef7d0c55893827bb266e3fa4a9de6007ce425f2d/packages/%40stylexjs/unplugin/src/vite.js#L132 and https://github.com/Dwlad90/stylex-swc-plugin/blob/d4f9a8a5c0071402204888fde57d8f680d17cf0c/packages/unplugin/src/index.ts#L482 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We’re looking for documentation/guidance for plugin authors supporting Vite full bundle mode (
experimental.bundledDev). Some plugins do more than transform modules. They also need:Concrete example: The Babel StyleX plugin is an example of a plugin that fails in full bundle mode. Same problem for the SWC StyleX Plugin.
I'm wondering what is the correct way for a plugin to provide its own runtime + CSS HMR flow in full bundle mode?
Beta Was this translation helpful? Give feedback.
All reactions