NativeScript / NativeScript/nativescript-cli

feat: bundler option in config to define desired bundler

Open
#5,836 0 comments 3 reactions 1 assignee View on GitHub

@NathanWalker is already working on this.

Since Mar 20, 2025.

feature in progress
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.

You should be able to switch between webpack/rspack/vite by setting a config option.

Describe the solution you'd like

nativescript.config can handle this via:

bundler: 'webpack' | 'rspack' | 'vite' (default webpack)

This option would be used within cli to configure the compiler-service.

We could avoid this config option altogether by looking for specific config file however this option allows more versatility in that it's possible where feature parity does not match in some cases, a user could use rspack during local dev yet use webpack for production build if desired.

Describe alternatives you've considered

No response

Anything else?

No response

Please accept these terms

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.