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

0.12 messes up fragments #558

Closed
Closed
@PeterStaev

Description

@PeterStaev

Issue Checklist

  • You are submitting: bug report
  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions