Skip to content

Commit

Permalink
Revert "Undo PR"
Browse files Browse the repository at this point in the history
This reverts commit 0b61a6f.
  • Loading branch information
r100-stack committed Jan 23, 2025
1 parent 0b61a6f commit b5cd89d
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 379 deletions.
2 changes: 1 addition & 1 deletion packages/itwinui-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"react": "^18.0.0",
"react-dom": "^18.0.0",
"typescript": "5",
"vite": "~5.1.8",
"vite": "~5.4.14",
"vitest": "^1.2.1"
},
"peerDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions packages/itwinui-react/src/styles.js/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ export default defineConfig({
},
},
plugins: [
// https://github.com/vitejs/vite/pull/16051#issuecomment-2076616816
{
name: 'css-module-side-effectful',
enforce: 'post',
transform(_, id) {
if (id.endsWith('.module.css')) {
return {
moduleSideEffects: 'no-treeshake',
};
}
},
},
{
name: 'copy-files-after-build',
closeBundle: async () => {
Expand Down
Loading

0 comments on commit b5cd89d

Please sign in to comment.