Home / Companies / Nx / Blog / January 2025

January 2025 Summaries

7 posts from Nx

Filter
Month: Year:
Post Summaries Back to Blog
Module Federation is a dynamic technology that extends beyond micro frontends and faster builds to include over-the-air updates for React Native apps, thanks to efforts by Callstack's Re.Pack team and Zephyr Cloud. This capability allows developers to update native mobile apps without the need to deploy new binaries to app stores, improving deployment efficiency. The concept of "Super Apps," popular in Asia and exemplified by WeChat, refers to single applications that integrate multiple services, and can be achieved using React Native, Re.Pack, Module Federation, and Zephyr Cloud. By employing Module Federation in native apps, different feature teams can independently update app components, stored in separate buckets, that are then fetched by the main app at runtime, enabling seamless integration and rapid iteration. Zephyr Cloud facilitates these processes with its robust deployment and management features, including version control and rollback capabilities, which enhance user support and development speed. Nx, a tool for managing Module Federation setups, mitigates risks associated with dependency management and ensures scalable development, offering features like Task Caching and Orchestration. The create-zephyr-apps package streamlines the setup of React Native Super Apps, with comprehensive support and documentation available through Zephyr Cloud resources.
Jan 31, 2025 1,282 words in the original blog post.
Nx has introduced a new workspaces-based setup for monorepos that leverages TypeScript project references, aiming to improve performance and alleviate issues related to slowness and memory usage often encountered in large-scale projects. The new setup, which can be enabled with a --workspaces flag, is designed to be more efficient, with faster compilation and reduced memory demands, while maintaining TypeScript editor support. Although the traditional TypeScript path alias setup is still supported, the workspace approach integrates seamlessly with modern tools like NPM, Yarn, PNPM, and Bun, providing a more streamlined experience. Nx also simplifies project management by automatically syncing TypeScript project references and offers tools for creating and managing packages, supporting features like incremental type checking and build automation. The focus on locality and minimalism allows for easier integration with existing projects, while performance benefits include parallel task execution and reduced CI costs, making the new setup particularly beneficial for enterprises managing large TypeScript monorepos.
Jan 29, 2025 2,791 words in the original blog post.
Managing TypeScript packages within monorepos presents unique challenges, primarily due to the complexity of structuring and resolving dependencies as the monorepo grows. Developers have several strategies to manage these challenges, including using simple relative imports, TypeScript path aliases, project references, and leveraging the workspaces feature of package managers like NPM, PNPM, Yarn, and Bun. While relative imports are the simplest method, they can become unmanageable in larger workspaces. TypeScript path aliases offer a cleaner structure by eliminating relative paths but require runtime and bundling support. Project references enhance modularity by treating each package as an independent TypeScript program, facilitating incremental builds and improving performance in large workspaces. The workspaces feature of modern package managers provides a seamless resolution of local packages, aligning with Node.js's native mechanisms and enhancing robustness. Combining TypeScript project references with workspaces optimizes type-checking, enables incremental builds, and simplifies dependency management. Prebuilding packages, although not always necessary, can further streamline the workflow by reducing build times and improving editor performance, particularly when using tools like Nx that automate the setup and synchronization of project references.
Jan 28, 2025 3,845 words in the original blog post.
The article explores how TypeScript Project References can enhance performance and efficiency in managing monorepos by allowing TypeScript to treat a workspace as a collection of interconnected projects rather than a single unit. It explains the process of setting up project references by adjusting the `tsconfig.json` files, using path aliases, and enabling the composite compiler option. This setup allows for more efficient builds by identifying out-of-date projects and compiling them in the correct order, significantly reducing memory usage and CI costs. The article also highlights the advantages of using Nx to automate the management of project references in large monorepos, although it notes that Angular does not yet support TypeScript Project References. Future articles in the series will delve deeper into managing TypeScript packages in monorepos.
Jan 27, 2025 1,216 words in the original blog post.
Presented by Nicole Oliver, RareČ™ Matei, and James Henry, the session offers insights into achieving rapid and dependable continuous integration (CI) alongside improved coordination within technical organizations using Nx Cloud. The presentation highlights the new multi-workspace features designed to facilitate organizational scaling effectively. Attendees are encouraged to download the recording and sign up for access to further explore these capabilities.
Jan 22, 2025 46 words in the original blog post.
JavaScript's evolution from a simple language that could be sent directly to browsers to one that often requires a build step is explored through the lens of bundling and code-splitting. The conversation with Zack Jackson, a maintainer of prominent bundlers like Webpack and Rspack, delves into how JavaScript development now involves an "input format" that is human-readable and "output format" optimized for efficiency, minimizing network requests and file size. This transformation involves bundling, which aggregates all JavaScript files into a single entity, and code-splitting, which divides this entity into smaller, dynamically loadable pieces to improve performance. Additionally, the role of bundlers in handling non-JS assets, transpilation, and "last mile" optimizations like minification and tree shaking are highlighted. The text also touches on the complexities of module formats like ESM and CommonJS, as well as the differing priorities when building for non-front-end applications, providing a comprehensive look at the intricacies of modern JavaScript development.
Jan 09, 2025 2,228 words in the original blog post.
Recent updates to Nx have introduced several new features and improvements, including support for Typescript project references and workspaces, Rspack updates, and a new Nx Console feature that displays CI pipeline statuses directly in IDEs such as Visual Studio Code and JetBrains. Notable enhancements include the integration of Rsbuild for React and Vue applications, offering significant performance gains over Webpack, and support for Angular 19, with migration assistance from Angular 18. Performance improvements have been made to local custom plugin loading, reducing time and memory costs, and the self-hosted cache feature is now freely available, supporting additional storage providers like Azure and Google Cloud Storage. Furthermore, a Request for Comments (RFC) has been opened for a new "Infinite Tasks" feature, aimed at facilitating non-discrete task dependencies, which could streamline development workflows.
Jan 06, 2025 1,479 words in the original blog post.