This repository has been archived by the owner on Aug 7, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 49
refactor: HMR and webpack improvements #966
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vchimev
reviewed
Jul 5, 2019
vchimev
reviewed
Jul 5, 2019
vchimev
approved these changes
Jul 5, 2019
DimitarTachev
approved these changes
Jul 5, 2019
test package_version#rc |
@cla-bot check |
The cla-bot has been summoned, and re-checked this pull request! |
This was referenced Aug 2, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this PR:
.xml
/.js/ts
/.css
files to the bundle (except files in theApp_Resources
). Previously it was only files with-page
suffix.hmr/hot-loader
which is used for JS and TS templates. It will process all.xml
/.js/ts
/.css
files and it will add code that will enable HMR self-accept (module.hot.accept()
) if the module was loaded fromtns-core-module/ui/builder
using theglobal._isModuleLoadedForUI()
API from this PR: refactor: HMR and webpack improvements NativeScript#7462hmr/
folder converted to TypeScriptWarning: This PR should be merged together with his brother -> NativeScript/NativeScript#7462
Known Issue
If you have custom android application or activity it is pulled in the
bundle.js
by therequire.context
. You can exclude it by writing magical regex (like this), but there might be an easier way to do it.Related to #902