Repository navigation
Docs: CSS Modules work on first-party Vite (4.11), guide still says they don't #124
|
The current SDK UI Page guidance and the SDK 4.0 announcement (Discussion #22) state that CSS Modules are not supported. On the first-party SDK 4.11 Vite path, CSS Modules are working in both development and production:
There is a remaining TypeScript declaration gap: the supplied general declare module '*.module.css' {
const classes: Record<string, string>
export default classes
}This finding is specific to the SDK 4.11 first-party Vite path. I did not re-test CSS Modules on the older Rollup development path. RequestCould the UI Page documentation distinguish the supported behavior by build path and state that CSS Modules work with the first-party Vite integration? It would also help if the SDK/sample supplied an appropriate |
Replies: 2 comments
|
Taking a look. Will update the example and docs to account for css module support. |
|
https://github.com/ServiceNow/sdk-examples/tree/main/react-ui-page-vite-sample has been updated to call out css module support. |
https://github.com/ServiceNow/sdk-examples/tree/main/react-ui-page-vite-sample has been updated to call out css module support.