Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

fix: bundle emitted on save without changes #1097

Merged
merged 1 commit into from
Nov 26, 2019

Conversation

KristianDD
Copy link
Contributor

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #1096

@KristianDD KristianDD added the bug label Nov 18, 2019
@KristianDD KristianDD added this to the 1.4.0 milestone Nov 18, 2019
@KristianDD KristianDD self-assigned this Nov 18, 2019
@cla-bot cla-bot bot added the cla: yes label Nov 18, 2019
@KristianDD
Copy link
Contributor Author

test cli-smoke cli-templates

@rosen-vladimirov
Copy link
Contributor

Can you please update the commit message to explain in details what's the change and why it is required?

When there are no changes (timestamps are not modified) the chunk is taken from the cache. The cached asset object has the property existsAt set and this will prevent the emit of that chunk - https://github.com/webpack/webpack/blob/4056506488c1e071dfc9a0127daa61bf531170bf/lib/Compiler.js#L326. However when we replace the whole asset, the flag is no longer set and the chunk is emmited every time.
@KristianDD KristianDD force-pushed the kddimitrov/fix-bundle-emit-empty-save branch from 54ee1d0 to 2d01df9 Compare November 18, 2019 13:37
@rosen-vladimirov
Copy link
Contributor

test cli-templates cli-run

@KristianDD KristianDD added the e2e test needed In case ui tests should be included label Nov 19, 2019
@rosen-vladimirov
Copy link
Contributor

test cli-run

2 similar comments
@miroslavaivanova
Copy link
Contributor

test cli-run

@KristianDD
Copy link
Contributor Author

test cli-run

@rosen-vladimirov
Copy link
Contributor

test cli-run

@DimitarTachev DimitarTachev merged commit efbfd3c into master Nov 26, 2019
@DimitarTachev DimitarTachev deleted the kddimitrov/fix-bundle-emit-empty-save branch November 26, 2019 07:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug cla: yes e2e test needed In case ui tests should be included
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Application restarted on save without changes
5 participants