This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Description
Expected behavior
Bundle without error.
Actual behavior
Get Error: Unexpected token
[!] Error: Unexpected token
src\components\PlainHello.vue?rollup-plugin-vue=styles.0.css (2:4)
1:
2: div span[data-v-408f8e39] {
^
3: color: red;
4: }
Steps to reproduce the behavior
I've created a repo to repro this issue.
git clone https://github.com/gluons/rollup-plugin-vue-issue-209.git
cd rollup-plugin-vue-issue-209
yarn
yarn build
I try to create Vue library with Pug + TypeScript + SCSS and bundle with rollup-plugin-vue but this issue stop me. 😥
I've tried with rollup-plugin-typescript and rollup-plugin-typescript2 but it doesn't seem to work.
I've created multiple Vue components for testing this issue but all of them get this error.
- A component with TypeScript as
script
- A component with TypeScript as
script and Pug as template
- A component with TypeScript as
script and SCSS as style
- A component with TypeScript as
script, Pug as template and SCSS as style
- A component with just normal HTML, JavaScript and CSS