Repro for issue 443
When running rollup.watch (programmatically) only the first build goes well. All the following builds result in the same output for .ts files. I've added a .js file and only that .js file gets changes on every re-build. None of the .ts files get an update after re-build.
Same for .vue files. When using <script setup lang="ts"> - it doesn't get updates after re-builds. When using <script setup> - works fine. But I guess there is a single cause for both.
When rollup-plugin-typescript2
plugin option check
is set to false
both (ts and vue) files fail to update.
When rollup-plugin-typescript2
plugin option check
is set to true
only vue file fails to update.
npm i
npm run start
npm run start
- first build goes well, you can see in console and in ./dist folder that it's fine
- change something in one of the files
src/test.js
,src/index.ts
orsrc/app.vue
- check the re-build code: TS (and .vue with
lang="ts"
) files don't update - switch
check
totrue
in plugin configscripts/build-watch.js
- stop running and perform step 1
- perform step 3
- now index.ts file gets an updates on each re-build, but vue file still gets the first version