Movatterモバイル変換


[0]ホーム

URL:


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.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Executing the update scriptupdate-ns-webpack breaks the AoT compilation in code-sharing projects #980

Open
Labels
@sis0k0

Description

@sis0k0

Describe the bug
The newly generated code-sharing applications come with a customtsconfig.tns.json configuration file. Executing the update script fromnativescript-dev-webpack (npx update-ns-webpack --configs) overrides the existingtsconfig.tns.json file with the default configuration file -https://github.com/NativeScript/nativescript-dev-webpack/blob/master/templates/tsconfig.tns.json.
However, the AoT compilation in the code-sharing project doesn't work with the defaulttsconfig file.

To Reproduce

npm i -g @angular/cli @nativescript/schematics@nextng new --collection=@nativescript/schematics my-shared-project --sharedcd my-shared-projectnpx update-ns-webpack --configstns build --bundle --env.aot

Expected behavior
Executing the update script for the webpack plugin shouldn't break the code-sharing project.

Suggested solutions

  • Don't update thetsconfig.tns.json file at all.
  • In the update script, read thetsconfig.tns.json file and omit its update if its content matches exactly the content of a code-sharing config file.
  • Detect that the project is a code-sharing one and then - skip the update of thetsconfig.tns.json file.
  • Please comment with any suggestions you might have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp