Closed nfxpnk closed 1 year ago
Reproduces, likely happens because of imports resolved by @rollup/plugin-alias
are not marked as dependencies for the importing file and cached version is returned. Solution would probably be running imports through rollup resolver and adding results as additional dependencies.
Works if I change all imports to relative paths and comment out alias.
Also works if cache is disabled with clean: true
option on rpt2.
Rollup Version
3.20.2
Operating System (or Browser)
Windows 10 latest
Node Version (if applicable)
18.13.0
Link To Reproduction
https://stackblitz.com/edit/rollup-repro-jz3iti?file=package.json OR https://github.com/nfxpnk/rollup-test
Expected Behaviour
npm run watch
test/flying-saucer/base/global/index.ts
dist-test/start.js
test/flying-saucer/base/global/index.ts
present in builded filedist-test/start.js
Actual Behaviour
npm run watch
test/flying-saucer/base/global/index.ts
dist-test/start.js
dist-test/start.js
If you will run just regular build with
npm run build
it works as expected.Clean JS - not reproduceable - https://stackblitz.com/edit/rollup-repro-eghflu?file=rollup.config.js