Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

rollup does not watch files referenced from .vue SFC files #396

Closed
neryams opened this issue Oct 6, 2020 · 2 comments
Closed

rollup does not watch files referenced from .vue SFC files #396

neryams opened this issue Oct 6, 2020 · 2 comments

Comments

@neryams
Copy link
Contributor

neryams commented Oct 6, 2020

Version

5.0.0

Reproduction link

https://codesandbox.io/s/rollup-plugin-vue-sfc-references-watch-nr8dr

Steps to reproduce

Create a new rollup project using vue and rollup-plugin-vue. Create a .vue file with the following format and bootstrap the app using Vue:

<template>
</template>

<script lang="ts" src="./app.ts"></script>
<style  lang="scss" src="./app.scss" scoped></style>

Create the two files app.ts and app.scss in the same folder as the .vue file. Run the project rollup with --watch.

What is expected?

When running with --watch, rollup will rebuild after app.ts and app.scss are modified.

What is actually happening?

When modifying the .vue file, rollup build will recompile. But when modifying the .ts or .scss files, rollup will not recompile.

@neryams
Copy link
Contributor Author

neryams commented Oct 6, 2020

I made a PR to fix this: #385

@znck
Copy link
Member

znck commented Oct 22, 2020

fixed in #385

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants