You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
You verified that this is a real problem by searching the [NativeScript Forum] and the other [issues] in this repo.
You checked our [demo apps] and the [documentation] for sample usage.
Tell us about the problem
The default register for custom controls is neat, but causes problems with "fragments" that have code behind files. Under fragments I mean files common parts of UI extracted into an XML+TS files. When webpack loader includes those fragments it includes the JS files and not the TS files. So if have not compiled your code it will not load the codebehind. Or even nastier - if you have run normal builds, then run webpack build and make changes to the code it will continue picking up old compiled JS code instead of the new one in the TS file.
The XML loader should exclude any local modules (i.e. fragments) from the load and leave those to be handled by the bundle-config in the app.
Local environment
Platform Mac
Node version 8 LTS
NativeScript CLI version 4.1
Project data
Platform you are building the app for Both
The text was updated successfully, but these errors were encountered:
With the ignore option user can exclude any local fragments and register them either manually or by using the registerModules regex option for the bundle-config-loader
Closes#558.
Issue Checklist
Tell us about the problem
The default register for custom controls is neat, but causes problems with "fragments" that have code behind files. Under fragments I mean files common parts of UI extracted into an XML+TS files. When webpack loader includes those fragments it includes the JS files and not the TS files. So if have not compiled your code it will not load the codebehind. Or even nastier - if you have run normal builds, then run webpack build and make changes to the code it will continue picking up old compiled JS code instead of the new one in the TS file.
The XML loader should exclude any local modules (i.e. fragments) from the load and leave those to be handled by the
bundle-config
in the app.Local environment
Project data
The text was updated successfully, but these errors were encountered: