Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/5985-fix-css-module-hash-project-root.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Changed

- Hashed CSS class names no longer depend on the build machine's checkout path, in PR [#5985](https://github.com/microsoft/BotFramework-WebChat/pull/5985), by [@OEvgeny](https://github.com/OEvgeny)
6 changes: 5 additions & 1 deletion esbuildPlugins.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { fileURLToPath } from 'url';
import lightningCssPlugin from 'unplugin-lightningcss/esbuild';

// Due to a bug in unplugin, we cannot use the Lightning CSS unplugin directly.
Expand All @@ -18,7 +19,10 @@ const cssPlugin = {
animation: false,
grid: false,
customIdents: false
}
},
// Hashed class names come from the file path relative to this folder (the repository root):
// the same on every machine, and different for modules at the same path in different packages.
projectRoot: fileURLToPath(new URL('.', import.meta.url))
}
}).setup({
...build,
Expand Down
Loading