NativeScript / NativeScript/nativescript-cli

Ensure same build result for debug and release builds

Open
#4,737 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

build feature run
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Is your feature request related to a problem? Please describe.
Currently when --env.snapshot is passed for debug builds, NativeScript CLI shows an warning and starts webpack compilation without --env.snapshot option. This led to the problem that different build result is produced when application is built in release and debug mode.

Describe the solution you'd like
We need a common, unified way so the application can produce the same build result regardless of the build mode (release or debug)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the NativeScript CLI handles --env.snapshot for debug builds and where it invokes webpack for debug versus release. Compare those paths and define the work as complete when both build modes produce the same application build result without the current warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.