You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
Version
5.1.6
Reproduction link
https://github.com/raihle/vue-rollup-duplicate-css-repro
Steps to reproduce
Run
npm ci && npm run build
. Build output will be in./dist/src
.What is expected?
All components refer to the same CSS file, and should continue to do so after the build.
What is actually happening?
Component1 and Component2, which both include the CSS using
<style src=...>
, have the CSS-to-be-injected "inlined".Component3 and Component4, which instead import the CSS in their
<script>
tag, correctly refer to a sharedshared-styles.css.js
.I am using [email protected]. Vue and vue-template-compiler @ 2.6.11.
The shared CSS is:
It shows up on line 21 of Component1.vue.js and Component2.vue.js.
I am trying to build a treeshakeable component library.
The text was updated successfully, but these errors were encountered: