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

fix: initial compilation always generates same compilation hash #815

Merged
merged 1 commit into from
Feb 21, 2019

Conversation

KristianDD
Copy link
Contributor

PR Checklist

What is the current behavior?

Currently every start of the compilation will generate the same compilation hash for the same content. This hash is also used to chain Hot Module Reloads.

To reproduce:
1 Generate a HMR patch which breaks the app, then kill the compiler.
2 Revert the change and restart the compiler the application remains broken.

This is happening, because the hash of the second compilation is the same as the initial and it decides to apply the patch causing the error.

What is the new behavior?

Every initial compiler run creates unique compilation hash.

Fixes/Implements/Closes NativeScript/nativescript-cli#4123

@rosen-vladimirov
Copy link
Contributor

test package_version#latest

@KristianDD KristianDD force-pushed the kddimitrov/fix-same-hash-with-new-compilator branch from a62e322 to 8fbcc1d Compare February 21, 2019 15:31
@KristianDD
Copy link
Contributor Author

test package_version#latest

@KristianDD KristianDD merged commit ba6d896 into release Feb 21, 2019
@KristianDD KristianDD deleted the kddimitrov/fix-same-hash-with-new-compilator branch February 21, 2019 16:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants