Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with alternating --target doesn't invalidate cache #7215

Open
mischnic opened this issue Oct 30, 2021 · 0 comments
Open

Building with alternating --target doesn't invalidate cache #7215

mischnic opened this issue Oct 30, 2021 · 0 comments

Comments

@mischnic
Copy link
Member

I found that adding a targets.length > 0 check avoids the exception when running parcel serve --target B: bao5/parcel-error-repro@5d4c8a7

However, the patch seems incomplete since parcel build --target is still broken:

> npx parcel build --target B
√ Built in 1.14s

dist\B\file.js    34 B    305ms
> npx parcel build --target A
√ Built in 1.03s

dist\A\file.js    34 B    198ms
> npx parcel build --target B
√ Built in 429ms

dist\A\file.js    34 B    198ms

The last parcel build --target B ends up building target A. It works properly if you add --no-cache.

Originally posted by @tunafield in #6905 (comment)

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

No branches or pull requests

1 participant