Skip to content

Commit

Permalink
chore: restore css class name hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Benehiko committed Oct 17, 2023
1 parent 0ff4fc8 commit a8fcc3f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/markup/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ export default defineConfig({
plugins: [
vanillaExtractPlugin({
emitCssInSsr: true,
identifiers: ({ filePath, debugId }) => {
identifiers: ({ hash, filePath, debugId }) => {
const name = filePath
.split("/")
?.pop()
?.split(".")[0]
?.replace("-", "_")
const id = debugId ? "_" + debugId : ""
return `ory_elements__${name}${id}`
return `ory_elements__${name}${id}__${hash}`
},
}),
dts({ insertTypesEntry: true }),
Expand Down
4 changes: 2 additions & 2 deletions packages/preact/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ export default defineConfig({
plugins: [
vanillaExtractPlugin({
emitCssInSsr: true,
identifiers: ({ filePath, debugId }) => {
identifiers: ({ hash, filePath, debugId }) => {
const name = filePath
.split("/")
?.pop()
?.split(".")[0]
?.replace("-", "_")
const id = debugId ? "_" + debugId : ""
return `ory_elements__${name}${id}`
return `ory_elements__${name}${id}__${hash}`
},
}),
dts({ insertTypesEntry: true }),
Expand Down
4 changes: 2 additions & 2 deletions packages/react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ export default defineConfig({
plugins: [
vanillaExtractPlugin({
emitCssInSsr: true,
identifiers: ({ filePath, debugId }) => {
identifiers: ({ hash, filePath, debugId }) => {
const name = filePath
.split("/")
?.pop()
?.split(".")[0]
?.replace("-", "_")
const id = debugId ? "_" + debugId : ""
return `ory_elements__${name}${id}`
return `ory_elements__${name}${id}__${hash}`
},
}),
dts({
Expand Down

0 comments on commit a8fcc3f

Please sign in to comment.