Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

refactor: HMR and webpack improvements #966

Merged
vakrilov merged 10 commits into release from file-qualifiers
Jul 8, 2019
Merged

refactor: HMR and webpack improvements #966

vakrilov merged 10 commits into release from file-qualifiers
Jul 8, 2019

Conversation

Copy link
Contributor

@vakrilov vakrilov commented Jul 4, 2019
edited by sis0k0
Loading

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

vchimev and sis0k0 reacted with hooray emoji
@vakrilov vakrilov marked this pull request as ready for review July 4, 2019 13:15
Copy link
Contributor

dtopuzov commented Jul 8, 2019

test package_version#rc

Copy link
Contributor Author

vakrilov commented Jul 8, 2019

@cla-bot check

Copy link

cla-bot bot commented Jul 8, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Reviewers

@rosen-vladimirov rosen-vladimirov Awaiting requested review from rosen-vladimirov

2 more reviewers

@DimitarTachev DimitarTachev DimitarTachev approved these changes

@vchimev vchimev vchimev approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /