This repository was archived by the owner on Jan 18, 2022. It is now read-only.
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
Different CSS Module class name in SSR and Client side output #351
Closed
Description
Version
5.0.0
Reproduction link
https://github.com/przemkow/rollup-plugin-vue-css-modules-issue
Steps to reproduce
git clone https://github.com/przemkow/rollup-plugin-vue-css-modules-issue
run:
npm i
npm run build:prod
open ./dist directory
What is expected?
both cjs
and esm
output should contain the same class names after compilation of css modules
What is actually happening?
Server side optimised build (optimizeSSR: true
) and client side build (optimizeSSR: false
) generates different class names for the same CSS module element.
This behaviour is present only if we run production build. (isProduction: true
, NODE_ENV=production
etc.) without production template optimisation both files contains the same output class name.
Metadata
Metadata
Assignees
Labels
No labels