Skip to content

Commit

Permalink
fix toCkey in production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Jan 28, 2024
1 parent da0ce06 commit be334d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite-plugin/src/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function Transformer(
config = resolvedConfig;
if (config.mode === "production") {
let i = 0;
transformer.toCkey = () => toBase62(i++);
transformer.toCkey = () => transformer.ckeyPrefix + toBase62(i++);
}
},
transform(raw, id) {
Expand Down

0 comments on commit be334d7

Please sign in to comment.