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

refactor: HMR and webpack improvements #966

Merged
merged 10 commits into from
Jul 8, 2019
Merged

refactor: HMR and webpack improvements #966

merged 10 commits into from
Jul 8, 2019

Conversation

vakrilov
Copy link
Contributor

@vakrilov vakrilov commented Jul 4, 2019

In this PR:

  • Bundle config loader will add all .xml/.js/ts/.css files to the bundle (except files in the App_Resources). Previously it was only files with -page suffix.
  • Added 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 from tns-core-module/ui/builder using the global._isModuleLoadedForUI() API from this PR: refactor: HMR and webpack improvements NativeScript#7462
  • bundle-config-loader and modules in hmr/ folder converted to TypeScript

Warning: 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 the require.context. You can exclude it by writing magical regex (like this), but there might be an easier way to do it.

Related to #902

@cla-bot cla-bot bot added the cla: yes label Jul 4, 2019
@vakrilov vakrilov marked this pull request as ready for review July 4, 2019 13:15
@vakrilov vakrilov closed this Jul 5, 2019
@vakrilov vakrilov reopened this Jul 5, 2019
@dtopuzov
Copy link
Contributor

dtopuzov commented Jul 8, 2019

test package_version#rc

@vakrilov
Copy link
Contributor Author

vakrilov commented Jul 8, 2019

@cla-bot check

@cla-bot
Copy link

cla-bot bot commented Jul 8, 2019

The cla-bot has been summoned, and re-checked this pull request!

@vakrilov vakrilov merged commit d4a8dec into release Jul 8, 2019
@vakrilov vakrilov deleted the file-qualifiers branch July 8, 2019 08:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants